GCKPlayerState.h 文件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
GCKPlayerState 枚举。
更多...
描述玩家状态的枚举。
- Deprecated:
- Game Manager API 已不再受支持,并将在未来的版本中移除。
枚举器 |
---|
GCKPlayerStateUnknown |
未知的播放器状态。
|
GCKPlayerStateDropped |
由于网络中断,播放器不再与接收设备连接。
|
GCKPlayerStateQuit |
播放器已手动选择断开与接收设备的连接。
|
GCKPlayerStateAvailable |
玩家已连接到接收设备,可以加入游戏。
|
GCKPlayerStateReady |
玩家已连接到接收设备,并准备进入游戏。
|
GCKPlayerStateIdle |
玩家已在游戏中连接到接收设备,并且处于空闲状态。
|
GCKPlayerStatePlaying |
玩家已在游戏中连接到接收设备,并且正在玩游戏。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eGCKPlayerState\u003c/code\u003e enum, which describes the various states a player can be in within the Google Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGCKPlayerState\u003c/code\u003e enum is deprecated and will be removed in a future release as the Game Manager API is no longer supported.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers 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.\u003c/p\u003e\n"]]],[],null,["# GCKPlayerState.h File\n\n[Enumerations](#enum-members) \nGCKPlayerState.h File Reference \nGCKPlayerState enum.\n[More...](#details)\n\n|------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Enumerations ------------ ||\n| enum | [GCKPlayerState](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6) { [GCKPlayerStateUnknown](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6ae4784fd4852ce00a7152326324d1ced1) = 0, [GCKPlayerStateDropped](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6a43fcd4beabaccff997552da8dcb4608d) = 1, [GCKPlayerStateQuit](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6ae9105041fba4fc136b2926ad55fab55a) = 2, [GCKPlayerStateAvailable](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6aa45be92bf9f623b97cd1451ba70b17fc) = 3, [GCKPlayerStateReady](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6a67c467391f891b6ca8cf79f1ce10b561) = 4, [GCKPlayerStateIdle](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6af675a8e49374d9b30e18589adbf4a687) = 5, [GCKPlayerStatePlaying](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6aa01672db33b85b34abc2d7f21518eb1a) = 6 } |\n| | An enum describing player states. [More...](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6) |\n| ||\n\nDetailed Description\n--------------------\n\nGCKPlayerState enum.\n\nEnumeration Type Documentation\n------------------------------\n\n|-------------------------------------------------------------------------------------------------------|\n| enum [GCKPlayerState](/cast/v3/reference/ios/g_c_k_player_state_8h#aa9a411f5c852bb7871c5f6584e11f4d6) |\n\nAn enum describing player states.\n\n**[Deprecated:](/cast/v3/reference/ios/deprecated#_deprecated000035)**\n: The Game Manager API is no longer supported and will be removed in a future release.\n\n| Enumerator ||\n|-------------------------|------------------------------------------------------------------------------|\n| GCKPlayerStateUnknown | Unknown player state. |\n| GCKPlayerStateDropped | The player is no longer connected to the receiver because of a network drop. |\n| GCKPlayerStateQuit | The player has manually chosen to disconnect from the receiver. |\n| GCKPlayerStateAvailable | The player is connected to the receiver and available to join a game. |\n| GCKPlayerStateReady | The player is connected to the receiver, and ready to enter the game. |\n| GCKPlayerStateIdle | The player is connected to the receiver, in the game, and idle. |\n| GCKPlayerStatePlaying | The player is connected to the receiver, in the game, and actively playing. |"]]