CastReceiverContext.EventCallback

public static abstract class CastReceiverContext.EventCallback extends Object

Callback class for observing various events.

Public Constructor Summary

Public Method Summary

void
onSenderConnected(SenderInfo senderInfo)
Called when a sender is connected.
void
onSenderDisconnected(SenderDisconnectedEventInfo senderDisconnectedEventInfo)
Called when a sender is disconnected.
void
onStopApplication()
Called when a sender has requested to stop the application.

Inherited Method Summary

Public Constructors

public EventCallback ()

Public Methods

public void onSenderConnected (SenderInfo senderInfo)

Called when a sender is connected.

public void onSenderDisconnected (SenderDisconnectedEventInfo senderDisconnectedEventInfo)

Called when a sender is disconnected.

public void onStopApplication ()

Called when a sender has requested to stop the application. After this is invoked, your application will be considered as stopped from the Cast perspective, i.e. effectively the same as CastReceiverContext.stop() is called.

When this method is called, you should tear down your current playback state, clear all temporary credentials data coming from the senders.