Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

MediaRouteProvider.DynamicGroupRouteController.OnDynamicRoutesChangedListener

public static interface MediaRouteProvider.DynamicGroupRouteController.OnDynamicRoutesChangedListener

androidx.mediarouter.media.MediaRouteProvider.DynamicGroupRouteController.OnDynamicRoutesChangedListener


Used to notify media router each route's property changes regarding this MediaRouteProvider.DynamicGroupRouteController instance.

Here are some examples when this notification is called :

  • a route is newly turned on and it can be grouped with this dynamic group route.
  • a route is selecting as a member of this dynamic group route.
  • a route is selected as a member of this dynamic group route.
  • a route is unselecting.
  • a route is unselected.
  • a route is turned off.

Summary

Public methods

abstract void onRoutesChanged(MediaRouteProvider.DynamicGroupRouteController controller, Collection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor> routes)

The provider should call this method when routes' properties change.

Public methods

onRoutesChanged

public abstract void onRoutesChanged (MediaRouteProvider.DynamicGroupRouteController controller, 
                Collection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor> routes)

The provider should call this method when routes' properties change. (e.g. when a route becomes ungroupable)

Parameters
controller MediaRouteProvider.DynamicGroupRouteController: the MediaRouteProvider.DynamicGroupRouteController which keeps this listener.

routes Collection: the collection of routes contains selected routes (can be unselectable or not) and unselected routes (can be groupable or transferable or not).