A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/cast/docs/reference/ios/protocol_g_c_k_generic_channel_delegate-p below:

<GCKGenericChannelDelegate> Protocol | Cast | Google for Developers

<GCKGenericChannelDelegate> Protocol

Stay organized with collections Save and categorize content based on your preferences.

The GCKGenericChannel delegate protocol.

Inherits <GCKCastChannelNSObject>.

- (void) castChannel: (GCKGenericChannel *)  channel didReceiveTextMessage: (NSString *)  message withNamespace: (NSString *)  protocolNamespace 

Called when a text message has been received on the channel.

Called when the channel has been connected, indicating that messages can now be exchanged with the Cast device over the channel.

Parameters

Called when the channel has been disconnected, indicating that messages can no longer be exchanged with the Cast device over the channel.

Parameters
- (void) castChannel: (GCKCastChannel *)  channel didChangeWritableState: (BOOL)  writable  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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-18 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 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"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4