withState

fun withState(value: CallState): Call

Provides a new instance of the call with the new CallState defined in value.

Parameters

value

The CallState of the call.


fun withState(callState: CallState, disconnectCause: DisconnectCause?): Call

Provides a new instance of the call with the new CallState defined in callState including the DisconnectCause defined in disconnectCause.

Parameters

callState

The CallState of the call.

disconnectCause

The DisconnectCause of the call used when the callState is CallState.DISCONNECTED.