Google は AI 技術を使用して、コンテンツをご希望の言語に翻訳しています。AI 翻訳には誤りが含まれる場合があります。
<GCKGenericChannelDelegate> プロトコル
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
<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
[null,null,["最終更新日 2025-07-25 UTC。"],[],["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"]]