Language

JniObjectReference(IntPtr, JniObjectReferenceType) Constructor

Definition

Wraps an existing JNI reference handle with its reference type.

public JniObjectReference(IntPtr handle, Java.Interop.JniObjectReferenceType type = Java.Interop.JniObjectReferenceType.Invalid);
new Java.Interop.JniObjectReference : nativeint * Java.Interop.JniObjectReferenceType -> Java.Interop.JniObjectReference

Parameters

handle
IntPtr

nativeint

The JNI reference handle to store. This constructor does not copy the reference.

type
JniObjectReferenceType

The reference type to store. The default is Invalid.

Remarks

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