Summary: Constants | Inherited Methods | [Expand All]
public final class

# LocationStatusCodes

extends Object

java.lang.Object
↳ | com.google.android.gms.location.LocationStatusCodes

This class is deprecated.
Use `GeofenceStatusCodes`.

## Class Overview

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

## Summary

Constants
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 `addGeofences(com.google.android.gms.common.api.GoogleApiClient, GeofencingRequest, PendingIntent)` call.
int | SUCCESS | The operation was successful.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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 (0x00000001)

#### 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 (0x000003e8)

#### 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 (0x000003e9)

#### public static final int GEOFENCE_TOO_MANY_PENDING_INTENTS

You have provided more than 5 different PendingIntents to the `addGeofences(com.google.android.gms.common.api.GoogleApiClient, GeofencingRequest, PendingIntent)` call.

Constant Value: 1002 (0x000003ea)

#### public static final int SUCCESS

The operation was successful.

Constant Value: 0 (0x00000000)