Language

JniRuntime.JniValueManager.GetValueCore Method

Definition

Overloads

Name Description
GetValueCore(JniObjectReference, JniObjectReferenceOptions, Type)

Defines non-generic managed value lookup and conversion.

GetValueCore<T>(JniObjectReference, JniObjectReferenceOptions, Type)

Defines typed managed value lookup and conversion.

GetValueCore(JniObjectReference, JniObjectReferenceOptions, Type)

Defines non-generic managed value lookup and conversion.

protected abstract object? GetValueCore(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
abstract member GetValueCore : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> obj

Parameters

reference
JniObjectReference

The JNI reference supplied to the conversion implementation.

options
JniObjectReferenceOptions

Reference-transfer options forwarded to the conversion implementation.

targetType
Type

The optional requested managed target type.

Returns

The existing or converted value produced by the lookup implementation.

Remarks

Derived implementations decide whether an existing mapped value can be reused.

Applies to

GetValueCore<T>(JniObjectReference, JniObjectReferenceOptions, Type)

Defines typed managed value lookup and conversion.

protected abstract T GetValueCore<T>(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
abstract member GetValueCore : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> 'T

Type Parameters

T

The managed result type.

Parameters

reference
JniObjectReference

The JNI reference supplied to the conversion implementation.

options
JniObjectReferenceOptions

Reference-transfer options forwarded to the conversion implementation.

targetType
Type

The optional requested managed target type.

Returns

T

The existing or converted value produced by the lookup implementation.

Remarks

Derived implementations supply typed conversion and reference-transfer behavior.

Applies to