MediaRouter2.RoutingController.DeselectRoute(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.
Deselects a route from the remote session.
[Android.Runtime.Register("deselectRoute", "(Landroid/media/MediaRoute2Info;)V", "GetDeselectRoute_Landroid_media_MediaRoute2Info_Handler", ApiSince=30)]
public virtual void DeselectRoute (Android.Media.MediaRoute2Info route);
[<Android.Runtime.Register("deselectRoute", "(Landroid/media/MediaRoute2Info;)V", "GetDeselectRoute_Landroid_media_MediaRoute2Info_Handler", ApiSince=30)>]
abstract member DeselectRoute : Android.Media.MediaRoute2Info -> unit
override this.DeselectRoute : Android.Media.MediaRoute2Info -> unit
Parameters
- route
- MediaRoute2Info
- Attributes
Remarks
Deselects a route from the remote session. After a route is deselected, the media is expected to be stopped on the deselected route.
The given route must satisfy all of the following conditions:
<ul> <li>It should be included in #getSelectedRoutes()
<li>It should be included in #getDeselectableRoutes()
</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.