<GCKGeneralChannellanıp> Protokol
GCKGenericChannel delege protokolü.
<GCKCastChannelNSObject> öğesini devralır.
- (void) castChannel: |
|
(GCKGenericChannel *) |
channel |
didReceiveTextMessage: |
|
(NSString *) |
message |
withNamespace: |
|
(NSString *) |
protocolNamespace |
|
|
| |
Kanalda bir kısa mesaj alındığında aranır.
Kanal bağlandığında çağrılır. Bu, mesajların artık kanal üzerinden yayın cihazıyla gönderilebileceğini belirtir.
- Parameters
-
Kanalın bağlantısı kesildiğinde çağrılır. Bu, artık kanal üzerinden yayın cihazıyla mesaj alışverişinin yapılamayacağını gösterir.
- Parameters
-
- (void) castChannel: |
|
(GCKCastChannel *) |
channel |
didChangeWritableState: |
|
(BOOL) |
writable |
|
|
| |
|
optional |
Kanalın yazılabilir durumu değiştiğinde çağrılır.
- Parameters
-
channel | The channel. |
writable | Whether the channel is now writable. |
- yılından beri
- 4,0
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-01 UTC.
[null,null,["Son güncelleme tarihi: 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"]]