This API is used to check whether related location settings are available. To use this API, you must first create a LocationSettingsRequest.Builder class and add all LocationRequest objects that will be used by your app. LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder().addLocationRequest(mLocationRequest); Call the checkLocationSettings method. Task <LocationSettingsResponse> result = LocationServices.getSettingsClient(this).checkLocationSettings(builder.build()); The client can check the status code in the LocationSettingsResponse object to view the location settings. The client can also call getLocationSettingsStates() to obtain the current state of relevant location settings. |