RemoteController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class is obsoleted in this android platform
The RemoteController class is used to control media playback, display and update media metadata
and playback status, published by applications using the RemoteControlClient
class.
[Android.Runtime.Register("android/media/RemoteController", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public sealed class RemoteController : Java.Lang.Object
[<Android.Runtime.Register("android/media/RemoteController", DoNotGenerateAcw=true)>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type RemoteController = class
inherit Object
- Inheritance
- Attributes
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 OnClientUpdateListener
listener set in the class constructor. Implement the methods of the interface to receive the information published by the active RemoteControlClient
instances. <br>By default an OnClientUpdateListener
implementation will not receive bitmaps for album art. Use #setArtworkConfiguration(int, int)
to receive images as well.
Registration requires the OnClientUpdateListener
listener to be one of the enabled notification listeners (see android.service.notification.NotificationListenerService
).
This member is deprecated. Use MediaController
instead.
Java documentation for android.media.RemoteController
.
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.
Constructors
RemoteController(Context, RemoteController+IOnClientUpdateListener, Looper) |
Obsolete.
Class constructor. |
RemoteController(Context, RemoteController+IOnClientUpdateListener) |
Obsolete.
Class constructor. |
Fields
PositionSynchronizationCheck |
Obsolete.
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. |
PositionSynchronizationNone |
Obsolete.
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. |
Properties
Class |
Returns the runtime class of this |
EstimatedMediaPosition |
Obsolete.
Return the estimated playback position of the current media track or a negative value if not available. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PeerReference | (Inherited from Object) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
Methods
ClearArtworkConfiguration() |
Obsolete.
Prevents this RemoteController from receiving artwork images. |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
EditMetadata() |
Obsolete.
Creates a |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
SeekTo(Int64) |
Obsolete.
Sets the new playback position. |
SendMediaKeyEvent(KeyEvent) |
Obsolete.
Send a simulated key event for a media button to be received by the current client. |
SetArtworkConfiguration(Int32, Int32) |
Obsolete.
Set the maximum artwork image dimensions to be received in the metadata. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetSynchronizationMode(SynchronizationPosition) |
Obsolete.
Set the playback position synchronization mode. |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |