MediaRouter2.RoutingController.SelectRoute(MediaRoute2Info) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects a route for the remote session.
[Android.Runtime.Register("selectRoute", "(Landroid/media/MediaRoute2Info;)V", "GetSelectRoute_Landroid_media_MediaRoute2Info_Handler", ApiSince=30)]
public virtual void SelectRoute (Android.Media.MediaRoute2Info route);
[<Android.Runtime.Register("selectRoute", "(Landroid/media/MediaRoute2Info;)V", "GetSelectRoute_Landroid_media_MediaRoute2Info_Handler", ApiSince=30)>]
abstract member SelectRoute : Android.Media.MediaRoute2Info -> unit
override this.SelectRoute : Android.Media.MediaRoute2Info -> unit
Parameters
- route
- MediaRoute2Info
- Attributes
Remarks
Selects a route for the remote session. After a route is selected, the media is expected to be played to the all the selected routes. This is different from MediaRouter2#transferTo(MediaRoute2Info)
transferring to a route}, where the media is expected to 'move' from one route to another.
The given route must satisfy all of the following conditions:
<ul> <li>It should not be included in #getSelectedRoutes()
<li>It should be included in #getSelectableRoutes()
</ul>
If the route doesn't meet any of above conditions, it will be ignored.
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.