com.google.android.gms.cast.games.PlayerInfo |
Represents a player with regards to the Game Manager.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the player-specific JSON of data defined by the game.
| |||||||||||
Returns the unique string identifier for this player.
| |||||||||||
Returns the current state of the player.
| |||||||||||
Returns
true if this player is in a connected state. | |||||||||||
Returns
true if the player was created on this sender device. |
Returns the player-specific JSON of data defined by the game. This data is persisted while the game is running.
Returns | |
---|---|
JSONObject |
Returns the unique string identifier for this player.
Returns | |
---|---|
String |
Returns the current state of the player. Player state constants like are defined in
GameManagerClient
and start with PLAYER_STATE
.
Returns | |
---|---|
int |
Returns true
if this player is in a connected state. A player is considered to be in
a connected state if getPlayerState()
returns
PLAYER_STATE_IDLE
,
PLAYER_STATE_AVAILABLE
,
PLAYER_STATE_PLAYING
and
PLAYER_STATE_READY
.
Returns | |
---|---|
boolean |
Returns true
if the player was created on this sender device.
Returns | |
---|---|
boolean |