com.google.android.gms.cast.games.GameManagerState |
Represents a snapshot of the Game Manager's state.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the application name.
| |||||||||||
Returns the list of all players that are in a connected state and were created by this sender
device.
| |||||||||||
Returns the list of all players that are in a connected state.
| |||||||||||
Returns the list of all the players created by this sender device.
| |||||||||||
Returns the game-specific data.
| |||||||||||
Returns the game status text.
| |||||||||||
Returns the state of the game.
| |||||||||||
Returns a list of player IDs that are different between this object and the provided
GameManagerState . | |||||||||||
Returns the current state of the lobby.
| |||||||||||
Returns the maximum number of players allowed by the game.
| |||||||||||
Returns an unmodifiable collection of all the players in the game.
| |||||||||||
Returns a list of all players that are in the specified player state.
| |||||||||||
Returns whether the game data is different between this object and the provided
GameManagerState . | |||||||||||
Returns whether the game status text is different between this object and the provided
GameManagerState . | |||||||||||
Returns whether the gameplay state is different between this object and the provided
GameManagerState . | |||||||||||
Returns whether the lobby state is different between this object and the provided
GameManagerState . | |||||||||||
Returns whether the player with the provided player ID has changed between this object and
the provided
GameManagerState . | |||||||||||
Returns whether the player data of the player with the specified player ID has changed
between this object and the provided
GameManagerState . | |||||||||||
Returns whether the player state of the player with the specified player ID has changed
between this object and the provided
GameManagerState . |
Returns the application name.
Returns | |
---|---|
CharSequence |
Returns the list of all players that are in a connected state and were created by this sender
device. A player is considered to be in a connected state if the associated
getPlayerState()
returns
PLAYER_STATE_IDLE
,
PLAYER_STATE_AVAILABLE
,
PLAYER_STATE_PLAYING
or
PLAYER_STATE_READY
.
Returns | |
---|---|
List<PlayerInfo> |
See also:
Returns the list of all players that are in a connected state. A player is considered to
be in a connected state if the associated getPlayerState()
returns
PLAYER_STATE_IDLE
,
PLAYER_STATE_AVAILABLE
,
PLAYER_STATE_PLAYING
or
PLAYER_STATE_READY
.
Returns | |
---|---|
List<PlayerInfo> |
See also:
Returns the list of all the players created by this sender device.
Returns | |
---|---|
List<PlayerInfo> |
See also:
Returns the game-specific data. May return null
.
Returns | |
---|---|
JSONObject |
Returns the game status text.
Returns | |
---|---|
CharSequence |
Returns the state of the game. Gameplay states are defined in
GameManagerClient
and start with GAMEPLAY_STATE
.
Returns | |
---|---|
int |
Returns a list of player IDs that are different between this object and the provided
GameManagerState
. This includes players that were added, removed, or have changed in
any way.
Parameters | |
---|---|
other |
GameManagerState
|
Returns | |
---|---|
Collection<String> |
Returns the current state of the lobby. Lobby states are defined in
GameManagerClient
and start with LOBBY_STATE
.
Returns | |
---|---|
int |
Returns the maximum number of players allowed by the game.
Returns | |
---|---|
int |
Returns the PlayerInfo
for the specified playerId
or null
if the
player does not exist.
Parameters | |
---|---|
playerId |
String :
The id of the player.
|
Returns | |
---|---|
PlayerInfo |
Returns an unmodifiable collection of all the players in the game.
Returns | |
---|---|
Collection<PlayerInfo> |
Returns a list of all players that are in the specified player state. Player states are
defined in GameManagerClient
and start with PLAYER_STATE
.
Parameters | |
---|---|
playerState |
int :
The player state to look for.
|
Returns | |
---|---|
List<PlayerInfo> |
Returns whether the game data is different between this object and the provided
GameManagerState
.
Parameters | |
---|---|
other |
GameManagerState
|
Returns | |
---|---|
boolean |
Returns whether the game status text is different between this object and the provided
GameManagerState
.
Parameters | |
---|---|
other |
GameManagerState
|
Returns | |
---|---|
boolean |
Returns whether the gameplay state is different between this object and the provided
GameManagerState
.
Parameters | |
---|---|
other |
GameManagerState
|
Returns | |
---|---|
boolean |
Returns whether the lobby state is different between this object and the provided
GameManagerState
.
Parameters | |
---|---|
other |
GameManagerState
|
Returns | |
---|---|
boolean |
Returns whether the player with the provided player ID has changed between this object and
the provided GameManagerState
.
Parameters | |
---|---|
playerId |
String
|
other |
GameManagerState
|
Returns | |
---|---|
boolean |
Returns whether the player data of the player with the specified player ID has changed
between this object and the provided GameManagerState
.
Parameters | |
---|---|
playerId |
String
|
other |
GameManagerState
|
Returns | |
---|---|
boolean |
Returns whether the player state of the player with the specified player ID has changed
between this object and the provided GameManagerState
.
Parameters | |
---|---|
playerId |
String
|
other |
GameManagerState
|
Returns | |
---|---|
boolean |