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 |
This field is deprecated.
Use GoogleApi-based API FusedLocationProviderClient instead.
|
||||||||||
GeofencingApi |
This field is deprecated.
Use GoogleApi-based API GeofencingClient instead.
|
||||||||||
SettingsApi |
This field is deprecated.
Use GoogleApi-based API SettingsClient instead.
|
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.
This field is deprecated.
Use GoogleApi-based API FusedLocationProviderClient
instead.
Entry point to the fused location APIs.
This field is deprecated.
Use GoogleApi-based API GeofencingClient
instead.
Entry point to the geofencing APIs.
This field is deprecated.
Use GoogleApi-based API SettingsClient
instead.
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 |