<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.