CallState

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

PropertyTypeDescription
activeCallStateFlow<CallInfo>Current active call information
recentCallsStateFlow<LinkedHashSet<CallInfo>>Recent call records list
cursorStateFlow<String>Pagination cursor
selfInfoStateFlow<CallParticipantInfo>Current user's own information
allParticipantsStateFlow<LinkedHashSet<CallParticipantInfo>>All participants in current call
speakerVolumesStateFlow<MutableMap<String, Int>>Participant volume information
networkQualitiesStateFlow<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
var activeCall: StateFlow<CallInfo>

Current active call information

Link copied to clipboard

All participants in current call

Link copied to clipboard
var cursor: StateFlow<String>

Pagination cursor, used to query more call records

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