| java.lang.Object | |
| ↳ | com.google.android.gms.location.LocationAvailability |
Status on the availability of location data
|
[Expand]
Inherited Constants | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Extracts the
LocationAvailability from an Intent.
| |||||||||||
Returns true if an Intent contains a
LocationAvailability.
| |||||||||||
Returns true if the device location is known and reasonably up to date within the hints
requested by the active
LocationRequests.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
From interface
android.os.Parcelable
| |||||||||||||||||||||||||||||||||
Extracts the LocationAvailability from an Intent.
This is a utility function which extracts the LocationAvailability
from the extras of an Intent that was sent in response to a location request.
LocationAvailability, or null if the Intent doesn't contain
this data.
Returns true if an Intent contains a LocationAvailability.
This is a utility function that can be called from inside an intent receiver to make sure the received intent contains location availability data.
LocationAvailability, false
otherwise.
Returns true if the device location is known and reasonably up to date within the hints
requested by the active LocationRequests. Failure to determine location may result
from a number of causes including disabled location settings or an inability to retrieve
sensor data in the device's environment.