CallState class abstract

Call state data, manages the real-time data state of the current call.

A comprehensive snapshot of the current call session state. This structure contains all relevant information about active calls, recent call records, participant lists, etc.

Note: Call state updates automatically. Subscribe to state to receive real-time updates.

State Properties Overview

Property Type Description
activeCall ValueListenable<CallInfo> Current active call information
recentCalls ValueListenable<List<CallInfo>> Recent call records list
cursor ValueListenable<String> Pagination cursor
selfInfo ValueListenable<CallParticipantInfo> Current user's own information
allParticipants ValueListenable<List<CallParticipantInfo>> All participants in current call
speakerVolumes ValueListenable<Map<String, int>> Participant volume information
networkQualities ValueListenable<Map<String, NetworkQuality>> Participant network quality information

Constructors

CallState()

Properties

activeCall ValueListenable<CallInfo>
Current active call information. Lifecycle Contract: When onCallEnded is triggered, this object is not immediately cleared; instead, it retains the call's final state for the UI to display end animations (at this point CallInfo.result or other parameters reflect the end reason). If a new call is initiated or received, it will be automatically overwritten. Developers can manually clean up by resetting the related CallStore state.
no setter
allParticipants ValueListenable<List<CallParticipantInfo>>
All participants in current call.
no setter
cursor ValueListenable<String>
Pagination cursor, used to query more call records.
no setter
hashCode int
The hash code for this object.
no setterinherited
networkQualities ValueListenable<Map<String, NetworkQuality>>
Participant network quality information, key is user ID, value is network quality.
no setter
recentCalls ValueListenable<List<CallInfo>>
Recent call records list. Note: Each call to queryRecentCalls currently behaves as an overwrite update rather than an automatic append. To implement infinite scrolling, the business layer needs to concatenate newly arrived data with the existing list on its own.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selfInfo ValueListenable<CallParticipantInfo>
Current user's own information.
no setter
speakerVolumes ValueListenable<Map<String, int>>
Participant volume information, key is user ID, value is volume level.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited