Compartilhar via


MediaController.RegisterCallback Method

Definition

Overloads

RegisterCallback(MediaController+Callback)

Registers a callback to receive updates from the Session.

RegisterCallback(MediaController+Callback, Handler)

Registers a callback to receive updates from the Session.

RegisterCallback(MediaController+Callback)

Registers a callback to receive updates from the Session.

[Android.Runtime.Register("registerCallback", "(Landroid/media/session/MediaController$Callback;)V", "")]
public void RegisterCallback (Android.Media.Session.MediaController.Callback callback);
[<Android.Runtime.Register("registerCallback", "(Landroid/media/session/MediaController$Callback;)V", "")>]
member this.RegisterCallback : Android.Media.Session.MediaController.Callback -> unit

Parameters

callback
MediaController.Callback

The callback object, must not be null.

Attributes

Remarks

Java documentation for android.media.session.MediaController.registerCallback(android.media.session.Callback).

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.

Applies to

RegisterCallback(MediaController+Callback, Handler)

Registers a callback to receive updates from the Session.

[Android.Runtime.Register("registerCallback", "(Landroid/media/session/MediaController$Callback;Landroid/os/Handler;)V", "")]
public void RegisterCallback (Android.Media.Session.MediaController.Callback callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("registerCallback", "(Landroid/media/session/MediaController$Callback;Landroid/os/Handler;)V", "")>]
member this.RegisterCallback : Android.Media.Session.MediaController.Callback * Android.OS.Handler -> unit

Parameters

callback
MediaController.Callback

The callback object, must not be null.

handler
Handler

The handler to post updates on. If null the callers thread will be used.

Attributes

Remarks

Java documentation for android.media.session.MediaController.registerCallback(android.media.session.Callback).

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.

Applies to