LocationStatusCodes

  • LocationStatusCodes is a deprecated class used to indicate the success or failure of an operation.

  • It should be replaced with GeofenceStatusCodes for current use.

  • The class defines several constant status codes, including SUCCESS and various error types like ERROR, GEOFENCE_NOT_AVAILABLE, GEOFENCE_TOO_MANY_GEOFENCES, and GEOFENCE_TOO_MANY_PENDING_INTENTS.

public final class LocationStatusCodes extends Object

This class is deprecated.
Use GeofenceStatusCodes .

Status codes that can be returned to listeners to indicate the success or failure of an operation.

Constant Summary

int ERROR An unspecified error occurred; no more specific information is available.
int GEOFENCE_NOT_AVAILABLE Geofence service is not available now.
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(com.google.android.gms.common.api.GoogleApiClient, GeofencingRequest, PendingIntent) call.
int SUCCESS The operation was successful.

Inherited Method Summary

Constants

public static final int ERROR

An unspecified error occurred; no more specific information is available. The device logs may provide additional data.

Constant Value: 1

public static final int GEOFENCE_NOT_AVAILABLE

Geofence service is not available now. Typically this is because the user turned off location access in settings > location access.

Constant Value: 1000

public static final int GEOFENCE_TOO_MANY_GEOFENCES

Your app has registered more than 100 geofences. Remove unused ones before adding new geofences.

Constant Value: 1001

public static final int GEOFENCE_TOO_MANY_PENDING_INTENTS

Constant Value: 1002

public static final int SUCCESS

The operation was successful.

Constant Value: 0
Create a Mobile Website
View Site in Mobile | Classic
Share by: