MediaSession.SetCallback 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
SetCallback(MediaSession+Callback) |
Set the callback to receive updates for the MediaSession. |
SetCallback(MediaSession+Callback, Handler) |
Set the callback to receive updates for the MediaSession. |
SetCallback(MediaSession+Callback)
Set the callback to receive updates for the MediaSession.
[Android.Runtime.Register("setCallback", "(Landroid/media/session/MediaSession$Callback;)V", "")]
public void SetCallback (Android.Media.Session.MediaSession.Callback? callback);
[<Android.Runtime.Register("setCallback", "(Landroid/media/session/MediaSession$Callback;)V", "")>]
member this.SetCallback : Android.Media.Session.MediaSession.Callback -> unit
Parameters
- callback
- MediaSession.Callback
The callback object
- 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
SetCallback(MediaSession+Callback, Handler)
Set the callback to receive updates for the MediaSession.
[Android.Runtime.Register("setCallback", "(Landroid/media/session/MediaSession$Callback;Landroid/os/Handler;)V", "")]
public void SetCallback (Android.Media.Session.MediaSession.Callback? callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("setCallback", "(Landroid/media/session/MediaSession$Callback;Landroid/os/Handler;)V", "")>]
member this.SetCallback : Android.Media.Session.MediaSession.Callback * Android.OS.Handler -> unit
Parameters
- callback
- MediaSession.Callback
The callback object
- handler
- Handler
The handler that events should be posted on.
- 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.