java.lang.Object | |
↳ | android.support.v7.media.MediaRouteProvider.RouteController |
Provides control over a particular route.
The media router obtains a route controller for a route whenever it needs
to control a route. When a route is selected, the media router invokes
the onSelect()
method of its route controller. While selected,
the media router may call other methods of the route controller to
request that it perform certain actions to the route. When a route is
unselected, the media router invokes the onUnselect()
method of its
route controller. When the media route no longer needs the route controller
it will invoke the onRelease()
method to allow the route controller
to free its resources.
There may be multiple route controllers simultaneously active for the same route. Each route controller will be released separately.
All operations on the route controller are asynchronous and results are communicated via callbacks.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs a
media control request
asynchronously on behalf of the route. | |||||||||||
Releases the route controller, allowing it to free its resources.
| |||||||||||
Selects the route.
| |||||||||||
Requests to set the volume of the route.
| |||||||||||
Unselects the route.
| |||||||||||
Requests an incremental volume update for the route.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Performs a media control
request
asynchronously on behalf of the route.
intent | A media control intent . |
---|---|
callback | A MediaRouter.ControlRequestCallback to invoke with the result
of the request, or null if no result is required. |
Releases the route controller, allowing it to free its resources.
Selects the route.
Requests to set the volume of the route.
volume | The new volume value between 0 and getVolumeMax() .
|
---|
Unselects the route.
Requests an incremental volume update for the route.
delta | The delta to add to the current volume. |
---|