CastPlayerChannel

class CastPlayerChannel : Cast.MessageReceivedCallback

Custom media channel used for message exchange between the Sender and the Receiver Applications.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onMessageReceived(castDevice: CastDevice, namespace: String, message: String)

Called when a message is received from a given CastDevice

Link copied to clipboard
fun sendMessage(coroutineScope: CoroutineScope, castSession: CastSession, message: String, messageName: MessageName, namespace: String = DEFAULT_NAMESPACE, messageStatusHandler: (messageName: MessageName, result: Result<String, Error>) -> Unit)

Sends message to the receiver application.