VoiceCallState

sealed class VoiceCallState

The class representing different states of a voice call that can be received from the Voice SDK by collecting the Voice.voiceCallState flow

Inheritors

Types

Link copied to clipboard
data class Added(val call: VoiceCall) : VoiceCallState

Sent when a new call is received or placed.

Link copied to clipboard
data class Failed(val call: VoiceCall?, val exception: Exception) : VoiceCallState

Sent when a call failed.

Link copied to clipboard
data class HoldUpdated(val call: VoiceCall?) : VoiceCallState

Sent when an incoming call was accepted during an active call. If there is only one call and it is put on hold, this state is sent, but contains a null call object.

Link copied to clipboard
data class Removed(val call: VoiceCall) : VoiceCallState

Sent when a call was removed. A call is removed when it fails or any party hangs up.

Link copied to clipboard
data class Updated(val call: VoiceCall) : VoiceCallState

Sent when a call was updated. A call is updated when it switched to a different state. For example: from connected to on hold.