AI-generated Key Takeaways
-
The
GCKGenericChannelDelegate
protocol defines methods to handle communication events within a Google Cast channel. -
It provides callbacks for receiving text messages, channel connections, and disconnections.
-
castChannel:didReceiveTextMessage:withNamespace:
is called when a text message is received on the channel. -
castChannelDidConnect:
is called when the channel is connected and ready for message exchange. -
castChannelDidDisconnect:
is called when the channel is disconnected, halting message exchange.
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... | |
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.
|
optional |
Called when the channel has been disconnected, indicating that messages can no longer be exchanged with the Cast device over the channel.