LocationStatusCodes
Stay organized with collections
Save and categorize content based on your preferences.
This class is deprecated.
Use GeofenceStatusCodes
.
Status codes that can be returned to listeners to indicate the success or failure of an
operation.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
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
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
public static final int
SUCCESS
The operation was successful.
Constant Value: 0
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLocationStatusCodes\u003c/code\u003e is deprecated; use \u003ccode\u003eGeofenceStatusCodes\u003c/code\u003e instead.\u003c/p\u003e\n"],["\u003cp\u003eIt defines status codes indicating the success or failure of location-based operations, especially for geofences.\u003c/p\u003e\n"],["\u003cp\u003eCommon error codes include those for unavailable geofence service, exceeding geofence limits, and too many pending intents.\u003c/p\u003e\n"],["\u003cp\u003eA status code of \u003ccode\u003eSUCCESS\u003c/code\u003e (0) indicates the operation was completed successfully.\u003c/p\u003e\n"]]],[],null,["# LocationStatusCodes\n\npublic final class **LocationStatusCodes** extends [Object](//developer.android.com/reference/java/lang/Object.html) \n**This class is deprecated.** \n\nUse [GeofenceStatusCodes](/android/reference/com/google/android/gms/location/GeofenceStatusCodes).\n\nStatus codes that can be returned to listeners to indicate the success or failure of an\noperation. \n\n### Constant Summary\n\n|-----|-----------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [ERROR](/android/reference/com/google/android/gms/location/LocationStatusCodes#ERROR) | An unspecified error occurred; no more specific information is available. |\n| int | [GEOFENCE_NOT_AVAILABLE](/android/reference/com/google/android/gms/location/LocationStatusCodes#GEOFENCE_NOT_AVAILABLE) | Geofence service is not available now. |\n| int | [GEOFENCE_TOO_MANY_GEOFENCES](/android/reference/com/google/android/gms/location/LocationStatusCodes#GEOFENCE_TOO_MANY_GEOFENCES) | Your app has registered more than 100 geofences. |\n| int | [GEOFENCE_TOO_MANY_PENDING_INTENTS](/android/reference/com/google/android/gms/location/LocationStatusCodes#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)](/android/reference/com/google/android/gms/location/GeofencingApi#addGeofences(com.google.android.gms.common.api.GoogleApiClient,%20com.google.android.gms.location.GeofencingRequest,%20android.app.PendingIntent)) call. |\n| int | [SUCCESS](/android/reference/com/google/android/gms/location/LocationStatusCodes#SUCCESS) | The operation was successful. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**ERROR**\n\nAn unspecified error occurred; no more specific information is available. The device\nlogs may provide additional data. \nConstant Value: 1 \n\n#### public static final int\n**GEOFENCE_NOT_AVAILABLE**\n\nGeofence service is not available now. Typically this is because the user turned off\nlocation access in settings \\\u003e location access. \nConstant Value: 1000 \n\n#### public static final int\n**GEOFENCE_TOO_MANY_GEOFENCES**\n\nYour app has registered more than 100 geofences. Remove unused ones before adding\nnew geofences. \nConstant Value: 1001 \n\n#### public static final int\n**GEOFENCE_TOO_MANY_PENDING_INTENTS**\n\nYou have provided more than 5 different PendingIntents to the [GeofencingApi.addGeofences(com.google.android.gms.common.api.GoogleApiClient,\nGeofencingRequest, PendingIntent)](/android/reference/com/google/android/gms/location/GeofencingApi#addGeofences(com.google.android.gms.common.api.GoogleApiClient,%20com.google.android.gms.location.GeofencingRequest,%20android.app.PendingIntent)) call. \nConstant Value: 1002 \n\n#### public static final int\n**SUCCESS**\n\nThe operation was successful. \nConstant Value: 0"]]