GCKPlayerInfo Class
Represents data for a single player.
- Deprecated:
- The Game Manager API is no longer supported and will be removed in a future release.
Inherits NSObject.
|
(instancetype) | - init |
| Default initializer is not available. More...
|
|
Default initializer is not available.
The unique string identifier of this player.
The current state of the player.
Player-specific data defined by the game.
This data is persisted while the game is running. Will be either an object that can be serialized to JSON using NSJSONSerialization, or nil
.
True if this player is was created on this sender device.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `GCKPlayerInfo` class represents data for a single player in a game session, including player ID, state, and custom data."],["This class is part of the Game Manager API, which is deprecated and will be removed in a future release."],["Players have properties such as `playerID`, `playerState`, `playerData`, `isConnected`, and `isControllable` that provide information about their status and connection."],["A player is considered connected if their `playerState` is `Available`, `Ready`, `Idle`, or `Playing`."],["`isControllable` indicates if the player was created on the current sender device."]]],[]]