目录

GeofenceErrorCodes

Class Info

public final class GeofenceErrorCodes extends CommonStatusCodes

Geofence result codes.

Public Field Summary

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

Qualifier and Type

Method Name and Description

String

getErrorMessage(int statusCode)

Obtains the result information based on the result code.

Public Fields

[h2]GEOFENCE_INSUFFICIENT_PERMISSION

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.

[h2]GEOFENCE_NUMBER_OVER_LIMIT

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.

[h2]GEOFENCE_PENDINGINTENT_OVER_LIMIT

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.

[h2]GEOFENCE_REQUEST_TOO_OFTEN

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.

[h2]GEOFENCE_UNAVAILABLE

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

[h2]getErrorMessage

Method

public static String getErrorMessage(int statusCode)

Obtains the result information based on the result code.

Parameters

Name

Description

statusCode

Result code.

Returns

Type

Description

String

Result description.