Android APIs
public static class

Call.Details

extends Object
java.lang.Object
   ↳ android.telecom.Call.Details

Summary

Constants
int CAPABILITY_CAN_PAUSE_VIDEO For video calls, indicates whether the outgoing video for the call can be paused using the STATE_PAUSED VideoState.
int CAPABILITY_DISCONNECT_FROM_CONFERENCE Call is able to be individually disconnected when in a Conference.
int CAPABILITY_HOLD Call can currently be put on hold or unheld.
int CAPABILITY_MANAGE_CONFERENCE Call supports conference call management.
int CAPABILITY_MERGE_CONFERENCE Calls within a conference can be merged.
int CAPABILITY_MUTE Call can be muted.
int CAPABILITY_RESPOND_VIA_TEXT Call supports responding via text option.
int CAPABILITY_SEPARATE_FROM_CONFERENCE Call is able to be separated from its parent Conference, if any.
int CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL Local device supports bidirectional video calling.
int CAPABILITY_SUPPORTS_VT_LOCAL_RX Local device supports receiving video.
int CAPABILITY_SUPPORTS_VT_LOCAL_TX Local device supports transmitting video.
int CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL Remote device supports bidirectional video calling.
int CAPABILITY_SUPPORTS_VT_REMOTE_RX Remote device supports receiving video.
int CAPABILITY_SUPPORTS_VT_REMOTE_TX Remote device supports transmitting video.
int CAPABILITY_SUPPORT_HOLD Call supports the hold feature.
int CAPABILITY_SWAP_CONFERENCE Calls within a conference can be swapped between foreground and background.
int PROPERTY_CONFERENCE Whether the call is currently a conference.
int PROPERTY_EMERGENCY_CALLBACK_MODE Whether the call is made while the device is in emergency callback mode.
int PROPERTY_GENERIC_CONFERENCE Whether the call is a generic conference, where we do not know the precise state of participants in the conference (eg.
int PROPERTY_HIGH_DEF_AUDIO Call is using high definition audio.
int PROPERTY_WIFI Connection is using WIFI.
Public Methods
boolean can(int capability)
Whether the capabilities of this Details supports the specified capability.
static boolean can(int capabilities, int capability)
Whether the supplied capabilities supports the specified capability.
static String capabilitiesToString(int capabilities)
Render a set of capability bits (CAPABILITY_*) as a human readable string.
boolean equals(Object o)
Compares this instance with the specified object and indicates if they are equal.
PhoneAccountHandle getAccountHandle()
int getCallCapabilities()
int getCallProperties()
String getCallerDisplayName()
int getCallerDisplayNamePresentation()
final long getConnectTimeMillis()
DisconnectCause getDisconnectCause()
Bundle getExtras()
GatewayInfo getGatewayInfo()
Uri getHandle()
int getHandlePresentation()
Bundle getIntentExtras()
StatusHints getStatusHints()
int getVideoState()
boolean hasProperty(int property)
Whether the properties of this Details includes the specified property.
static boolean hasProperty(int properties, int property)
Whether the supplied properties includes the specified property.
int hashCode()
Returns an integer hash code for this object.
static String propertiesToString(int properties)
Render a set of property bits (PROPERTY_*) as a human readable string.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CAPABILITY_CAN_PAUSE_VIDEO

Added in API level 23

For video calls, indicates whether the outgoing video for the call can be paused using the STATE_PAUSED VideoState.

Constant Value: 1048576 (0x00100000)

public static final int CAPABILITY_DISCONNECT_FROM_CONFERENCE

Added in API level 23

Call is able to be individually disconnected when in a Conference.

Constant Value: 8192 (0x00002000)

public static final int CAPABILITY_HOLD

Added in API level 23

Call can currently be put on hold or unheld.

Constant Value: 1 (0x00000001)

public static final int CAPABILITY_MANAGE_CONFERENCE

Added in API level 23

Call supports conference call management. This capability only applies to Conference calls which can have Connections as children.

Constant Value: 128 (0x00000080)

public static final int CAPABILITY_MERGE_CONFERENCE

Added in API level 23

Calls within a conference can be merged. A ConnectionService has the option to add a Conference call before the child Connections are merged. This is how CDMA-based Connections are implemented. For these unmerged Conferences, this capability allows a merge button to be shown while the conference call is in the foreground of the in-call UI.

This is only intended for use by a Conference.

Constant Value: 4 (0x00000004)

public static final int CAPABILITY_MUTE

Added in API level 23

Call can be muted.

Constant Value: 64 (0x00000040)

public static final int CAPABILITY_RESPOND_VIA_TEXT

Added in API level 23

Call supports responding via text option.

Constant Value: 32 (0x00000020)

public static final int CAPABILITY_SEPARATE_FROM_CONFERENCE

Added in API level 23

Call is able to be separated from its parent Conference, if any.

Constant Value: 4096 (0x00001000)

public static final int CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL

Added in API level 23

Local device supports bidirectional video calling.

Constant Value: 768 (0x00000300)

public static final int CAPABILITY_SUPPORTS_VT_LOCAL_RX

Added in API level 23

Local device supports receiving video.

Constant Value: 256 (0x00000100)

public static final int CAPABILITY_SUPPORTS_VT_LOCAL_TX

Added in API level 23

Local device supports transmitting video.

Constant Value: 512 (0x00000200)

public static final int CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL

Added in API level 23

Remote device supports bidirectional video calling.

Constant Value: 3072 (0x00000c00)

public static final int CAPABILITY_SUPPORTS_VT_REMOTE_RX

Added in API level 23

Remote device supports receiving video.

Constant Value: 1024 (0x00000400)

public static final int CAPABILITY_SUPPORTS_VT_REMOTE_TX

Added in API level 23

Remote device supports transmitting video.

Constant Value: 2048 (0x00000800)

public static final int CAPABILITY_SUPPORT_HOLD

Added in API level 23

Call supports the hold feature.

Constant Value: 2 (0x00000002)

public static final int CAPABILITY_SWAP_CONFERENCE

Added in API level 23

Calls within a conference can be swapped between foreground and background. See CAPABILITY_MERGE_CONFERENCE for additional information.

This is only intended for use by a Conference.

Constant Value: 8 (0x00000008)

public static final int PROPERTY_CONFERENCE

Added in API level 23

Whether the call is currently a conference.

Constant Value: 1 (0x00000001)

public static final int PROPERTY_EMERGENCY_CALLBACK_MODE

Added in API level 23

Whether the call is made while the device is in emergency callback mode.

Constant Value: 4 (0x00000004)

public static final int PROPERTY_GENERIC_CONFERENCE

Added in API level 23

Whether the call is a generic conference, where we do not know the precise state of participants in the conference (eg. on CDMA).

Constant Value: 2 (0x00000002)

public static final int PROPERTY_HIGH_DEF_AUDIO

Added in API level 23

Call is using high definition audio.

Constant Value: 16 (0x00000010)

public static final int PROPERTY_WIFI

Added in API level 23

Connection is using WIFI.

Constant Value: 8 (0x00000008)

Public Methods

public boolean can (int capability)

Added in API level 23

Whether the capabilities of this Details supports the specified capability.

Parameters
capability The capability to check capabilities for.
Returns
  • Whether the specified capability is supported.

public static boolean can (int capabilities, int capability)

Added in API level 23

Whether the supplied capabilities supports the specified capability.

Parameters
capabilities A bit field of capabilities.
capability The capability to check capabilities for.
Returns
  • Whether the specified capability is supported.

public static String capabilitiesToString (int capabilities)

Added in API level 23

Render a set of capability bits (CAPABILITY_*) as a human readable string.

Parameters
capabilities A capability bit field.
Returns
  • A human readable string representation.

public boolean equals (Object o)

Added in API level 23

Compares this instance with the specified object and indicates if they are equal. In order to be equal, o must represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.

The default implementation returns true only if this == o. See Writing a correct equals method if you intend implementing your own equals method.

The general contract for the equals and hashCode() methods is that if equals returns true for any two objects, then hashCode() must return the same value for these objects. This means that subclasses of Object usually override either both methods or neither of them.

Parameters
o the object to compare this instance with.
Returns
  • true if the specified object is equal to this Object; false otherwise.

public PhoneAccountHandle getAccountHandle ()

Added in API level 23

Returns
  • The PhoneAccountHandle whereby the Call is currently being routed.

public int getCallCapabilities ()

Added in API level 23

Returns
  • A bitmask of the capabilities of the Call, as defined by the various CAPABILITY_* constants in this class.

public int getCallProperties ()

Added in API level 23

Returns
  • A bitmask of the properties of the Call, as defined by the various PROPERTY_* constants in this class.

public String getCallerDisplayName ()

Added in API level 23

Returns
  • The display name for the caller.

public int getCallerDisplayNamePresentation ()

Added in API level 23

Returns
  • The presentation requirements for the caller display name. See TelecomManager for valid values.

public final long getConnectTimeMillis ()

Added in API level 23

Returns
  • The time the Call has been connected. This information is updated periodically, but user interfaces should not rely on this to display any "call time clock".

public DisconnectCause getDisconnectCause ()

Added in API level 23

Returns

public Bundle getExtras ()

Added in API level 23

Returns
  • The extras associated with this call.

public GatewayInfo getGatewayInfo ()

Added in API level 23

Returns
  • Information about any calling gateway the Call may be using.

public Uri getHandle ()

Added in API level 23

Returns
  • The handle (e.g., phone number) to which the Call is currently connected.

public int getHandlePresentation ()

Added in API level 23

Returns
  • The presentation requirements for the handle. See TelecomManager for valid values.

public Bundle getIntentExtras ()

Added in API level 23

Returns
  • The extras used with the original intent to place this call.

public StatusHints getStatusHints ()

Added in API level 23

Returns
  • The current StatusHints, or null if none have been set.

public int getVideoState ()

Added in API level 23

Returns
  • The video state of the Call.

public boolean hasProperty (int property)

Added in API level 23

Whether the properties of this Details includes the specified property.

Parameters
property The property to check properties for.
Returns
  • Whether the specified property is supported.

public static boolean hasProperty (int properties, int property)

Added in API level 23

Whether the supplied properties includes the specified property.

Parameters
properties A bit field of properties.
property The property to check properties for.
Returns
  • Whether the specified property is supported.

public int hashCode ()

Added in API level 23

Returns an integer hash code for this object. By contract, any two objects for which equals(Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

Note that hash values must not change over time unless information used in equals comparisons also changes.

See Writing a correct hashCode method if you intend implementing your own hashCode method.

Returns
  • this object's hash code.

public static String propertiesToString (int properties)

Added in API level 23

Render a set of property bits (PROPERTY_*) as a human readable string.

Parameters
properties A property bit field.
Returns
  • A human readable string representation.