GeofenceStatusCodes Stay organized with collections Save and categorize content based on your preferences.
Page Summary
GeofenceStatusCodes provides status codes specific to geofencing operations.
These status codes can indicate issues such as insufficient location permission, geofence service not being available, or exceeding geofence limits.
You can use the
getStatusCodeStringmethod to get a debug string for a given status code.
Geofence specific status codes, for use inStatus.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
| int | API_NOT_CONNECTED | |
| int | CANCELED | |
| int | CONNECTION_SUSPENDED_DURING_CALL | |
| int | DEVELOPER_ERROR | |
| int | ERROR | |
| int | INTERNAL_ERROR | |
| int | INTERRUPTED | |
| int | INVALID_ACCOUNT | |
| int | NETWORK_ERROR | |
| int | RECONNECTION_TIMED_OUT | |
| int | RECONNECTION_TIMED_OUT_DURING_UPDATE | |
| int | REMOTE_EXCEPTION | |
| int | RESOLUTION_REQUIRED | |
| int | SERVICE_DISABLED | |
| int | SERVICE_VERSION_UPDATE_REQUIRED | |
| int | SIGN_IN_REQUIRED | |
| int | SUCCESS | |
| int | SUCCESS_CACHE | |
| int | TIMEOUT |
Public Method Summary
| staticString | getStatusCodeString(int statusCode) Returns an untranslated debug (not user-friendly!) string based on the current status code. |
Inherited Method Summary
| staticString | getStatusCodeString(int arg0) |
Constants
public static final intGEOFENCE_INSUFFICIENT_LOCATION_PERMISSION
The client doesn't have sufficient location permission to perform geofencing operations.
public static final intGEOFENCE_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.
public static final intGEOFENCE_REQUEST_TOO_FREQUENT
Your app has been adding Geofences too frequently.
public static final intGEOFENCE_TOO_MANY_GEOFENCES
Your app has registered more than 100 geofences. Remove unused ones before adding new geofences.
public static final intGEOFENCE_TOO_MANY_PENDING_INTENTS
You have provided more than 5 different PendingIntents to the GeofencingApi.addGeofences(GoogleApiClient, GeofencingRequest, PendingIntent) call.
Public Methods
public staticStringgetStatusCodeString(int statusCode)
Returns an untranslated debug (not user-friendly!) string based on the current status code.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.