public final class ParcelableCall extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ParcelableCall> |
CREATOR
Responsible for creating ParcelableCall objects for deserialized Parcels.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ParcelableCall(String id,
int state,
DisconnectCause disconnectCause,
List<String> cannedSmsResponses,
int capabilities,
int properties,
long connectTimeMillis,
Uri handle,
int handlePresentation,
String callerDisplayName,
int callerDisplayNamePresentation,
GatewayInfo gatewayInfo,
PhoneAccountHandle accountHandle,
boolean isVideoCallProviderChanged,
IVideoProvider videoCallProvider,
String parentCallId,
List<String> childCallIds,
StatusHints statusHints,
int videoState,
List<String> conferenceableCallIds,
Bundle intentExtras,
Bundle extras) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
PhoneAccountHandle |
getAccountHandle()
PhoneAccountHandle information for the call.
|
String |
getCallerDisplayName()
The endpoint to which the call is connected.
|
int |
getCallerDisplayNamePresentation()
The presentation requirements for the caller display name.
|
List<String> |
getCannedSmsResponses()
The set of possible text message responses when this call is incoming.
|
int |
getCapabilities() |
List<String> |
getChildCallIds()
The child call-IDs if this call is a conference call.
|
List<String> |
getConferenceableCallIds() |
long |
getConnectTimeMillis()
The time that the call switched to the active state.
|
DisconnectCause |
getDisconnectCause()
Reason for disconnection, as described by
android.telecomm.DisconnectCause . |
Bundle |
getExtras()
Any extras associated with this call.
|
GatewayInfo |
getGatewayInfo()
Gateway information for the call.
|
Uri |
getHandle()
The endpoint to which the call is connected.
|
int |
getHandlePresentation()
The presentation requirements for the handle.
|
String |
getId()
The unique ID of the call.
|
Bundle |
getIntentExtras()
Extras passed in as part of the original call intent.
|
String |
getParentCallId()
The conference call to which this call is conferenced.
|
int |
getProperties()
Bitmask of properties of the call.
|
int |
getState()
The current state of the call.
|
StatusHints |
getStatusHints()
The status label and icon.
|
VideoCallImpl |
getVideoCallImpl()
Returns an object for remotely communicating through the video call provider's binder.
|
int |
getVideoState()
The video state.
|
boolean |
isVideoCallProviderChanged()
Indicates to the receiver of the
ParcelableCall whether a change has occurred in the
InCallService.VideoCall associated with this call. |
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel destination,
int flags)
Writes ParcelableCall object into a Parcel.
|
public static final Parcelable.Creator<ParcelableCall> CREATOR
public ParcelableCall(String id, int state, DisconnectCause disconnectCause, List<String> cannedSmsResponses, int capabilities, int properties, long connectTimeMillis, Uri handle, int handlePresentation, String callerDisplayName, int callerDisplayNamePresentation, GatewayInfo gatewayInfo, PhoneAccountHandle accountHandle, boolean isVideoCallProviderChanged, IVideoProvider videoCallProvider, String parentCallId, List<String> childCallIds, StatusHints statusHints, int videoState, List<String> conferenceableCallIds, Bundle intentExtras, Bundle extras)
public String getId()
public int getState()
public DisconnectCause getDisconnectCause()
android.telecomm.DisconnectCause
. Valid
when call state is CallState#DISCONNECTED
.public List<String> getCannedSmsResponses()
public int getCapabilities()
public int getProperties()
public long getConnectTimeMillis()
public Uri getHandle()
public int getHandlePresentation()
TelecomManager
for valid values.public String getCallerDisplayName()
public int getCallerDisplayNamePresentation()
TelecomManager
for valid values.public GatewayInfo getGatewayInfo()
public PhoneAccountHandle getAccountHandle()
public VideoCallImpl getVideoCallImpl()
public String getParentCallId()
public List<String> getChildCallIds()
public StatusHints getStatusHints()
public int getVideoState()
public Bundle getExtras()
public Bundle getIntentExtras()
public boolean isVideoCallProviderChanged()
ParcelableCall
whether a change has occurred in the
InCallService.VideoCall
associated with this call. Since
#getVideoCall()
creates a new VideoCallImpl
, it is useful to know whether
the provider has changed (which can influence whether it is accessed).true
if the video call changed, false
otherwise.public int describeContents()
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel destination, int flags)
writeToParcel
in interface Parcelable
destination
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())