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

OnDynamicRoutesChangedListener

interface OnDynamicRoutesChangedListener
androidx.mediarouter.media.MediaRouteProvider.DynamicGroupRouteController.OnDynamicRoutesChangedListener

Used to notify media router each route's property changes regarding this 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 Unit

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

Public methods

onRoutesChanged

abstract fun onRoutesChanged(controller: MediaRouteProvider.DynamicGroupRouteController!, routes: MutableCollection<MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor!>!): Unit

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

Parameters
controller MediaRouteProvider.DynamicGroupRouteController!: the DynamicGroupRouteController which keeps this listener.
routes MediaRouteProvider.DynamicGroupRouteController!: the collection of routes contains selected routes (can be unselectable or not) and unselected routes (can be groupable or transferable or not).