belongs to Maven artifact com.android.support:mediarouter-v7:28.0.0-alpha1
The media route button allows the user to select routes and to control the currently selected route.
When the default route is selected or when the currently selected route does not
selector, the button will appear in
an inactive state indicating that the application is not connected to a
route of the kind that it wants to use. Clicking on the button opens
MediaRouteChooserDialog to allow the user to select a route.
If no non-default routes match the selector and it is not possible for an active
scan to discover any matching routes, then the button is disabled and cannot
When a non-default route is selected that matches the selector, the button will
appear in an active state indicating that the application is connected
to a route of the kind that it wants to use. The button may also appear
in an intermediary connecting state if the route is in the process of connecting
to the destination but has not yet completed doing so. In either case, clicking
on the button opens a
MediaRouteControllerDialog to allow the user
to control or disconnect from the current route.
To use the media route button, the activity must be a subclass of
FragmentActivity from the
support library. Refer to support library documentation for details.