GamesActivityResultCodes

public final class GamesActivityResultCodes extends Object

Result codes that can be set as result in Activities from the Client UI started with Activity.startActivityForResult(Intent, int).

Constant Summary

int RESULT_APP_MISCONFIGURED Result code sent back to the calling Activity when the game is not properly configured to access the Games service.
int RESULT_LICENSE_FAILED Result code sent back to the calling Activity when the game is not licensed to the user.
int RESULT_NETWORK_FAILURE Result code sent back to the calling Activity when the server request resulted in a network error.
int RESULT_RECONNECT_REQUIRED Result code sent back to the calling Activity when a reconnect is required.
int RESULT_SIGN_IN_FAILED Result code sent back to the calling Activity when signing in fails.

Inherited Method Summary

Constants

public static final int RESULT_APP_MISCONFIGURED

Result code sent back to the calling Activity when the game is not properly configured to access the Games service. Developers should check the logs for more details.

Constant Value: 10004

public static final int RESULT_LICENSE_FAILED

Result code sent back to the calling Activity when the game is not licensed to the user.

Constant Value: 10003

public static final int RESULT_NETWORK_FAILURE

Result code sent back to the calling Activity when the server request resulted in a network error.

Constant Value: 10006

public static final int RESULT_RECONNECT_REQUIRED

Result code sent back to the calling Activity when a reconnect is required.

The GoogleApiClient is in an inconsistent state and must reconnect to the service to resolve the issue. Further calls to the service using the current connection are unlikely to succeed.

Constant Value: 10001

public static final int RESULT_SIGN_IN_FAILED

Result code sent back to the calling Activity when signing in fails.

The attempt to sign in to the Games service failed. For example, this might happen if the network is flaky, or the user's account has been disabled, or consent could not be obtained.

Constant Value: 10002