AwarenessStatusCodes

  • 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.

public class AwarenessStatusCodes extends CommonStatusCodes

Awareness specific status codes, for use in getStatusCode().

Constant Summary

int ACL_ACCESS_DENIED ACL authentication failed.
int API_NOT_AVAILABLE The client is not eligible to use this particular API.
int BAD_ACCOUNT The specified account was invalid.
int BLUETOOTH_OFF Bluetooth is turned off.
int FENCE_NOT_AVAILABLE A fence is not available.
int INCONSISTENT_ACCOUNT The account passed to an API method is different from the account that was specified in ContextManagerClientInfo when connecting.
int INCONSISTENT_MODULE_ID The module ID passed to an API method is different from the module ID that was specified in ContextManagerClientInfo when connecting.
int INCONSISTENT_UID The client's process has an unexpected UID.
int INTERNAL_API_CLIENT_CONNECTION_FAILED The GoogleApiClient connection failed.
int MAX_LIMIT_OF_FENCE_REGISTRATIONS_EXCEEDED The maximum available number of fence registrations for a client has been reached.

Inherited Constant Summary

Public Method Summary

static String
getStatusCodeString(int statusCode)
A human-readable String of the status code.

Inherited Method Summary

Constants

public static final int ACL_ACCESS_DENIED

ACL authentication failed.

Constant Value: 7503

public static final int API_NOT_AVAILABLE

The client is not eligible to use this particular API.

Constant Value: 7512

public static final int BAD_ACCOUNT

The specified account was invalid.

Constant Value: 7504

public static final int BLUETOOTH_OFF

Bluetooth is turned off.

Constant Value: 7506

public static final int FENCE_NOT_AVAILABLE

A fence is not available.

Constant Value: 7514

public static final int INCONSISTENT_ACCOUNT

The account passed to an API method is different from the account that was specified in ContextManagerClientInfo when connecting.

Constant Value: 7510

public static final int INCONSISTENT_MODULE_ID

The module ID passed to an API method is different from the module ID that was specified in ContextManagerClientInfo when connecting.

Constant Value: 7511

public static final int INCONSISTENT_UID

The client's process has an unexpected UID.

Constant Value: 7513

public static final int INTERNAL_API_CLIENT_CONNECTION_FAILED

The GoogleApiClient connection failed.

Constant Value: 7507

public static final int MAX_LIMIT_OF_FENCE_REGISTRATIONS_EXCEEDED

The maximum available number of fence registrations for a client has been reached.

Constant Value: 7515

Public Methods

public static String getStatusCodeString (int statusCode)

A human-readable String of the status code.

Returns
  • human-readable String of the status code.