Call
Represents a phone call.
Constructors
Properties
An Instant object representing the time the call was first made CallState.ACTIVE.
Indicates the reason the call is in the CallState.DISCONNECTED state. It is null
if the call is not in that state.
The id of the phone account from which this call originates. It corresponds to the ID returned by the PhoneAccountHandle#getId() Android Telecom API.
Functions
phoneNumber and displayName are masked when the Call is printed.
Provides a new instance of the call with the new CallState defined in callState including the DisconnectCause defined in disconnectCause.
Inherited functions
Extensions
Indicates if a Call has failed, which happens when the Call.state is in CallState.DISCONNECTED and the Call.disconnectedCause is either DisconnectCause.RESTRICTED, DisconnectCause.UNKNOWN or DisconnectCause.BUSY.
Indicates if a Call has the capability to be put on hold, which happens when the Call.capabilities have the CallCapability.HOLD.
Indicates if a Call can be hanged up, which happens when the Call is in the CallState.ACTIVE, CallState.DIALING, CallState.CONNECTING, CallState.ANSWERING or CallState.HOLDING state.
Indicates if a Call can be muted, which happens when the Call is in the CallState.ACTIVE or CallState.HOLDING state.
Indicates if a Call has the capability to be muted, which happens when the Call.capabilities have the CallCapability.MUTE.
Indicates if a Call is currently ongoing, which happens when the Call is in the CallState.ACTIVE, CallState.DIALING, CallState.CONNECTING or CallState.ANSWERING state.