다음을 통해 공유


MediaRouter2.TransferTo(MediaRoute2Info) Method

Definition

Transfers the current media to the given route.

[Android.Runtime.Register("transferTo", "(Landroid/media/MediaRoute2Info;)V", "", ApiSince=30)]
public void TransferTo (Android.Media.MediaRoute2Info route);
[<Android.Runtime.Register("transferTo", "(Landroid/media/MediaRoute2Info;)V", "", ApiSince=30)>]
member this.TransferTo : Android.Media.MediaRoute2Info -> unit

Parameters

route
MediaRoute2Info

the route you want to transfer the current media to. Pass null to stop routing of the current media.

Attributes

Remarks

Transfers the current media to the given route. If it's necessary a new RoutingController is created or it is handled within the current routing controller.

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