Page Summary
-
The AwarenessStatusCodes class extends CommonStatusCodes and provides specific status codes for use with the Awareness API.
-
It defines various integer constants representing different error conditions or states, such as access denied, API unavailability, invalid accounts, and Bluetooth being off.
-
The class also includes constants for issues related to fences, inconsistent client information, internal connection failures, and exceeding registration limits.
-
A public static method,
getStatusCodeString, is available to get a human-readable description for a given status code.
This class is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
Awareness specific status codes, for use in Status.getStatusCode().
Constant Summary
| int | ACL_ACCESS_DENIED | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | API_NOT_AVAILABLE | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | BAD_ACCOUNT | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | BLUETOOTH_OFF | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | FENCE_NOT_AVAILABLE | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | INCONSISTENT_ACCOUNT | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | INCONSISTENT_MODULE_ID | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | INCONSISTENT_UID | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | INTERNAL_API_CLIENT_CONNECTION_FAILED | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
| int | MAX_LIMIT_OF_FENCE_REGISTRATIONS_EXCEEDED | This constant is deprecated. The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement. |
Inherited Constant Summary
Public Method Summary
| static String |
getStatusCodeString(int statusCode)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
Inherited Method Summary
Constants
public static final int ACL_ACCESS_DENIED
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
ACL authentication failed.
public static final int API_NOT_AVAILABLE
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The client is not eligible to use this particular API.
public static final int BAD_ACCOUNT
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The specified account was invalid.
public static final int BLUETOOTH_OFF
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
Bluetooth is turned off.
public static final int FENCE_NOT_AVAILABLE
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
A fence is not available.
public static final int INCONSISTENT_ACCOUNT
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The account passed to an API method is different from the account that was specified in ContextManagerClientInfo when connecting.
public static final int INCONSISTENT_MODULE_ID
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The module ID passed to an API method is different from the module ID that was specified in ContextManagerClientInfo when connecting.
public static final int INCONSISTENT_UID
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The client's process has an unexpected UID.
public static final int INTERNAL_API_CLIENT_CONNECTION_FAILED
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The GoogleApiClient connection failed.
public static final int MAX_LIMIT_OF_FENCE_REGISTRATIONS_EXCEEDED
This constant is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
The maximum available number of fence registrations for a client has been reached.
Public Methods
public static String getStatusCodeString (int statusCode)
This method is deprecated.
The Awareness API is deprecated and will be turned down in a future Google Play services
release, as early as January 2027. There is no direct replacement.
A human-readable String of the status code.
Returns
- human-readable String of the status code.