AI-generated Key Takeaways
-
Cast.MessageReceivedCallback is an interface for processing messages received from a CastDevice.
-
RemoteMediaPlayer is a known indirect subclass of this interface, although it is deprecated.
-
The interface has one abstract method, onMessageReceived, which is called when a message is received from a CastDevice.
-
The onMessageReceived method provides the CastDevice, namespace, and message as parameters and is called on the main thread.
| Known Indirect Subclasses |
The interface to process received messages from a CastDevice.
Public Method Summary
| abstract void |
onMessageReceived(CastDevice
castDevice, String namespace,
String
message)
Called when a message is received from a given
CastDevice.
|
Public Methods
public abstract void onMessageReceived (CastDevice castDevice, String namespace, String message)
Called when a message is received from a given CastDevice.
This method is called on the main thread.
Parameters
| castDevice | The castDevice from whence the message originated. |
|---|---|
| namespace | The namespace of the received message. |
| message | The received payload for the message. |