java.lang.Object | ||
↳ | com.google.android.gms.common.api.CommonStatusCodes | |
↳ | com.google.android.gms.location.places.PlacesStatusCodes |
Places API specific status codes, for use in getStatusCode()
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ACCESS_NOT_CONFIGURED | Operation failed due to an invalid quota project. | |||||||||
int | DEVICE_RATE_LIMIT_EXCEEDED | Operation failed due to exceeding the per-device usage rate limit. | |||||||||
int | INVALID_APP | Operation failed due to the app not being allowed to use the API key. | |||||||||
int | INVALID_ARGUMENT | Operation failed due to an invalid argument. | |||||||||
int | KEY_EXPIRED | Operation failed due to an expired API key. | |||||||||
int | KEY_INVALID | Operation failed due to an invalid (malformed or missing) API key. | |||||||||
int | RATE_LIMIT_EXCEEDED | Operation failed due to exceeding the usage rate limit for the API key. | |||||||||
int | USAGE_LIMIT_EXCEEDED | Operation failed due to exceeding the quota usage limit. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a string containing the name of the given status code.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Operation failed due to an invalid quota project.
Check that "Google Places API for Android" is enabled for your API key. See the developer's guide for more information.
Operation failed due to exceeding the per-device usage rate limit.
This status code shouldn't be returned during normal usage of the API. It relates to usage of the API that far exceeds normal request levels.
Operation failed due to the app not being allowed to use the API key.
Check that the list of allowed apps for your API key includes the package name and SHA1 certificate fingerprint of your app. See the developer's guide for more information on how to do this.
Operation failed due to an invalid argument.
Operation failed due to an expired API key.
See the developer's guide for information on creating and using an API key.
Operation failed due to an invalid (malformed or missing) API key.
See the developer's guide for information on creating and using an API key.
Operation failed due to exceeding the usage rate limit for the API key.
This status code shouldn't be returned during normal usage of the API. It relates to usage of the API that far exceeds normal request levels.
Operation failed due to exceeding the quota usage limit.
See the developer's guide for information on usage limits and how to request a higher limit.
Returns a string containing the name of the given status code.
For example, if KEY_INVALID
is passed to this method, it will return the string
"PLACES_API_KEY_INVALID".
Note that the output of this method is not localized or user-friendly. It is recommended for debugging only.
Parameters | |
---|---|
statusCode |
int
|
Returns | |
---|---|
String |
The name of the given status code. |