public class GatewayInfo extends Object implements Parcelable
ConnectionService
s when placing the call as an instance of GatewayInfo
.
The data consists of an address to call, an address to display and the package name of the service. This data is used in two ways:
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<GatewayInfo> |
CREATOR
The Parcelable interface.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
GatewayInfo(String packageName,
Uri gatewayUri,
Uri originalAddress) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
Uri |
getGatewayAddress()
Returns the gateway address to dial when placing the call.
|
String |
getGatewayProviderPackageName()
Package name of the gateway provider service that provided the gateway information.
|
Uri |
getOriginalAddress()
Returns the address that the user is trying to connect to via the gateway.
|
boolean |
isEmpty()
Indicates whether this
GatewayInfo instance contains any data. |
void |
writeToParcel(Parcel destination,
int flags)
Flatten this object in to a Parcel.
|
public static final Parcelable.Creator<GatewayInfo> CREATOR
public String getGatewayProviderPackageName()
public Uri getGatewayAddress()
public Uri getOriginalAddress()
public boolean isEmpty()
GatewayInfo
instance contains any data. A returned value of
false indicates that no gateway number is being used for the call.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
.