Sdílet prostřednictvím


MediaSession.SetCallback Method

Definition

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

Java documentation for android.media.session.MediaSession.setCallback(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

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

Java documentation for android.media.session.MediaSession.setCallback(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