<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

Called when the Game Manager state has changed. More...
Called when the receiver sends a game message for a specific player. More...
Called when a player request or game request was successful. More...
Called when a player request or game request failed with an error. More...
Called when the receiver's Game Manager connects successfully and we are ready to interact with it. More...
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
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
required

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

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

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

Parameters
gameManagerChannel The affected GCKGameManagerChannel .
error The error describing the failure.
Create a Mobile Website
View Site in Mobile | Classic
Share by: