MediaController.RegisterCallback 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.
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
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
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.