Condividi tramite


MediaRouter2.RouteCallback.OnRoutesChanged Method

Definition

Called when the properties of one or more existing routes are changed.

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

Parameters

routes
IList<MediaRoute2Info>

the list of routes that have been changed. It's never empty.

Attributes

Remarks

Called when the properties of one or more existing routes are changed. For example, it is called when a route's name or volume have changed.

This member is deprecated. Use #onRoutesUpdated(List) instead.

Java documentation for android.media.MediaRouter2.RouteCallback.onRoutesChanged(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