CastReceiverContext.MessageReceivedListener
Listener for listening messages that come from the sender.
Public Methods
public abstract void onMessageReceived (String namespace, String senderId, String message)
Called when a new message is received from the sender.
Parameters
namespace |
the namespace of the message |
senderId |
the sender ID of this message |
message |
the message from the sender |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`CastReceiverContext.MessageReceivedListener` allows you to listen for messages sent from a sender application to your Cast receiver."],["It includes a single method, `onMessageReceived`, which is called when a new message is received, providing the namespace, sender ID, and the message content."]]],[]]