Sdílet prostřednictvím


Window.MediaController Property

Definition

Gets the MediaController that was previously set. -or- Sets a MediaController to send media keys and volume changes to.

public virtual Android.Media.Session.MediaController? MediaController { [Android.Runtime.Register("getMediaController", "()Landroid/media/session/MediaController;", "GetGetMediaControllerHandler")] get; [Android.Runtime.Register("setMediaController", "(Landroid/media/session/MediaController;)V", "GetSetMediaController_Landroid_media_session_MediaController_Handler")] set; }
[<get: Android.Runtime.Register("getMediaController", "()Landroid/media/session/MediaController;", "GetGetMediaControllerHandler")>]
[<set: Android.Runtime.Register("setMediaController", "(Landroid/media/session/MediaController;)V", "GetSetMediaController_Landroid_media_session_MediaController_Handler")>]
member this.MediaController : Android.Media.Session.MediaController with get, set

Property Value

The controller which should receive events.

Attributes

Remarks

Property getter documentation:

Gets the MediaController that was previously set.

Java documentation for android.view.Window.getMediaController().

Property setter documentation:

Sets a MediaController to send media keys and volume changes to. If set, this should be preferred for all media keys and volume requests sent to this window.

Java documentation for android.view.Window.setMediaController(android.media.session.MediaController).

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

See also