public interface

RoomUpdateListener

com.google.android.gms.games.multiplayer.realtime.RoomUpdateListener

Class Overview

The listener invoked when the state of the room has changed.

Summary

Public Methods
abstract void onJoinedRoom(int statusCode, Room room)
Called when the client attempts to join a real-time room.
abstract void onLeftRoom(int statusCode, String roomId)
Called when the client attempts to leaves the real-time room.
abstract void onRoomConnected(int statusCode, Room room)
Called when all the participants in a real-time room are fully connected.
abstract void onRoomCreated(int statusCode, Room room)
Called when the client attempts to create a real-time room.

Public Methods

public abstract void onJoinedRoom (int statusCode, Room 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:

Parameters
statusCode A status code indicating the result of the operation.
room The data of the real-time room that was joined.

public abstract void onLeftRoom (int statusCode, String roomId)

Called when the client attempts to leaves the real-time room. Possible status codes include:

Parameters
statusCode A status code indicating the result of the operation.
roomId ID of the real-time room which was left.

public abstract void onRoomConnected (int statusCode, Room room)

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

Parameters
room The fully connected room object.

public abstract void onRoomCreated (int statusCode, Room room)

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:

Parameters
statusCode A status code indicating the result of the operation.
room The real-time room data that was created.