| CLASS info |
| public final class GeofenceErrorCodes extends CommonStatusCodes |
| Geofence status code |
| Type | Name | Desc |
| int | GEOFENCE_UNAVAILABLE | The geofence service is unavailable. |
| int | GEOFENCE_NUMBER_OVER_LIMIT | A maximum of 100 geofences can be added for an app. |
| int | GEOFENCE_PENDINGINTENT_OVER_LIMIT | A maximum of 5 PendingIntents can be used to add geofences. |
| int | GEOFENCE_INSUFFICIENT_PERMISSION | Insufficient permission to perform geofence-related operations. |
| int | GEOFENCE_REQUEST_TOO_OFTEN | Geofences are added too frequently. |
| Return type | Method name |
| String | getErrorMessage(int statusCode) |
| Constant |
| int GEOFENCE_UNAVAILABLE |
The geofence service is unavailable. Constant Value: 10200 |
| Constant |
| int GEOFENCE_NUMBER_OVER_LIMIT |
A maximum of 100 geofences can be added for an app. Constant Value: 10201 |
| Constant |
| int GEOFENCE_PENDINGINTENT_OVER_LIMIT |
A maximum of 5 PendingIntents can be used to add geofences. Constant Value: 10202 |
| Constant |
| int GEOFENCE_INSUFFICIENT_PERMISSION |
Insufficient permission to perform geofence-related operations. Constant Value: 10204 |
| Constant |
| int GEOFENCE_REQUEST_TOO_OFTEN |
Geofences are added too frequently. Constant Value: 10205 |
| Method |
| public String getErrorMessage(int statusCode) |
| This API is used to obtain the status information based on the status code. |
Parameters
| Parameter name | Parameter desc |
| statusCode | Status code. |
Return
| type | desc |
| String | Status information. |