java.lang.Object | |
↳ | com.google.android.gms.games.GamesCallbackStatusCodes |
Status codes for Games callbacks.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GamesCallbackStatusCodes.OnJoinedRoomStatusCodes | Possible status codes for onJoinedRoom(int, Room) . |
||||||||||
GamesCallbackStatusCodes.OnLeftRoomStatusCodes | Possible status codes for onLeftRoom(int, String) . |
||||||||||
GamesCallbackStatusCodes.OnRealTimeMessageSentStatusCodes | Possible status codes for RealTimeMultiplayerClient.ReliableMessageSentCallback . |
||||||||||
GamesCallbackStatusCodes.OnRoomConnectedStatusCodes | Possible status codes for onRoomConnected(int, Room) . |
||||||||||
GamesCallbackStatusCodes.OnRoomCreatedStatusCodes | Possible status codes for onRoomCreated(int, Room) . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 | MULTIPLAYER_DISABLED | This game does not support multiplayer. | |||||||||
int | OK | The operation was successful. | |||||||||
int | REAL_TIME_CONNECTION_FAILED | Failed to initialize the network connection for a real-time room. | |||||||||
int | REAL_TIME_MESSAGE_SEND_FAILED | Failed to send message to the peer participant for a real-time room. | |||||||||
int | REAL_TIME_ROOM_NOT_JOINED | Failed to send message to the peer participant for a real-time room, because the user has not joined the room. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the string associated with the status code.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
An unspecified error occurred; no more specific information is available. The device logs may provide additional data.
This game does not support multiplayer. This could occur if the linked app is not configured appropriately in the developer console.
The operation was successful.
Failed to initialize the network connection for a real-time room.
Failed to send message to the peer participant for a real-time room.
Failed to send message to the peer participant for a real-time room, because the user has not joined the room.
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 |
int : The status code to get the message string for.
|
Returns | |
---|---|
String |