<GCKGameManagerChannelDelegate> Protocol

<GCKGameManagerChannelDelegate> Protocol Reference

Overview

The delegate for GCKGameManagerChannel notifications.

Inherits <GCKCastChannelNSObject>.

Instance Method Summary

(void) - gameManagerChannel:stateDidChangeTo:from:
 Called when the GCKGameManagerState 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 GCKGameManagerState has changed.

Parameters
gameManagerChannelAffected GCKGameManagerChannel.
currentStateThe current GCKGameManagerState.
previousStateThe previous GCKGameManagerState.
- (void) gameManagerChannel: (GCKGameManagerChannel *)  gameManagerChannel
didReceiveGameMessage: (id)  gameMessage
forPlayerID: (NSString *)  playerID 

Called when the receiver sends a game message for a specific player.

Parameters
gameManagerChannelAffected GCKGameManagerChannel.
gameMessageGame message sent from the receiver.
playerIDThe player ID associated with the gameMessage.
- (void) gameManagerChannel: (GCKGameManagerChannel *)  gameManagerChannel
requestDidSucceedWithID: (NSInteger)  requestID
result: (GCKGameManagerResult *)  result 

Called when a player request or game request was successful.

Parameters
gameManagerChannelAffected GCKGameManagerChannel.
requestIDThe request ID that failed. This is the ID returned when the request was made.
resultGCKMangerResult returned as part of this request response.
- (void) gameManagerChannel: (GCKGameManagerChannel *)  gameManagerChannel
requestDidFailWithID: (NSInteger)  requestID
error: (NSError *)  error 

Called when a player request or game request failed with an error.

Parameters
gameManagerChannelAffected GCKGameManagerChannel.
requestIDThe request ID that failed. This is the ID returned when the request was made.
errorThe NSError associated with 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
gameManagerChannelAffected GCKGameManagerChannel.
- (void) gameManagerChannel: (GCKGameManagerChannel *)  gameManagerChannel
didFailToConnectWithError: (NSError *)  error 
required

Called when the receiver's game manager encounters an error during connection.

Parameters
gameManagerChannelAffected GCKGameManagerChannel.
errorThe NSError associated with the failure.

Google Cast iOS Sender API Reference v 2.10.1 4691