AI-generated Key Takeaways
- 
          The GCKGenericChannelDelegate protocol is used for handling events related to a GCKGenericChannel. 
- 
          This delegate includes methods for receiving text messages, and being notified when the channel connects, disconnects, or changes its writable state. 
- 
          These methods provide callbacks to your application when important events occur on the Cast channel, allowing you to respond accordingly. 
Overview
The GCKGenericChannel delegate protocol.
Inherits <GCKCastChannelNSObject>.
| Instance Method Summary | |
| (void) | - castChannel:didReceiveTextMessage:withNamespace: | 
| Called when a text message has been received on the channel.  More... | |
| (void) | - castChannelDidConnect: | 
| Called when the channel has been connected, indicating that messages can now be exchanged with the Cast device over the channel.  More... | |
| (void) | - castChannelDidDisconnect: | 
| Called when the channel has been disconnected, indicating that messages can no longer be exchanged with the Cast device over the channel.  More... | |
| (void) | - castChannel:didChangeWritableState: | 
| Called when the writable state of the channel has changed.  More... | |
Method Detail
| - (void) castChannel: | (GCKGenericChannel *) | channel | |
| didReceiveTextMessage: | (NSString *) | message | |
| withNamespace: | (NSString *) | protocolNamespace | |
Called when a text message has been received on the channel.
| 
 | optional | 
Called when the channel has been connected, indicating that messages can now be exchanged with the Cast device over the channel.
- Parameters
- 
  channel The channel. 
| 
 | optional | 
Called when the channel has been disconnected, indicating that messages can no longer be exchanged with the Cast device over the channel.
- Parameters
- 
  channel The channel. 
| 
 | optional | 
Called when the writable state of the channel has changed.
- Parameters
- 
  channel The channel. writable Whether the channel is now writable. 
- Since
- 4.0