Android.Media.Session.MediaController Class
Allows an app to interact with an ongoing media session.

See Also: MediaController Members

Syntax

[Android.Runtime.Register("android/media/session/MediaController", DoNotGenerateAcw=true)]
public sealed class MediaController : Java.Lang.Object

Remarks

Allows an app to interact with an ongoing media session. Media buttons and other commands can be sent to the session. A callback may be registered to receive updates from the session, such as metadata and play state changes.

A MediaController can be created through Android.Media.Session.MediaSessionManager if you hold the "android.permission.MEDIA_CONTENT_CONTROL" permission or are an enabled notification listener or by getting a NoType:android/media/session/MediaSession$Token;Href=../../../../reference/android/media/session/MediaSession.Token.html directly from the session owner.

MediaController objects are thread-safe.

[Android Documentation]

Requirements

Namespace: Android.Media.Session
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0