Protokół <GCKGeneralChannel poszukaj>
Protokół delegowania GCKGenericChannel.
Dziedziczy <GCKCastChannelNSObject>.
- (void) castChannel: |
|
(GCKGenericChannel *) |
channel |
didReceiveTextMessage: |
|
(NSString *) |
message |
withNamespace: |
|
(NSString *) |
protocolNamespace |
|
|
| |
Wywoływane po odebraniu SMS-a na kanale.
Wywoływane po połączeniu kanału, co wskazuje, że wiadomości mogą być teraz wymieniane przez urządzenie przesyłające.
- Parameters
-
Wywoływane po odłączeniu kanału, co wskazuje, że nie można już przez ten kanał wymieniać wiadomości z urządzeniem przesyłającym.
- Parameters
-
- (void) castChannel: |
|
(GCKCastChannel *) |
channel |
didChangeWritableState: |
|
(BOOL) |
writable |
|
|
| |
|
optional |
Wywoływane po zmianie stanu dostępnego do zapisu na kanale.
- Parameters
-
channel | The channel. |
writable | Whether the channel is now writable. |
- Od
- 4,0
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-12-01 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]