# Print output for @column tags ?>
public
static
interface
MediaRouter2.OnGetControllerHintsListener
android.media.MediaRouter2.OnGetControllerHintsListener |
A listener interface to send optional app-specific hints when creating a
RoutingController
.
Public methods | |
---|---|
abstract
Bundle
|
onGetControllerHints(MediaRoute2Info route)
Called when the |
public abstract Bundle onGetControllerHints (MediaRoute2Info route)
Called when the MediaRouter2
or the system is about to request
a media route provider service to create a controller with the given route.
The Bundle
returned here will be sent to media route provider service as a hint.
Since controller creation can be requested by the MediaRouter2
and the system,
set the listener as soon as possible after acquiring MediaRouter2
instance.
The method will be called on the same thread that calls
MediaRouter2.transferTo(android.media.MediaRoute2Info)
or the main thread if it is requested by the system.
Parameters | |
---|---|
route |
MediaRoute2Info : the route to create a controller with
This value cannot be null . |
Returns | |
---|---|
Bundle |
An optional bundle of app-specific arguments to send to the provider,
or null if none. The contents of this bundle may affect the result of
controller creation. |