Language

MediaSession2.SessionCallback Constructors

Definition

Overloads

Name Description
MediaSession2.SessionCallback()

Creates the callback base for session connections and controller commands.

MediaSession2.SessionCallback(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

MediaSession2.SessionCallback()

Creates the callback base for session connections and controller commands.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=29)]
public SessionCallback();
Attributes

Remarks

Override the connection callback to accept controllers. Its base implementation returns null, which rejects the connection.

Applies to

MediaSession2.SessionCallback(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected SessionCallback(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.MediaSession2.SessionCallback : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.MediaSession2.SessionCallback

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to