OnMessageReceivedListener

interface OnMessageReceivedListener
androidx.mediarouter.media.RemotePlaybackClient.OnMessageReceivedListener

A callback that will receive messages from media sessions.

Summary

Public methods
abstract Unit
onMessageReceived(sessionId: String!, message: Bundle!)

Called when a message received.

Public methods

onMessageReceived

abstract fun onMessageReceived(sessionId: String!, message: Bundle!): Unit

Called when a message received.

Parameters
sessionId String!: The session id.
message String!: A bundle message denoting MediaControlIntent#EXTRA_MESSAGE.