Language

MediaSession2.Builder.SetSessionCallback Method

Definition

Set callback for the session and its executor.

[Android.Runtime.Register("setSessionCallback", "(Ljava/util/concurrent/Executor;Landroid/media/MediaSession2$SessionCallback;)Landroid/media/MediaSession2$Builder;", "", ApiSince=29)]
public Android.Media.MediaSession2.Builder SetSessionCallback(Java.Util.Concurrent.IExecutor executor, Android.Media.MediaSession2.SessionCallback callback);
[<Android.Runtime.Register("setSessionCallback", "(Ljava/util/concurrent/Executor;Landroid/media/MediaSession2$SessionCallback;)Landroid/media/MediaSession2$Builder;", "", ApiSince=29)>]
member this.SetSessionCallback : Java.Util.Concurrent.IExecutor * Android.Media.MediaSession2.SessionCallback -> Android.Media.MediaSession2.Builder

Parameters

executor
IExecutor

callback executor. This value cannot be null.

callback
MediaSession2.SessionCallback

session callback. This value cannot be null.

Returns

The Builder to allow chaining. This value cannot be null.

Attributes

Remarks

Set callback for the session and its executor.

Android reference for android.media.MediaSession2.Builder.setSessionCallback.

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