Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HUAWEI HMS Core
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
| 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. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.