TelecomCallState

sealed interface TelecomCallState

Represents the state of a call in the telecom system.

It is the responsibility of the telecom strategy to manage the state transitions and ensure that the call state is updated correctly.

Inheritors

Types

Link copied to clipboard

The call is connected and active

Link copied to clipboard
data class Disconnected(val disconnectCause: DisconnectCause) : TelecomCallState

The call is disconnected, either by the user or by the remote party

Link copied to clipboard

The call is inactive (usually on hold)

Link copied to clipboard

Incoming initial state, waiting for the user to answer or reject the call

Link copied to clipboard

Incoming state, waiting for the user to answer or reject the call, but the ringtone has been silenced

Link copied to clipboard

Outgoing initial state, waiting for the call to be connected