com.google.android.gms.games.multiplayer.Multiplayer |
Common constants/methods for multiplayer functionality.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | EXTRA_EXCLUSIVE_BIT_MASK | Used to bundle the exclusive bit mask of the player for auto-match criteria. | |||||||||
String | EXTRA_INVITATION | Used to return an Invitation . |
|||||||||
String | EXTRA_MAX_AUTOMATCH_PLAYERS | Used to return the maximum number of players that should be added to a room by auto-matching. | |||||||||
String | EXTRA_MIN_AUTOMATCH_PLAYERS | Used to return the minimum number of players that should be added to a room by auto-matching. | |||||||||
String | EXTRA_PLAYERS | Used to return a list of player IDs. | |||||||||
String | EXTRA_ROOM | Used to return a Room . |
|||||||||
String | EXTRA_TURN_BASED_MATCH | Used to return a TurnBasedMatch . |
|||||||||
int | MAX_RELIABLE_MESSAGE_LEN | This gives the maximum message size supported via the
sendReliableMessage(GoogleApiClient, RealTimeMultiplayer.ReliableMessageSentCallback, byte[], String, String) methods (excluding protocol headers). |
|||||||||
int | MAX_UNRELIABLE_MESSAGE_LEN | This gives the maximum (unfragmented) message size supported via the
sendUnreliableMessage(GoogleApiClient, byte[], String, String) methods (excluding protocol headers). |
Used to bundle the exclusive bit mask of the player for auto-match criteria.
Used to return an Invitation
. Retrieve with getParcelableExtra(String)
or getParcelable(String)
.
Used to return the maximum number of players that should be added to a room by auto-matching.
Retrieve with getIntExtra(String, int)
.
Used to return the minimum number of players that should be added to a room by auto-matching.
Retrieve with getIntExtra(String, int)
.
Used to return a list of player IDs. Retrieve with
getStringArrayListExtra(String)
.
Used to return a Room
. Retrieve with getParcelableExtra(String)
.
Used to return a TurnBasedMatch
. Retrieve with
getParcelableExtra(String)
or getParcelable(String)
.
This gives the maximum message size supported via the
sendReliableMessage(GoogleApiClient, RealTimeMultiplayer.ReliableMessageSentCallback, byte[], String, String)
methods (excluding protocol headers).
This gives the maximum (unfragmented) message size supported via the
sendUnreliableMessage(GoogleApiClient, byte[], String, String)
methods (excluding protocol headers).