<GCKबेसिकचैनल डेलिगेट> प्रोटोकॉल
GCKGenericChannel डेलिगेट प्रोटोकॉल.
<GCKCastChannelNSObject> को इनहेरिट करता है.
- (void) castChannel: |
|
(GCKGenericChannel *) |
channel |
didReceiveTextMessage: |
|
(NSString *) |
message |
withNamespace: |
|
(NSString *) |
protocolNamespace |
|
|
| |
चैनल पर मैसेज मिलने पर कॉल किया जाता है.
यह तब कॉल किया जाता है, जब चैनल कनेक्ट हो जाता है. इससे यह पता चलता है कि मैसेज को अब चैनल के ज़रिए कास्ट डिवाइस के साथ बदला जा सकता है.
- Parameters
-
यह तब कॉल किया जाता है, जब चैनल डिसकनेक्ट हो जाता है. इससे पता चलता है कि चैनल पर, कास्ट डिवाइस के साथ मैसेज का लेन-देन नहीं किया जा सकता.
- Parameters
-
- (void) castChannel: |
|
(GCKCastChannel *) |
channel |
didChangeWritableState: |
|
(BOOL) |
writable |
|
|
| |
|
optional |
यह तब कॉल किया जाता है, जब चैनल की लिखने की स्थिति बदल जाती है.
- Parameters
-
channel | The channel. |
writable | Whether the channel is now writable. |
- से
- 4.0
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया."],[[["The `GCKGenericChannelDelegate` protocol defines methods for interacting with a generic Cast channel."],["It provides callbacks for receiving text messages, connection status changes, and changes in the channel's writable state."],["Delegate methods allow developers to respond to events like receiving messages, channel connections, disconnections, and writability changes."],["This protocol inherits from `GCKCastChannelNSObject` and is used when subclassing `GCKCastChannel` is not desired."]]],["The `GCKGenericChannelDelegate` protocol defines methods for handling channel events. It notifies when a text message is received via `castChannel:didReceiveTextMessage:withNamespace:`. It also reports connection and disconnection events via `castChannelDidConnect:` and `castChannelDidDisconnect:`, enabling message exchange or indicating its termination. The protocol informs of changes in the channel's writable state through `castChannel:didChangeWritableState:`, specifying whether messages can be sent.\n"]]