java.lang.Object | |
↳ | com.google.android.gms.location.LocationSettingsStates |
Stores the current states of all location-related settings.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the location settings states from the intent extras.
| |||||||||||
Whether BLE is present on the device.
| |||||||||||
Whether BLE is enabled and is usable by the app.
| |||||||||||
Whether GPS provider is present on the device.
| |||||||||||
Whether GPS provider is enabled and is usable by the app.
| |||||||||||
Whether location is present on the device.
| |||||||||||
Whether location is enabled and is usable by the app.
| |||||||||||
Whether network location provider is present on the device.
| |||||||||||
Whether network location provider is enabled and usable by the app.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Retrieves the location settings states from the intent extras.
When the location settings dialog finishes, you can use this method to retrieve the current
location settings states from the intent in your
onActivityResult(int, int, Intent)
;
Parameters | |
---|---|
intent |
Intent
|
Returns | |
---|---|
LocationSettingsStates |
Whether BLE is present on the device.
Returns | |
---|---|
boolean |
Whether BLE is enabled and is usable by the app.
Returns | |
---|---|
boolean |
Whether GPS provider is present on the device.
Returns | |
---|---|
boolean |
Whether GPS provider is enabled and is usable by the app.
Returns | |
---|---|
boolean |
Whether location is present on the device. This method returns true when either GPS or network location provider is present.
Returns | |
---|---|
boolean |
Whether location is enabled and is usable by the app. This method returns true when either GPS or network location provider is usable.
Returns | |
---|---|
boolean |
Whether network location provider is present on the device.
Returns | |
---|---|
boolean |
Whether network location provider is enabled and usable by the app.
Returns | |
---|---|
boolean |
Parameters | |
---|---|
dest |
Parcel
|
flags |
int
|