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.

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_WRITE_RETURN_VALUE
public static final Creator<LocationAvailability> CREATOR
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

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

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)