# Print output for @column tags ?>
public
static
abstract
class
MediaRouter2.RouteCallback
extends Object
java.lang.Object | |
↳ | android.media.MediaRouter2.RouteCallback |
Callback for receiving events about media route discovery.
Public constructors | |
---|---|
RouteCallback()
|
Public methods | |
---|---|
void
|
onRoutesAdded(List<MediaRoute2Info> routes)
Called when routes are added. |
void
|
onRoutesChanged(List<MediaRoute2Info> routes)
Called when routes are changed. |
void
|
onRoutesRemoved(List<MediaRoute2Info> routes)
Called when routes are removed. |
Inherited methods | |
---|---|
public RouteCallback ()
public void onRoutesAdded (List<MediaRoute2Info> routes)
Called when routes are added. Whenever you registers a callback, this will be invoked with known routes.
Parameters | |
---|---|
routes |
List : the list of routes that have been added. It's never empty.
This value cannot be null . |
public void onRoutesChanged (List<MediaRoute2Info> routes)
Called when routes are changed. For example, it is called when the route's name or volume have been changed.
Parameters | |
---|---|
routes |
List : the list of routes that have been changed. It's never empty.
This value cannot be null . |
public void onRoutesRemoved (List<MediaRoute2Info> routes)
Called when routes are removed.
Parameters | |
---|---|
routes |
List : the list of routes that have been removed. It's never empty.
This value cannot be null . |