java.lang.Object | |
↳ | com.google.android.gms.location.LocationServices |
The main entry point for location services integration.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API | Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable LocationServices. |
||||||||||
FusedLocationApi | Entry point to the fused location APIs. | ||||||||||
GeofencingApi | Entry point to the geofencing APIs. | ||||||||||
SettingsApi | Entry point to the location settings-enabler dialog APIs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new instance of
FusedLocationProviderClient for use in an Activity . | |||||||||||
Create a new instance of
FusedLocationProviderClient for use in a non-activity
Context . | |||||||||||
Create a new instance of
GeofencingClient for use in an Activity . | |||||||||||
Create a new instance of
GeofencingClient for use in a non-activity Context . | |||||||||||
Create a new instance of
SettingsClient for use in a non-activity Context . | |||||||||||
Create a new instance of
SettingsClient for use in an Activity . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
to enable LocationServices.
Entry point to the fused location APIs.
Entry point to the location settings-enabler dialog APIs.
Create a new instance of FusedLocationProviderClient
for use in an Activity
.
Error resolutions will be automatically launched from the provided Activity, displaying UI
when necessary.
Parameters | |
---|---|
activity |
Activity
|
Returns | |
---|---|
FusedLocationProviderClient |
Create a new instance of FusedLocationProviderClient
for use in a non-activity
Context
. Error resolutions will be automatically launched from the provided Context,
displaying system tray notifications when necessary.
Parameters | |
---|---|
context |
Context
|
Returns | |
---|---|
FusedLocationProviderClient |
Create a new instance of GeofencingClient
for use in an Activity
. Error
resolutions will be automatically launched from the provided Activity, displaying UI when
necessary.
Parameters | |
---|---|
activity |
Activity
|
Returns | |
---|---|
GeofencingClient |
Create a new instance of GeofencingClient
for use in a non-activity Context
.
Error resolutions will be automatically launched from the provided Context, displaying system
tray notifications when necessary.
Parameters | |
---|---|
context |
Context
|
Returns | |
---|---|
GeofencingClient |
Create a new instance of SettingsClient
for use in a non-activity Context
.
Error resolutions will be automatically launched from the provided Context, displaying system
tray notifications when necessary.
Parameters | |
---|---|
context |
Context
|
Returns | |
---|---|
SettingsClient |
Create a new instance of SettingsClient
for use in an Activity
. Error
resolutions will be automatically launched from the provided Activity, displaying UI when
necessary.
Parameters | |
---|---|
activity |
Activity
|
Returns | |
---|---|
SettingsClient |