ClientState

Constructors

Link copied to clipboard
constructor(client: StreamVideo)

Properties

Link copied to clipboard
val activeCall: StateFlow<Call?>

When there is an active call, this state will be set, otherwise its null.

Link copied to clipboard
val connection: StateFlow<ConnectionState>

Coordinator connection state

Link copied to clipboard
val ringingCall: StateFlow<Call?>

When there is an incoming call, this state will be set.

Link copied to clipboard
val user: StateFlow<User?>

Current user for the client.

Functions

Link copied to clipboard
fun addRingingCall(call: Call, ringingState: RingingState)
Link copied to clipboard
fun handleError(error: Error)
Link copied to clipboard

Handles the events for the client state. Most event logic happens in the Call instead of the client

Link copied to clipboard

Returns true if there is an active or ringing call

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setActiveCall(call: Call)