<GCKGameManagerChannelDelegate> 协议参考
概览
GCKGameManagerChannel 委托协议。
- Deprecated:
- Game Manager API 不再受支持,并将在未来的版本中移除。
继承 <GCKCastChannelNSObject>。
实例方法摘要 | |
(void) | - gameManagerChannel:stateDidChangeTo:from: |
在游戏管理器状态发生变化时调用。更多... | |
(void) | - gameManagerChannel:didReceiveGameMessage:forPlayerID: |
在接收者针对特定玩家发送游戏消息时调用。更多... | |
(void) | - gameManagerChannel:requestDidSucceedWithID:result: |
在玩家请求或游戏请求成功时调用。更多... | |
(void) | - gameManagerChannel:requestDidFailWithID:error: |
在播放器请求或游戏请求因出错而调用时调用。更多... | |
(void) | - gameManagerChannelDidConnect: |
在接收者的游戏管理器成功连接且我们准备好与其互动时调用。更多... | |
(void) | - gameManagerChannel:didFailToConnectWithError: |
在接收者的游戏管理器在连接期间遇到错误时调用。更多... | |
方法详细信息
- (void) gameManagerChannel: | (GCKGameManagerChannel *) | gameManagerChannel | |
stateDidChangeTo: | (GCKGameManagerState *) | currentState | |
from: | (GCKGameManagerState *) | previousState | |
在游戏管理器状态发生变化时调用。
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel. currentState The current state. previousState The previous state.
- (void) gameManagerChannel: | (GCKGameManagerChannel *) | gameManagerChannel | |
didReceiveGameMessage: | (id) | gameMessage | |
forPlayerID: | (NSString *) | playerID | |
在接收者针对特定玩家发送游戏消息时调用。
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel. gameMessage The game message sent by the receiver. playerID The player ID associated with the game message.
- (void) gameManagerChannel: | (GCKGameManagerChannel *) | gameManagerChannel | |
requestDidSucceedWithID: | (NSInteger) | requestID | |
result: | (GCKGameManagerResult *) | result | |
在玩家请求或游戏请求成功时调用。
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel. requestID The request ID that failed. This is the ID returned when the request was made. result The GCKGameManagerResult returned as part of this request response.
- (void) gameManagerChannel: | (GCKGameManagerChannel *) | gameManagerChannel | |
requestDidFailWithID: | (NSInteger) | requestID | |
error: | (GCKError *) | error | |
在播放器请求或游戏请求因出错而调用时调用。
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel. requestID The request ID that failed. This is the ID returned when the request was made. error The error describing the failure.
|
required |
在接收者的游戏管理器成功连接且我们准备好与其互动时调用。
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel.
|
required |
在接收者的游戏管理器在连接期间遇到错误时调用。
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel. error The error describing the failure.