MediaRouter2.RouteCallback.OnRoutesAdded(IList<MediaRoute2Info>) Method

Definition

Called when routes are added.

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

Parameters

routes
IList<MediaRoute2Info>

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

Attributes

Remarks

Called when routes are added. Whenever you register a callback, this will be invoked with known routes.

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

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