Android.Media.Session.MediaController Members

The members of Android.Media.Session.MediaController are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Create a new MediaController from a session's token.

Public Properties

[read-only]
ExtrasAndroid.OS.Bundle. Get the extras for this session.
[read-only]
Flagslong. Get the flags for this session.
[read-only]
MetadataAndroid.Media.MediaMetadata. Get the current metadata for this session.
[read-only]
PackageNamestring. Get the session owner's package name.
[read-only]
PlaybackStatePlaybackState. Get the current playback state for this session.
[read-only]
QueueIList<MediaSession.QueueItem>. Get the current play queue for this session if one is set.
[read-only]
QueueTitlestring. Documentation for this section has not yet been entered.
[read-only]
QueueTitleFormattedJava.Lang.ICharSequence. Get the queue title for this session.
[read-only]
RatingTypeAndroid.Media.RatingStyle. Get the rating type supported by the session.
[read-only]
SessionActivityAndroid.App.PendingIntent. Get an intent for launching UI associated with this session if one exists.
[read-only]
SessionTokenMediaSession.Token. Get the token for the session this is connected to.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AdjustVolume(Android.Media.Adjust, Android.Media.AudioFlags)
Adjust the volume of the output this session is playing on.
DispatchMediaButtonEvent(Android.Views.KeyEvent) : bool
Send the specified media button event to the session.
GetPlaybackInfo() : MediaController.PlaybackInfo
Get the current playback info for this session.
GetTransportControls() : MediaController.TransportControls
Get a NoType:android/media/session/MediaController$TransportControls;Href=../../../../reference/android/media/session/MediaController.TransportControls.html instance to send transport actions to the associated session.
RegisterCallback(MediaController.Callback)
Registers a callback to receive updates from the Session.
RegisterCallback(MediaController.Callback, Android.OS.Handler)
Registers a callback to receive updates from the session.
SendCommand(string, Android.OS.Bundle, Android.OS.ResultReceiver)
Sends a generic command to the session.
SetVolumeTo(int, Android.Media.AudioFlags)
Set the volume of the output this session is playing on.
UnregisterCallback(MediaController.Callback)
Unregisters the specified callback.