public final class ProviderProperties extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ProviderProperties> |
CREATOR |
int |
mAccuracy
Constant describing the horizontal accuracy returned
by this provider.
|
boolean |
mHasMonetaryCost
True if the use of this provider may result in a
monetary charge to the user, false if use is free.
|
int |
mPowerRequirement
Power requirement for this provider.
|
boolean |
mRequiresCell
True if the provider requires access to an appropriate
cellular network (e.g., to make use of cell tower IDs), false
otherwise.
|
boolean |
mRequiresNetwork
True if provider requires access to a
data network (e.g., the Internet), false otherwise.
|
boolean |
mRequiresSatellite
True if the provider requires access to a
satellite-based positioning system (e.g., GPS), false
otherwise.
|
boolean |
mSupportsAltitude
True if the provider is able to provide altitude
information, false otherwise.
|
boolean |
mSupportsBearing
True if the provider is able to provide bearing
information, false otherwise.
|
boolean |
mSupportsSpeed
True if the provider is able to provide speed
information, false otherwise.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ProviderProperties(boolean mRequiresNetwork,
boolean mRequiresSatellite,
boolean mRequiresCell,
boolean mHasMonetaryCost,
boolean mSupportsAltitude,
boolean mSupportsSpeed,
boolean mSupportsBearing,
int mPowerRequirement,
int mAccuracy) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
writeToParcel(Parcel parcel,
int flags)
Flatten this object in to a Parcel.
|
public final boolean mRequiresNetwork
public final boolean mRequiresSatellite
public final boolean mRequiresCell
public final boolean mHasMonetaryCost
public final boolean mSupportsAltitude
public final boolean mSupportsSpeed
public final boolean mSupportsBearing
public final int mPowerRequirement
public final int mAccuracy
public static final Parcelable.Creator<ProviderProperties> CREATOR
public ProviderProperties(boolean mRequiresNetwork, boolean mRequiresSatellite, boolean mRequiresCell, boolean mHasMonetaryCost, boolean mSupportsAltitude, boolean mSupportsSpeed, boolean mSupportsBearing, int mPowerRequirement, int mAccuracy)
public int describeContents()
Parcelable
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 parcel, int flags)
Parcelable
writeToParcel
in interface Parcelable
parcel
- 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
.