GamesCallbackStatusCodes

public final class GamesCallbackStatusCodes extends Object

Status codes for Games callbacks.

Nested Class Summary

@interface GamesCallbackStatusCodes.OnJoinedRoomStatusCodes Possible status codes for onJoinedRoom(int, Room)
@interface GamesCallbackStatusCodes.OnLeftRoomStatusCodes Possible status codes for onLeftRoom(int, String)
@interface GamesCallbackStatusCodes.OnRealTimeMessageSentStatusCodes Possible status codes for RealTimeMultiplayerClient.ReliableMessageSentCallback
@interface GamesCallbackStatusCodes.OnRoomConnectedStatusCodes Possible status codes for onRoomConnected(int, Room)
@interface GamesCallbackStatusCodes.OnRoomCreatedStatusCodes Possible status codes for onRoomCreated(int, Room)

Constant Summary

int CLIENT_RECONNECT_REQUIRED This constant was 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 Method Summary

static String
getStatusCodeString(int statusCode)
Get the string associated with the status code.

Inherited Method Summary

Constants

public static final int CLIENT_RECONNECT_REQUIRED

This constant was 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 MULTIPLAYER_DISABLED

This game does not support multiplayer. This could occur if the linked app is not configured appropriately in the developer console.

Constant Value: 6003

public static final int OK

The operation was successful.

Constant Value: 0

public static final int REAL_TIME_CONNECTION_FAILED

Failed to initialize the network connection for a real-time room.

Constant Value: 7000

public static final int REAL_TIME_MESSAGE_SEND_FAILED

Failed to send message to the peer participant for a real-time room.

Constant Value: 7001

public static final 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.

Constant Value: 7004

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.