RoutingSessionInfo.SelectedRoutes Property

Definition

Gets the list of IDs of selected routes for the session.

public System.Collections.Generic.IList<string> SelectedRoutes { [Android.Runtime.Register("getSelectedRoutes", "()Ljava/util/List;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getSelectedRoutes", "()Ljava/util/List;", "", ApiSince=30)>]
member this.SelectedRoutes : System.Collections.Generic.IList<string>

Property Value

A non-empty list of selected route ids.

Attributes

Remarks

Gets the list of IDs of selected routes for the session.

Selected routes are the routes that this session is actively routing media to.

The behavior of a routing session with multiple selected routes is ultimately defined by the MediaRoute2ProviderService implementation. However, typically, it's expected that all the selected routes of a routing session are playing the same media in sync.

Java documentation for android.media.RoutingSessionInfo.getSelectedRoutes().

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