| 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 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 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 the list of all the players created by this sender device.
Returns the game-specific data. May return null.
Returns the game status text.
Returns the state of the game. Gameplay states are defined in
GameManagerClient and start with GAMEPLAY_STATE.
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.
Returns the current state of the lobby. Lobby states are defined in
GameManagerClient and start with LOBBY_STATE.
Returns the maximum number of players allowed by the game.
Returns the PlayerInfo for the specified playerId or null if the
player does not exist.
| playerId | The id of the player. |
|---|
Returns an unmodifiable collection of all the players in the game.
Returns a list of all players that are in the specified player state. Player states are
defined in GameManagerClient and start with PLAYER_STATE.
| playerState | The player state to look for. |
|---|
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.