Protocolo <GCKGenericChannelDelegate>
El protocolo de delegado GCKGenericChannel
Hereda <GCKCastChannelNSObject>.
- (void) castChannel: |
|
(GCKGenericChannel *) |
channel |
didReceiveTextMessage: |
|
(NSString *) |
message |
withNamespace: |
|
(NSString *) |
protocolNamespace |
|
|
| |
Se invoca cuando se recibe un mensaje de texto en el canal.
Se llama cuando se conecta el canal, lo que indica que los mensajes ahora se pueden intercambiar con el dispositivo de transmisión a través del canal.
- Parameters
-
Se llama cuando se desconecta el canal, lo que indica que los mensajes ya no se pueden intercambiar con el dispositivo de transmisión a través del canal.
- Parameters
-
- (void) castChannel: |
|
(GCKCastChannel *) |
channel |
didChangeWritableState: |
|
(BOOL) |
writable |
|
|
| |
|
optional |
Se llama cuando cambia el estado del canal que admite escritura.
- Parameters
-
channel | The channel. |
writable | Whether the channel is now writable. |
- Desde
- 4.0
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2023-12-01 (UTC)
[null,null,["Última actualización: 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"]]