GCKPlayerState.h 文件
GCKPlayerState 枚举。
更多...
描述玩家状态的枚举。
- Deprecated:
- Game Manager API 已不再受支持,并将在未来的版本中移除。
枚举器 |
---|
GCKPlayerStateUnknown |
未知的播放器状态。
|
GCKPlayerStateDropped |
由于网络中断,播放器不再与接收设备连接。
|
GCKPlayerStateQuit |
播放器已手动选择断开与接收设备的连接。
|
GCKPlayerStateAvailable |
玩家已连接到接收设备,可以加入游戏。
|
GCKPlayerStateReady |
玩家已连接到接收设备,并准备进入游戏。
|
GCKPlayerStateIdle |
玩家已在游戏中连接到接收设备,并且处于空闲状态。
|
GCKPlayerStatePlaying |
玩家已在游戏中连接到接收设备,并且正在玩游戏。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-02。
[null,null,["最后更新时间 (UTC):2023-12-02。"],[[["This documentation details the `GCKPlayerState` enum, which describes the various states a player can be in within the Google Cast framework."],["The `GCKPlayerState` enum is deprecated and will be removed in a future release as the Game Manager API is no longer supported."],["The enum includes states like Unknown, Dropped, Quit, Available, Ready, Idle, and Playing, each representing a different stage of a player's connection and interaction with a Cast receiver."],["Developers can use this enum to understand and respond to changes in a player's state during a Cast session, although alternative solutions should be considered due to its deprecation."]]],[]]