Page Summary
-
The GCKGameManagerChannelDelegate protocol is used for game control operations with a GCKCastChannel subclass.
-
The Game Manager API and this protocol are deprecated and will be removed in a future release.
-
This protocol defines methods for handling game state changes, receiving game messages, and managing the results and errors of game requests.
-
It also includes methods for indicating successful connection or connection failure to the receiver's Game Manager.
Overview
The GCKGameManagerChannel delegate protocol.
- Deprecated:
- The Game Manager API is no longer supported and will be removed in a future release.
Inherits <GCKCastChannelNSObject>.
Method Detail
| - (void) gameManagerChannel: | ( GCKGameManagerChannel *) | gameManagerChannel | |
| stateDidChangeTo: | ( GCKGameManagerState *) | currentState | |
| from: | ( GCKGameManagerState *) | previousState | |
Called when the Game Manager state has changed.
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel . currentState The current state. previousState The previous state.
| - (void) gameManagerChannel: | ( GCKGameManagerChannel *) | gameManagerChannel | |
| didReceiveGameMessage: | (id) | gameMessage | |
| forPlayerID: | (NSString *) | playerID | |
Called when the receiver sends a game message for a specific player.
- 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 | |
Called when a player request or game request was successful.
- 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 | |
Called when a player request or game request failed with an 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.
| - (void) gameManagerChannelDidConnect: | ( GCKGameManagerChannel *) | gameManagerChannel |
Called when the receiver's Game Manager connects successfully and we are ready to interact with it.
- Parameters
- gameManagerChannel
| - (void) gameManagerChannel: | ( GCKGameManagerChannel *) | gameManagerChannel | |
| didFailToConnectWithError: | ( GCKError *) | error | |
Called when the receiver's Game Manager encounters an error during connection.
- Parameters
-
gameManagerChannel The affected GCKGameManagerChannel . error The error describing the failure.

