MediaRouter2.RouteCallback.OnRoutesUpdated Method

Definition

Called when the route list is updated, which can happen when routes are added, removed, or modified.

[Android.Runtime.Register("onRoutesUpdated", "(Ljava/util/List;)V", "GetOnRoutesUpdated_Ljava_util_List_Handler", ApiSince=34)]
public virtual void OnRoutesUpdated (System.Collections.Generic.IList<Android.Media.MediaRoute2Info> routes);
[<Android.Runtime.Register("onRoutesUpdated", "(Ljava/util/List;)V", "GetOnRoutesUpdated_Ljava_util_List_Handler", ApiSince=34)>]
abstract member OnRoutesUpdated : System.Collections.Generic.IList<Android.Media.MediaRoute2Info> -> unit
override this.OnRoutesUpdated : System.Collections.Generic.IList<Android.Media.MediaRoute2Info> -> unit

Parameters

routes
IList<MediaRoute2Info>

the updated list of routes filtered by the callback's individual discovery preferences.

Attributes

Remarks

Called when the route list is updated, which can happen when routes are added, removed, or modified. It will also be called when a route callback is registered.

Java documentation for android.media.MediaRouter2.RouteCallback.onRoutesUpdated(java.util.List<android.media.MediaRoute2Info>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to