com.google.android.gms.cast.games.GameManagerClient.Listener |
This interface is deprecated.
The Game Manager APIs are no longer supported and will be removed in a future
release.
A listener that can be set in GameManagerClient
to be notified when game manager state
is updated or when game messages are received for players controlled by this sender.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a game message for a player controlled by this sender is received.
| |||||||||||
Called when the game manager state has changed.
|
Called when a game message for a player controlled by this sender is received.
Parameters | |
---|---|
playerId |
String : The player ID of the recipient of the message. |
gameMessage |
JSONObject : The game message.
|
Called when the game manager state has changed.
This includes lobby, gameplay, player connect/disconnect, game data, and player data changes.
Use utility functions in GameManagerState
to find out what changed since the
previous snapshot.
Parameters | |
---|---|
newState |
GameManagerState : The new game manager state. |
oldState |
GameManagerState : The old game manager state.
|