LocationSettingsResponse

  • LocationSettingsResponse indicates the result of checking device location settings using the SettingsApi.

  • It helps determine if the current location settings meet the requirements of your application.

  • In case of failure, it provides a ResolvableApiException that can potentially resolve the issue.

  • Access the current location settings states using the getLocationSettingsStates() method.

public class LocationSettingsResponse extends Response<LocationSettingsResult>

Successful response of checking settings via SettingsApi.checkLocationSettings(GoogleApiClient, LocationSettingsRequest).

If a Task with this response type fails, it will receive a ResolvableApiException which may be able to resolve the failure. See SettingsClient for more details.

The current location settings states can be accessed via getLocationSettingsStates(). See LocationSettingsResult for more details.

Public Method Summary

LocationSettingsStates
getLocationSettingsStates()
Retrieves the location settings states.

Inherited Method Summary

Public Methods

public LocationSettingsStates getLocationSettingsStates ()

Retrieves the location settings states.