Call
data class Call( val id: CallId, val state: CallState, val creationTime: Instant, val activationTime: Instant?, val phoneNumber: String, val displayName: String, val canChangeHoldState: Boolean, val disconnectedCause: DisconnectCause?) : Parcelable
Content copied to clipboard
Represents a phone call.
Constructors
Properties
Link copied to clipboard
An Instant object representing the time the call was first made CallState.ACTIVE.
Link copied to clipboard
An Instant object representing the time the call was created.
Link copied to clipboard
Indicates the reason the call is in the CallState.DISCONNECTED state. It is null
if the call is not in that state.
Functions
Link copied to clipboard
phoneNumber and displayName are masked when the Call is printed.
Link copied to clipboard
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.