<GCKGenericChannel 委派> 通訊協定(&L)
繼承 <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
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[null,null,["上次更新時間:2023-12-01 (世界標準時間)。"],[[["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."]]],[]]