Package com.amazon.A3L.location
Class A3LSettingsClient
- java.lang.Object
-
- com.amazon.A3L.location.A3LSettingsClient
-
public class A3LSettingsClient extends java.lang.Object
Provides abstraction over Google's SettingsClient .The main entry point for interacting with the location settings-enabler APIs.
This API makes it easy for an app to ensure that the device's system settings are properly configured for the app's location needs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.android.gms.tasks.Task<A3LLocationSettingsResponse>
checkLocationSettings(A3LLocationSettingsRequest a3LLocationSettingsRequest)
Checks if the relevant system settings are enabled on the device to carry out the desired location requests.
-
-
-
Method Detail
-
checkLocationSettings
@NonNull public com.google.android.gms.tasks.Task<A3LLocationSettingsResponse> checkLocationSettings(@NonNull A3LLocationSettingsRequest a3LLocationSettingsRequest)
Checks if the relevant system settings are enabled on the device to carry out the desired location requests. Note: For Android devices without Google Play Services, it will only check if the respective features are present and/or usable. It will not support ResolvableAPIException.- Parameters:
a3LLocationSettingsRequest
- : an object that contains all the location requirements that the client is interested in.- Returns:
- A task containing relevant system settings information.
-
-