public interface

RoomStatusUpdateListener

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

Class Overview

Listener invoked when the status of a room, status of its participants or connection status of the participants has changed.

Summary

Public Methods
abstract void onConnectedToRoom(Room room)
Called when the client is connected to the connected set in a room.
abstract void onDisconnectedFromRoom(Room room)
Called when the client is disconnected from the connected set in a room.
abstract void onPeerDeclined(Room room, List<String> participantIds)
Called when one or more peers decline the invitation to a room.
abstract void onPeerInvitedToRoom(Room room, List<String> participantIds)
Called when one or more peers are invited to a room.
abstract void onPeerJoined(Room room, List<String> participantIds)
Called when one or more peer participants join a room.
abstract void onPeerLeft(Room room, List<String> participantIds)
Called when one or more peer participant leave a room.
abstract void onPeersConnected(Room room, List<String> participantIds)
Called when one or more peer participants are connected to a room.
abstract void onPeersDisconnected(Room room, List<String> participantIds)
Called when one or more peer participants are disconnected from a room.
abstract void onRoomAutoMatching(Room room)
Called when the server has started the process of auto-matching.
abstract void onRoomConnecting(Room room)
Called when one or more participants have joined the room and have started the process of establishing peer connections.

Public Methods

public abstract void onConnectedToRoom (Room room)

Called when the client is connected to the connected set in a room.

public abstract void onDisconnectedFromRoom (Room room)

Called when the client is disconnected from the connected set in a room.

public abstract void onPeerDeclined (Room room, List<String> participantIds)

Called when one or more peers decline the invitation to a room.

Parameters
participantIds ID of the peers invited to a room.

public abstract void onPeerInvitedToRoom (Room room, List<String> participantIds)

Called when one or more peers are invited to a room.

Parameters
participantIds ID of the peers invited to a room.

public abstract void onPeerJoined (Room room, List<String> participantIds)

Called when one or more peer participants join a room.

Parameters
participantIds IDs of peer participants who joined a room.

public abstract void onPeerLeft (Room room, List<String> participantIds)

Called when one or more peer participant leave a room.

Parameters
participantIds IDs of peer participants who left the room.

public abstract void onPeersConnected (Room room, List<String> participantIds)

Called when one or more peer participants are connected to a room.

Parameters
participantIds IDs of peer participants who were connected.

public abstract void onPeersDisconnected (Room room, List<String> participantIds)

Called when one or more peer participants are disconnected from a room.

Parameters
participantIds IDs of peer participants who were disconnected.

public abstract void onRoomAutoMatching (Room room)

Called when the server has started the process of auto-matching. Any invited participants must have joined and fully connected to each other before this will occur.

Parameters
room The room data with the status of a room and its participants.

public abstract void onRoomConnecting (Room room)

Called when one or more participants have joined the room and have started the process of establishing peer connections.

Parameters
room The room data with the status of a room and its participants.