CallState

data class CallState(val phase: CallPhase = CallPhase.Idle, val roomId: String? = null, val localCid: String? = null, val isHost: Boolean = false, val participantCount: Int = 0, val localAudioEnabled: Boolean = true, val localVideoEnabled: Boolean = true, val remoteParticipants: List<RemoteParticipant> = emptyList(), val connectionStatus: ConnectionStatus = ConnectionStatus.Connected, val localCameraMode: LocalCameraMode = LocalCameraMode.SELFIE, val error: CallError? = null, val requiredPermissions: List<MediaCapability> = emptyList())

SDK-native call state. This is the primary observable state for SDK consumers. Does not include host-app concerns (saved rooms, settings, etc.).

Constructors

Link copied to clipboard
constructor(phase: CallPhase = CallPhase.Idle, roomId: String? = null, localCid: String? = null, isHost: Boolean = false, participantCount: Int = 0, localAudioEnabled: Boolean = true, localVideoEnabled: Boolean = true, remoteParticipants: List<RemoteParticipant> = emptyList(), connectionStatus: ConnectionStatus = ConnectionStatus.Connected, localCameraMode: LocalCameraMode = LocalCameraMode.SELFIE, error: CallError? = null, requiredPermissions: List<MediaCapability> = emptyList())

Properties

Link copied to clipboard

Network connection status.

Link copied to clipboard
val error: CallError? = null

Current error, if any.

Link copied to clipboard
val isHost: Boolean = false

Whether the local user created this room.

Link copied to clipboard

Whether local audio is currently enabled.

Link copied to clipboard

Current camera mode (selfie, world, or composite).

Link copied to clipboard
val localCid: String? = null

Local client identifier assigned by the server.

Link copied to clipboard

Whether local video is currently enabled.

Link copied to clipboard

Number of participants currently in the call.

Link copied to clipboard

Current call lifecycle phase.

Link copied to clipboard

List of remote participants with their current state.

Link copied to clipboard
Link copied to clipboard

Permissions needed before joining (empty when all granted).

Link copied to clipboard
val roomId: String? = null

Room identifier for this call.