GamesCallbackStatusCodes
Stay organized with collections
Save and categorize content based on your preferences.
Status codes for Games callbacks.
Constant Summary
int |
CLIENT_RECONNECT_REQUIRED
|
This constant is deprecated. Used only for
GoogleApiClient Games API.
|
int |
INTERNAL_ERROR
|
An unspecified error occurred; no more specific
information is available. |
int |
OK
|
The operation was successful. |
Inherited Method Summary
From class java.lang.Object
Constants
public static final int
CLIENT_RECONNECT_REQUIRED
This constant is deprecated.Used only for GoogleApiClient Games API.
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:
2
public static final int
INTERNAL_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
OK
The operation was successful.
Constant Value:
0
Public Methods
public static String
getStatusCodeString
(int
statusCode)
Get the string associated with the status code. This can be used for clearer logging
messages to avoid having to look up error codes.
Parameters
statusCode
The status code to get the message string for.
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\u003eGamesCallbackStatusCodes\u003c/code\u003e provides status codes for operations within the Google Play Games Services.\u003c/p\u003e\n"],["\u003cp\u003eIt defines three main status codes: \u003ccode\u003eOK\u003c/code\u003e, \u003ccode\u003eINTERNAL_ERROR\u003c/code\u003e, and the deprecated \u003ccode\u003eCLIENT_RECONNECT_REQUIRED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA utility method, \u003ccode\u003egetStatusCodeString\u003c/code\u003e, helps translate status codes into human-readable strings for logging and debugging purposes.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used for Google Play Games Services callbacks to indicate the success or failure of an operation.\u003c/p\u003e\n"]]],[],null,["# GamesCallbackStatusCodes\n\npublic final class **GamesCallbackStatusCodes** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nStatus codes for Games callbacks. \n\n### Constant Summary\n\n|-----|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| int | [CLIENT_RECONNECT_REQUIRED](/android/reference/com/google/android/gms/games/GamesCallbackStatusCodes#CLIENT_RECONNECT_REQUIRED) | *This constant is deprecated. Used only for GoogleApiClient Games API.* |\n| int | [INTERNAL_ERROR](/android/reference/com/google/android/gms/games/GamesCallbackStatusCodes#INTERNAL_ERROR) | An unspecified error occurred; no more specific information is available. |\n| int | [OK](/android/reference/com/google/android/gms/games/GamesCallbackStatusCodes#OK) | The operation was successful. |\n\n### Public Method Summary\n\n|--------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](//developer.android.com/reference/java/lang/String.html) | [getStatusCodeString](/android/reference/com/google/android/gms/games/GamesCallbackStatusCodes#getStatusCodeString(int))(int statusCode) Get the string associated with the status code. |\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**CLIENT_RECONNECT_REQUIRED**\n\n**This constant is deprecated.** \n\nUsed only for GoogleApiClient Games API. \nThe GoogleApiClient is in an inconsistent state and must reconnect to the service to\nresolve the issue. Further calls to the service using the current connection are\nunlikely to succeed. \nConstant Value: 2 \n\n#### public static final int\n**INTERNAL_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**OK**\n\nThe operation was successful. \nConstant Value: 0\n\nPublic Methods\n--------------\n\n#### public static [String](//developer.android.com/reference/java/lang/String.html) **getStatusCodeString** (int statusCode)\n\nGet the string associated with the status code. This can be used for clearer logging\nmessages to avoid having to look up error codes. \n\n##### Parameters\n\n| statusCode | The status code to get the message string for. |\n|------------|------------------------------------------------|"]]