Language

VarHandle(IntPtr, JniHandleOwnership) Constructor

Definition

Creates a managed instance that represents an existing Java object.

protected VarHandle(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Invoke.VarHandle : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Invoke.VarHandle

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