# &lt;GCKGameManagerChannelDelegate&gt; Protocol

[Instance Methods](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#pub-methods) \<GCKGameManagerChannelDelegate\> Protocol Reference

## Overview

The [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. ") delegate protocol.

**[Deprecated:](https://developers.google.com/cast/v3/reference/ios/deprecated#_deprecated000018)**
:   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:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#accff76ee5892e8ad78a7c1fa67ae6274) |
|   | Called when the Game Manager state has changed. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#accff76ee5892e8ad78a7c1fa67ae6274) |
|   ||
| (void) | - [gameManagerChannel:didReceiveGameMessage:forPlayerID:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#af61da064c03740f9ae2ad2e50951059f) |
|   | Called when the receiver sends a game message for a specific player. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#af61da064c03740f9ae2ad2e50951059f) |
|   ||
| (void) | - [gameManagerChannel:requestDidSucceedWithID:result:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a43f388c8dc1a7696e6a4887c7c5448f8) |
|   | Called when a player request or game request was successful. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a43f388c8dc1a7696e6a4887c7c5448f8) |
|   ||
| (void) | - [gameManagerChannel:requestDidFailWithID:error:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a603e7047041a2397d01652e0c2940cba) |
|   | Called when a player request or game request failed with an error. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a603e7047041a2397d01652e0c2940cba) |
|   ||
| (void) | - [gameManagerChannelDidConnect:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a0e650e739f7edb7664987e231d56c7f6) |
|   | Called when the receiver's Game Manager connects successfully and we are ready to interact with it. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a0e650e739f7edb7664987e231d56c7f6) |
|   ||
| (void) | - [gameManagerChannel:didFailToConnectWithError:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a157cf9732077a52393f38ea573101f62) |
|   | Called when the receiver's Game Manager encounters an error during connection. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_game_manager_channel_delegate-p#a157cf9732077a52393f38ea573101f62) |
|   ||

## Method Detail

|---|---|---|---|
| - (void) gameManagerChannel: |   | ([GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel) \*) | *gameManagerChannel* |
| stateDidChangeTo: |   | ([GCKGameManagerState](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_state) \*) | *currentState* |
| from: |   | ([GCKGameManagerState](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_state) \*) | *previousState* |
|   |   |   |   |

Called when the Game Manager state has changed.

Parameters
:

    |---|---|
    | gameManagerChannel | The affected [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. "). |
    | currentState | The current state. |
    | previousState | The previous state. |


|---|---|---|---|
| - (void) gameManagerChannel: |   | ([GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel) \*) | *gameManagerChannel* |
| didReceiveGameMessage: |   | (id) | *gameMessage* |
| forPlayerID: |   | (NSString \*) | *playerID* |
|   |   |   |   |

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

Parameters
:

    |---|---|
    | gameManagerChannel | The affected [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. "). |
    | gameMessage | The game message sent by the receiver. |
    | playerID | The player ID associated with the game message. |


|---|---|---|---|
| - (void) gameManagerChannel: |   | ([GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel) \*) | *gameManagerChannel* |
| requestDidSucceedWithID: |   | (NSInteger) | *requestID* |
| result: |   | ([GCKGameManagerResult](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_result) \*) | *result* |
|   |   |   |   |

Called when a player request or game request was successful.

Parameters
:

    |---|---|
    | gameManagerChannel | The affected [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. "). |
    | requestID | The request ID that failed. This is the ID returned when the request was made. |
    | result | The [GCKGameManagerResult](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_result "The result of a Game Manager request. ") returned as part of this request response. |


|---|---|---|---|
| - (void) gameManagerChannel: |   | ([GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel) \*) | *gameManagerChannel* |
| requestDidFailWithID: |   | (NSInteger) | *requestID* |
| error: |   | ([GCKError](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_error) \*) | *error* |
|   |   |   |   |

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

Parameters
:

    |---|---|
    | gameManagerChannel | The affected [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. "). |
    | 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](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel) \*) | *gameManagerChannel* |   | | required |

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

Parameters
:

    |---|---|
    | gameManagerChannel | The affected [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. "). |


|---|---|
| |---|---|---|---| | - (void) gameManagerChannel: |   | ([GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel) \*) | *gameManagerChannel* | | didFailToConnectWithError: |   | ([GCKError](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_error) \*) | *error* | |   |   |   |   | | required |

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

Parameters
:

    |---|---|
    | gameManagerChannel | The affected [GCKGameManagerChannel](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_game_manager_channel "A GCKCastChannel subclass for game control operations. "). |
    | error | The error describing the failure. |