Package com.amazon.A3L.location
Class A3LLocationAvailability
- java.lang.Object
- 
- com.amazon.A3L.location.A3LLocationAvailability
 
- 
- All Implemented Interfaces:
- android.os.Parcelable
 
 public class A3LLocationAvailability extends java.lang.Object implements android.os.ParcelableThis class provides replication of LocationAvailability .
- 
- 
Field SummaryFields Modifier and Type Field Description static android.os.Parcelable.Creator<A3LLocationAvailability>CREATORCreator used for fetching data from the parcel received by an activity
 - 
Constructor SummaryConstructors Constructor Description A3LLocationAvailability(boolean locationStatus)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.booleanequals(java.lang.Object o)static A3LLocationAvailabilityextractLocationAvailability(android.content.Intent intent)Extracts theA3LLocationAvailabilityfrom an Intent.inthashCode()static booleanhasLocationAvailability(android.content.Intent intent)Returns true if an Intent contains aA3LLocationAvailability.booleanisLocationAvailable()Returns true if the device location is generally available.java.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)Flatten this object in to a Parcel.
 
- 
- 
- 
Field Detail- 
CREATOR@NonNull public static final android.os.Parcelable.Creator<A3LLocationAvailability> CREATOR Creator used for fetching data from the parcel received by an activity
 
- 
 - 
Method Detail- 
extractLocationAvailability@Nullable public static A3LLocationAvailability extractLocationAvailability(@NonNull android.content.Intent intent) Extracts theA3LLocationAvailabilityfrom an Intent.- Returns:
- a A3LLocationAvailability, or null if the Intent doesn't contain this data.
 
 - 
hasLocationAvailabilitypublic static boolean hasLocationAvailability(@Nullable android.content.Intent intent)Returns true if an Intent contains aA3LLocationAvailability.- Returns:
- true if the intent contains a A3LLocationAvailability, false otherwise.
 
 - 
equalspublic boolean equals(@Nullable java.lang.Object o)- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
isLocationAvailablepublic boolean isLocationAvailable() Returns true if the device location is generally available.- Returns:
- If device location is generally available.
 
 - 
toString@NonNull public java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
describeContentspublic int describeContents() Description copied from interface:android.os.ParcelableDescribe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output ofParcelable.writeToParcel(Parcel, int), the return value of this method must include theParcelable.CONTENTS_FILE_DESCRIPTORbit.- Specified by:
- describeContentsin interface- android.os.Parcelable
- Returns:
- a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
 
 - 
writeToParcelpublic void writeToParcel(@NonNull android.os.Parcel dest, int flags)Flatten this object in to a Parcel.- Specified by:
- writeToParcelin interface- android.os.Parcelable
- Parameters:
- dest- 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.
 
 
- 
 
-