Android Guides | Samples

Android.Media.RemoteController Class

The RemoteController class is used to control media playback, display and update media metadata and playback status, published by applications using the RemoteControlClient class.

See Also: RemoteController

Syntax

[Android.Runtime.Register("android/media/RemoteController", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public sealed class RemoteController : Object

Remarks

The RemoteController class is used to control media playback, display and update media metadata and playback status, published by applications using the RemoteControlClient class.

A RemoteController shall be registered through AudioManager.RegisterRemoteController(RemoteController) in order for the system to send media event updates to the NoType:android/media/RemoteController$OnClientUpdateListener;Href=../../../reference/android/media/RemoteController.OnClientUpdateListener.html listener set in the class constructor. Implement the methods of the interface to receive the information published by the active RemoteControlClient instances.
By default an NoType:android/media/RemoteController$OnClientUpdateListener;Href=../../../reference/android/media/RemoteController.OnClientUpdateListener.html implementation will not receive bitmaps for album art. Use RemoteController.SetArtworkConfiguration(Int32,Int32) to receive images as well.

Registration requires the NoType:android/media/RemoteController$OnClientUpdateListener;Href=../../../reference/android/media/RemoteController.OnClientUpdateListener.html listener to be one of the enabled notification listeners (see NotificationListenerService).

[Android Documentation]

Requirements

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

The members of Android.Media.RemoteController are listed below.

See Also: Object

Public Constructors

Public Fields

const
PositionSynchronizationCheckSynchronizationPosition (1). The playback position synchronization mode where the RemoteControlClient instances which expose their playback position to the framework, will be regularly polled to check whether any drift has been noticed between their estimated position and the one they report.
const
PositionSynchronizationNoneSynchronizationPosition (0). Default playback position synchronization mode where the RemoteControlClient is not asked regularly for its playback position to see if it has drifted from the estimated position.

Public Properties

[read-only]
EstimatedMediaPositionInt64. Return the estimated playback position of the current media track or a negative value if not available.

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

ClearArtworkConfiguration() : Boolean
Prevents this RemoteController from receiving artwork images.
EditMetadata() : RemoteController+MetadataEditor
Creates a NoType:android/media/RemoteController$MetadataEditor;Href=../../../reference/android/media/RemoteController.MetadataEditor.html for updating metadata values of the editable keys of the current RemoteControlClient.
SeekTo(Int64) : Boolean
Sets the new playback position.
SendMediaKeyEvent(KeyEvent) : Boolean
Send a simulated key event for a media button to be received by the current client.
SetArtworkConfiguration(Int32, Int32) : Boolean
Set the maximum artwork image dimensions to be received in the metadata.
SetSynchronizationMode(SynchronizationPosition) : Boolean
Set the playback position synchronization mode.