Language

JniRuntime.JniObjectReferenceManager.CreateLocalReference Method

Definition

Creates a local reference and updates the supplied reference count.

public virtual Java.Interop.JniObjectReference CreateLocalReference(Java.Interop.JniObjectReference reference, ref int localReferenceCount);
abstract member CreateLocalReference : Java.Interop.JniObjectReference * int -> Java.Interop.JniObjectReference
override this.CreateLocalReference : Java.Interop.JniObjectReference * int -> Java.Interop.JniObjectReference

Parameters

reference
JniObjectReference

The source reference whose Java object is to receive a local reference.

localReferenceCount
Int32

The count to increment when reference has a nonzero handle.

Returns

The new local reference, or reference unchanged if its handle is zero.

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