Language

MediaSession2Service Constructors

Definition

Overloads

Name Description
MediaSession2Service()

Creates the session-service base with an empty set of hosted sessions.

MediaSession2Service(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

MediaSession2Service()

Creates the session-service base with an empty set of hosted sessions.

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

Remarks

The base service initializes its binder and service dependencies during OnCreate(), not in this constructor.

Applies to

MediaSession2Service(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

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

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies how the runtime handles the JNI reference, including its release and peer registration.

Remarks

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

Applies to