java.lang.Object | |
↳ | android.media.MediaRouter.Callback |
Known Direct Subclasses |
Interface for receiving events about media routing changes. All methods of this interface will be called from the application's main thread.
A Callback will only receive events relevant to routes that the callback
was registered for unless the CALLBACK_FLAG_UNFILTERED_EVENTS
flag was specified in addCallback(int, Callback, int)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a route for the specified type was added.
| |||||||||||
Called when an aspect of the indicated route has changed.
| |||||||||||
Called when a route is added to a group.
| |||||||||||
Called when a route's presentation display changes.
| |||||||||||
Called when a route for the specified type was removed.
| |||||||||||
Called when the supplied route becomes selected as the active route
for the given route type.
| |||||||||||
Called when a route is removed from a group.
| |||||||||||
Called when the supplied route becomes unselected as the active route
for the given route type.
| |||||||||||
Called when a route's volume changes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Called when a route for the specified type was added.
router | the MediaRouter reporting the event |
---|---|
info | Route that has become available for use |
Called when an aspect of the indicated route has changed.
This will not indicate that the types supported by this route have changed, only that cosmetic info such as name or status have been updated.
router | the MediaRouter reporting the event |
---|---|
info | The route that was changed |
Called when a route is added to a group.
router | the MediaRouter reporting the event |
---|---|
info | The route that was added |
group | The group the route was added to |
index | The route index within group that info was added at |
Called when a route's presentation display changes.
This method is called whenever the route's presentation display becomes available, is removes or has changes to some of its properties (such as its size).
router | the MediaRouter reporting the event |
---|---|
info | The route whose presentation display changed |
Called when a route for the specified type was removed.
router | the MediaRouter reporting the event |
---|---|
info | Route that has been removed from availability |
Called when the supplied route becomes selected as the active route for the given route type.
router | the MediaRouter reporting the event |
---|---|
type | Type flag set indicating the routes that have been selected |
info | Route that has been selected for the given route types |
Called when a route is removed from a group.
router | the MediaRouter reporting the event |
---|---|
info | The route that was removed |
group | The group the route was removed from |
Called when the supplied route becomes unselected as the active route for the given route type.
router | the MediaRouter reporting the event |
---|---|
type | Type flag set indicating the routes that have been unselected |
info | Route that has been unselected for the given route types |
Called when a route's volume changes.
router | the MediaRouter reporting the event |
---|---|
info | The route with altered volume |