CastReceiverContext.MessageReceivedListener

  • MessageReceivedListener is an interface for listening to messages from the sender.

  • The onMessageReceived method is called when a new message is received from the sender.

  • The onMessageReceived method provides the message's namespace, sender ID, and the message content.

public static interface CastReceiverContext.MessageReceivedListener

Listener for listening messages that come from the sender.

Public Method Summary

abstract void
onMessageReceived(String namespace, String senderId, String message)
Called when a new message is received 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