Sdílet prostřednictvím


MediaPlayer.RoutedDevice Property

Definition

Returns an AudioDeviceInfo identifying the current routing of this MediaPlayer Note: The query is only valid if the MediaPlayer is currently playing.

public virtual Android.Media.AudioDeviceInfo? RoutedDevice { [Android.Runtime.Register("getRoutedDevice", "()Landroid/media/AudioDeviceInfo;", "GetGetRoutedDeviceHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getRoutedDevice", "()Landroid/media/AudioDeviceInfo;", "GetGetRoutedDeviceHandler", ApiSince=28)>]
member this.RoutedDevice : Android.Media.AudioDeviceInfo

Property Value

Implements

Attributes

Remarks

Returns an AudioDeviceInfo identifying the current routing of this MediaPlayer Note: The query is only valid if the MediaPlayer is currently playing. If the player is not playing, the returned device can be null or correspond to previously selected device when the player was last active.

Java documentation for android.media.MediaPlayer.getRoutedDevice().

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