AudioManager.RegisterRemoteController(RemoteController) Method
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
deprecated
Registers a RemoteController
instance for it to receive media
metadata updates and playback state information from applications using
RemoteControlClient
, and control their playback.
[Android.Runtime.Register("registerRemoteController", "(Landroid/media/RemoteController;)Z", "GetRegisterRemoteController_Landroid_media_RemoteController_Handler")]
[System.Obsolete("deprecated")]
public virtual bool RegisterRemoteController (Android.Media.RemoteController? rctlr);
[<Android.Runtime.Register("registerRemoteController", "(Landroid/media/RemoteController;)Z", "GetRegisterRemoteController_Landroid_media_RemoteController_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member RegisterRemoteController : Android.Media.RemoteController -> bool
override this.RegisterRemoteController : Android.Media.RemoteController -> bool
Parameters
- rctlr
- RemoteController
the object to register.
Returns
true if the RemoteController
was successfully registered,
false if an error occurred, due to an internal system error, or
insufficient permissions.
- Attributes
Remarks
Registers a RemoteController
instance for it to receive media metadata updates and playback state information from applications using RemoteControlClient
, and control their playback.
Registration requires the RemoteController.OnClientUpdateListener
listener to be one of the enabled notification listeners (see android.service.notification.NotificationListenerService
).
This member is deprecated. Use MediaSessionManager#addOnActiveSessionsChangedListener(android.media.session.MediaSessionManager.OnActiveSessionsChangedListener, ComponentName)
and MediaController
instead.
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.