java.lang.Object | |
↳ | com.google.android.gms.games.multiplayer.realtime.RoomConfig |
Configuration for a new room.
Nested Classes | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RoomConfig.Builder | Builder class for RoomConfig . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a builder for assembling a
RoomConfig . | |||||||||||
Creates an auto-match criteria
Bundle for a new invitation. | |||||||||||
Retrieves the criteria for auto-matching one or more players for the room.
| |||||||||||
Retrieves the ID of the invitation to accept, if any.
| |||||||||||
Retrieves the player IDs to invite to the room.
| |||||||||||
Retrieves the listener for message received from a peer.
| |||||||||||
Retrieves the listener for the room status changes.
| |||||||||||
Retrieves the listener that is called when operations complete.
| |||||||||||
Retrieves the (optional) developer-controlled parameter describing the type of game to play.
| |||||||||||
Indicates whether to enable the use of sockets for sending/receiving data.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a builder for assembling a RoomConfig
. The provided listener is required, and
must not be null. It will be invoked on the main thread when appropriate.
listener | The listener to be invoked when the primary state of the room changes. |
---|
Creates an auto-match criteria Bundle
for a new invitation. Can be passed to
setAutoMatchCriteria(Bundle)
.
minAutoMatchPlayers | Minimum number of auto-matched players. |
---|---|
maxAutoMatchPlayers | Maximum number of auto-matched players. |
exclusiveBitMask | Exclusive bitmasks for the automatching request. The logical AND of each pairing of automatching requests must equal zero for auto-match. If there are no exclusivity requirements for the game, this value should just be set to 0. |
Retrieves the criteria for auto-matching one or more players for the room.
Retrieves the ID of the invitation to accept, if any. This is necessary when calling
joinRoom(RoomConfig)
.
Retrieves the player IDs to invite to the room.
Retrieves the listener for message received from a peer.
RealTimeMessageReceivedListener
that is called when the client has
received a message from a peer.
Retrieves the listener for the room status changes.
RoomStatusUpdateListener
that is called when the room status has changed.
Retrieves the listener that is called when operations complete.
Retrieves the (optional) developer-controlled parameter describing the type of game to play.
Must be either a positive integer or ROOM_VARIANT_ANY
if not desired.
Indicates whether to enable the use of sockets for sending/receiving data.