public class MediaRouteChooserDialog
extends AppCompatDialog


This class implements the route chooser dialog for MediaRouter.

This dialog allows the user to choose a route that matches a given selector.


Inherited constants

Public constructors

MediaRouteChooserDialog(Context context)
MediaRouteChooserDialog(Context context, int theme)

Public methods

MediaRouteSelector getRouteSelector()

Gets the media route selector for filtering the routes that the user can select.

void onAttachedToWindow()
void onDetachedFromWindow()
boolean onFilterRoute(MediaRouter.RouteInfo route)

Returns true if the route should be included in the list.

void onFilterRoutes(List<MediaRouter.RouteInfo> routes)

Called to filter the set of routes that should be included in the list.