Android.Media.Session.MediaSession Members

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

See Also: Inherited members from Java.Lang.Object

Public Constructors

Public Fields

const
FlagHandlesMediaButtonsMediaSessionFlags (1). Set this flag on the session to indicate that it can handle media button events.
const
FlagHandlesTransportControlsMediaSessionFlags (2). Set this flag on the session to indicate that it handles transport control commands through its NoType:android/media/session/MediaSession$Callback;Href=../../../../reference/android/media/session/MediaSession.Callback.html.

Public Properties

Activebool. Get the current active state of this session.
[read-only]
ControllerMediaController. Get a controller for this session.
[read-only]
SessionTokenMediaSession.Token. Retrieve a token object that can be used by apps to create a Android.Media.Session.MediaController for interacting with this session.

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

Release()
This must be called when an app has finished performing playback.
SendSessionEvent(string, Android.OS.Bundle)
Send a proprietary event to all MediaControllers listening to this Session.
SetCallback(MediaSession.Callback)
Set the callback to receive updates for the MediaSession.
SetCallback(MediaSession.Callback, Android.OS.Handler)
Set the callback to receive updates for the MediaSession.
SetExtras(Android.OS.Bundle)
Set some extras that can be associated with the Android.Media.Session.MediaSession.
SetFlags(MediaSessionFlags)
Set any flags for the session.
SetMediaButtonReceiver(Android.App.PendingIntent)
Set a pending intent for your media button receiver to allow restarting playback after the session has been stopped.
SetMetadata(Android.Media.MediaMetadata)
Update the current metadata.
SetPlaybackState(PlaybackState)
Update the current playback state.
SetPlaybackToLocal(Android.Media.AudioAttributes)
Set the attributes for this session's audio.
SetPlaybackToRemote(Android.Media.VolumeProvider)
Configure this session to use remote volume handling.
SetQueue(IList<MediaSession.QueueItem>)
Documentation for this section has not yet been entered.
SetQueueTitle(Java.Lang.ICharSequence)
Set the title of the play queue.
SetQueueTitle(string)
Documentation for this section has not yet been entered.
SetSessionActivity(Android.App.PendingIntent)
Set an intent for launching UI for this Session.