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.

Only Essential Cookies
Accept All
ReferencesLocation KitAndroidcom.huawei.hms.locationClass SummaryGeofenceErrorCodes

GeofenceErrorCodes

Expand

Class Info

public final class GeofenceErrorCodes extends CommonStatusCodes

Geofence result codes.

Public Field Summary

Expand

Qualifier and Type

Field and Description

static final int

GEOFENCE_INSUFFICIENT_PERMISSION

Insufficient permission to perform geofence-related operations.

static final int

GEOFENCE_NUMBER_OVER_LIMIT

A maximum of 100 geofences can be added for an app.

static final int

GEOFENCE_PENDINGINTENT_OVER_LIMIT

A maximum of 5 PendingIntent objects can be used to add geofences.

static final int

GEOFENCE_REQUEST_TOO_OFTEN

Geofences are added too frequently.

static final int

GEOFENCE_UNAVAILABLE

The geofence service is unavailable.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

String

getErrorMessage(int statusCode)

Obtains the result information based on the result code.

Public Fields

GEOFENCE_INSUFFICIENT_PERMISSION

Expand

Fields

public static final int GEOFENCE_INSUFFICIENT_PERMISSION

Insufficient permission to perform geofence-related operations.

GEOFENCE_INSUFFICIENT_PERMISSION: 10204

For details about other constant values, please refer to Constant Values.

GEOFENCE_NUMBER_OVER_LIMIT

Expand

Fields

public static final int GEOFENCE_NUMBER_OVER_LIMIT

A maximum of 100 geofences can be added for an app.

GEOFENCE_NUMBER_OVER_LIMIT: 10201

For details about other constant values, please refer to Constant Values.

GEOFENCE_PENDINGINTENT_OVER_LIMIT

Expand

Fields

public static final int GEOFENCE_PENDINGINTENT_OVER_LIMIT

A maximum of 5 PendingIntent objects can be used to add geofences.

GEOFENCE_PENDINGINTENT_OVER_LIMIT: 10202

For details about other constant values, please refer to Constant Values.

GEOFENCE_REQUEST_TOO_OFTEN

Expand

Fields

public static final int GEOFENCE_REQUEST_TOO_OFTEN

Geofences are added too frequently.

GEOFENCE_REQUEST_TOO_OFTEN: 10205

For details about other constant values, please refer to Constant Values.

GEOFENCE_UNAVAILABLE

Expand

Fields

public static final int GEOFENCE_UNAVAILABLE

The geofence service is unavailable.

GEOFENCE_UNAVAILABLE: 10200

For details about other constant values, please refer to Constant Values.

Public Methods

getErrorMessage

Expand

Method

public static String getErrorMessage(int statusCode)

Obtains the result information based on the result code.

Parameters

Expand

Name

Description

statusCode

Result code.

Returns

Expand

Type

Description

String

Result description.

Search in References
Enter a keyword.