applyCallState
fun applyCallState( phoneNumber: String, callState: CallState, disconnectCause: DisconnectCause?)
Content copied to clipboard
Updates a call state.
The debug phone account needs to be registered first before calling this method. The connection service needs to be ready before calling this method.
See also
.
The connection will be ready if at least one call is created. The calls can be created by calling createIncomingCall, createOutgoingCall, or directly calling TelecomManager.placeCall with TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE and debugPhoneAccount.
Parameters
phoneNumber
The phone number for the call.
callState
The new call state.
disconnectCause
The disconnection cause used for DISCONNECTED state.