Language

JniRuntime.JniValueManager.CreateLocalObjectReferenceArgument Method

Definition

Creates a local JNI argument reference through the implementation hook.

public Java.Interop.JniObjectReference CreateLocalObjectReferenceArgument(Type type, object? value);
member this.CreateLocalObjectReferenceArgument : Type * obj -> Java.Interop.JniObjectReference

Parameters

type
Type

The non-null managed argument type.

value
Object

The managed argument to represent in Java.

Returns

The local reference supplied by the implementation.

Remarks

The caller owns a valid returned local reference and must dispose or transfer it.

Applies to