GeofenceStatusCodes

public final class GeofenceStatusCodes extends CommonStatusCodes

Geofence specific status codes, for use in Status.getStatusCode()

Constant Summary

int GEOFENCE_INSUFFICIENT_LOCATION_PERMISSION The client doesn't have sufficient location permission to perform geofencing operations.
int GEOFENCE_NOT_AVAILABLE Geofence service is not available now.
int GEOFENCE_REQUEST_TOO_FREQUENT Your app has been adding Geofences too frequently.
int GEOFENCE_TOO_MANY_GEOFENCES Your app has registered more than 100 geofences.
int GEOFENCE_TOO_MANY_PENDING_INTENTS You have provided more than 5 different PendingIntents to the GeofencingApi.addGeofences(GoogleApiClient, GeofencingRequest, PendingIntent) call.

Inherited Constant Summary

Public Method Summary

static String
getStatusCodeString(int statusCode)
Returns an untranslated debug (not user-friendly!) string based on the current status code.

Inherited Method Summary

Constants

public static final int GEOFENCE_INSUFFICIENT_LOCATION_PERMISSION

The client doesn't have sufficient location permission to perform geofencing operations.

Constant Value: 1004

public static final int GEOFENCE_NOT_AVAILABLE

Geofence service is not available now.

This can happen in the following conditions:

  • Device location has been turned off.
  • On Android P and above devices, Location Accuracy is off.
  • Below Android P, location mode has been set to "device only" mode. Geofence service is only available in "high accuracy" or "battery saving" mode.
Constant Value: 1000

public static final int GEOFENCE_REQUEST_TOO_FREQUENT

Your app has been adding Geofences too frequently.

Constant Value: 1005

public static final int GEOFENCE_TOO_MANY_GEOFENCES

Your app has registered more than 100 geofences. Remove unused ones before adding new geofences.

Constant Value: 1001

public static final int GEOFENCE_TOO_MANY_PENDING_INTENTS

You have provided more than 5 different PendingIntents to the GeofencingApi.addGeofences(GoogleApiClient, GeofencingRequest, PendingIntent) call.

Constant Value: 1002

Public Methods

public static String getStatusCodeString (int statusCode)

Returns an untranslated debug (not user-friendly!) string based on the current status code.