<GCKGameManagerChannelDelegate> Protocol

<GCKGameManagerChannelDelegate> Protocol Reference

Overview

The GCKGameManagerChannel delegate protocol.

Deprecated:
The Game Manager API is no longer supported and will be removed in a future release.

Inherits <GCKCastChannelNSObject>.

Instance Method Summary

(void) - gameManagerChannel:stateDidChangeTo:from:
 Called when the Game Manager state has changed. More...
 
(void) - gameManagerChannel:didReceiveGameMessage:forPlayerID:
 Called when the receiver sends a game message for a specific player. More...
 
(void) - gameManagerChannel:requestDidSucceedWithID:result:
 Called when a player request or game request was successful. More...
 
(void) - gameManagerChannel:requestDidFailWithID:error:
 Called when a player request or game request failed with an error. More...
 
(void) - gameManagerChannelDidConnect:
 Called when the receiver's Game Manager connects successfully and we are ready to interact with it. More...
 
(void) - gameManagerChannel:didFailToConnectWithError:
 Called when the receiver's Game Manager encounters an error during connection. More...
 

Method Detail

- (void) gameManagerChannel: (GCKGameManagerChannel *)  gameManagerChannel
stateDidChangeTo: (GCKGameManagerState *)  currentState
from: (GCKGameManagerState *)  previousState 

Called when the Game Manager state has changed.

Parameters
gameManagerChannelThe affected GCKGameManagerChannel.
currentStateThe current state.
previousStateThe 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
gameManagerChannelThe affected GCKGameManagerChannel.
gameMessageThe game message sent by the receiver.
playerIDThe 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
gameManagerChannelThe affected GCKGameManagerChannel.
requestIDThe request ID that failed. This is the ID returned when the request was made.
resultThe 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
gameManagerChannelThe affected GCKGameManagerChannel.
requestIDThe request ID that failed. This is the ID returned when the request was made.
errorThe error describing the failure.
- (void) gameManagerChannelDidConnect: (GCKGameManagerChannel *)  gameManagerChannel
required

Called when the receiver's Game Manager connects successfully and we are ready to interact with it.

Parameters
gameManagerChannelThe affected GCKGameManagerChannel.
- (void) gameManagerChannel: (GCKGameManagerChannel *)  gameManagerChannel
didFailToConnectWithError: (GCKError *)  error 
required

Called when the receiver's Game Manager encounters an error during connection.

Parameters
gameManagerChannelThe affected GCKGameManagerChannel.
errorThe error describing the failure.