Call
Represents a phone call.
Constructors
Properties
An Instant object representing the time the call was first made CallState.ACTIVE.
Describes operations that can be performed on the call.
An Instant object representing the time the call was created.
Indicates the reason the call is in the CallState.DISCONNECTED state. It is null
if the call is not in that state.
The name to display for the caller. Will be empty if unavailable.
The id of the phone account from which this call originates. It corresponds to the ID returned by the PhoneAccountHandle#getId() Android Telecom API.
Phone number of the call in the format provided by Android.
Inherited properties
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.
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.