com.google.android.gms.games.multiplayer.realtime.RoomUpdateListener |
The listener invoked when the state of the room has changed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when the client attempts to join a real-time room.
| |||||||||||
Called when the client attempts to leaves the real-time room.
| |||||||||||
Called when all the participants in a real-time room are fully connected.
| |||||||||||
Called when the client attempts to create a real-time room.
|
Called when the client attempts to join a real-time room. The real-time room can be joined
by calling the joinRoom(RoomConfig)
operation.
Possible status codes include:
STATUS_OK
if data was successfully loaded and is up-to-date.STATUS_CLIENT_RECONNECT_REQUIRED
if the GamesClient
needs to
reconnect to the service to access this data.STATUS_REAL_TIME_CONNECTION_FAILED
if the client failed
to connect to the networkSTATUS_INTERNAL_ERROR
if an unexpected error occurred in the
service.statusCode | A status code indicating the result of the operation. |
---|---|
room | The data of the real-time room that was joined. |
Called when the client attempts to leaves the real-time room. Possible status codes include:
STATUS_OK
if operation was successfully completed.STATUS_INTERNAL_ERROR
if an unexpected error occurred in the
service.statusCode | A status code indicating the result of the operation. |
---|---|
roomId | ID of the real-time room which was left. |
Called when all the participants in a real-time room are fully connected. This gets called once all invitations are accepted and any necessary automatching has been completed
room | The fully connected room object. |
---|
Called when the client attempts to create a real-time room. The real-time room can be created
by calling the createRoom(RoomConfig)
operation.
Possible status codes include:
STATUS_OK
if data was successfully loaded and is up-to-date.STATUS_CLIENT_RECONNECT_REQUIRED
if the GamesClient
needs to
reconnect to the service to access this data.STATUS_REAL_TIME_CONNECTION_FAILED
if the client failed to connect to
the networkSTATUS_INTERNAL_ERROR
if an unexpected error occurred in the
service.statusCode | A status code indicating the result of the operation. |
---|---|
room | The real-time room data that was created. |