LocationAvailability

public final class LocationAvailability extends Object
implements Parcelable Parcelable

Information on the availability of location data. The information contained within this class is generally a best guess, and is not guaranteed to be accurate. Clients should avoid treating this information as a certainty.

Inherited Constant Summary

Field Summary

public static final Creator<LocationAvailability> CREATOR

Public Method Summary

boolean
static LocationAvailability
extractLocationAvailability(Intent intent)
Extracts the LocationAvailability from an Intent.
static boolean
hasLocationAvailability(Intent intent)
Returns true if an Intent contains a LocationAvailability.
int
boolean
isLocationAvailable()
Returns true if the device location is generally available.
String
void
writeToParcel(Parcel parcel, int flags)

Inherited Method Summary

Fields

public static final Creator<LocationAvailability> CREATOR

Public Methods

public boolean equals (Object o)

public static LocationAvailability extractLocationAvailability (Intent intent)

Extracts the LocationAvailability from an Intent.

Returns

public static boolean hasLocationAvailability (Intent intent)

Returns true if an Intent contains a LocationAvailability.

Returns

public int hashCode ()

public boolean isLocationAvailable ()

Returns true if the device location is generally available.

public String toString ()

public void writeToParcel (Parcel parcel, int flags)