Call State
data class CallState(var activeCall: StateFlow<CallInfo>, var recentCalls: StateFlow<LinkedHashSet<CallInfo>>, var cursor: StateFlow<String>, var selfInfo: StateFlow<CallParticipantInfo>, var allParticipants: StateFlow<LinkedHashSet<CallParticipantInfo>>, var speakerVolumes: StateFlow<MutableMap<String, Int>>, var networkQualities: StateFlow<MutableMap<String, NetworkQuality>>)
Call state data, manages the real-time data state of the current call.
Overview
A comprehensive snapshot of the current call session state. This structure contains all relevant information about active calls, recent call records, participant lists, etc.
State Properties Overview
| Property | Type | Description |
| activeCall | StateFlow<CallInfo> | Current active call information |
| recentCalls | StateFlow<LinkedHashSet<CallInfo>> | Recent call records list |
| cursor | StateFlow<String> | Pagination cursor |
| selfInfo | StateFlow<CallParticipantInfo> | Current user's own information |
| allParticipants | StateFlow<LinkedHashSet<CallParticipantInfo>> | All participants in current call |
| speakerVolumes | StateFlow<MutableMap<String, Int>> | Participant volume information |
| networkQualities | StateFlow<MutableMap<String, NetworkQuality>> | Participant network quality information |
Tip: Call state updates automatically. Subscribe to callState to receive real-time updates.
Constructors
Link copied to clipboard
constructor(activeCall: StateFlow<CallInfo>, recentCalls: StateFlow<LinkedHashSet<CallInfo>>, cursor: StateFlow<String>, selfInfo: StateFlow<CallParticipantInfo>, allParticipants: StateFlow<LinkedHashSet<CallParticipantInfo>>, speakerVolumes: StateFlow<MutableMap<String, Int>>, networkQualities: StateFlow<MutableMap<String, NetworkQuality>>)
Properties
Link copied to clipboard
Current active call information
Link copied to clipboard
All participants in current call
Link copied to clipboard
Participant network quality information, key is user ID, value is network quality
Link copied to clipboard
Recent call records list
Link copied to clipboard
Current user's own information
Link copied to clipboard
Participant volume information, key is user ID, value is volume level