withState
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
Content copied to clipboard
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.