Language

JniRuntime.JniValueManager.CreateValue Method

Definition

Overloads

Name Description
CreateValue(JniObjectReference, JniObjectReferenceOptions, Type)

Creates a managed value through the creation hook after checking manager disposal.

CreateValue<T>(JniObjectReference, JniObjectReferenceOptions, Type)

Creates a typed managed value through the creation hook.

CreateValue(JniObjectReference, JniObjectReferenceOptions, Type)

Creates a managed value through the creation hook after checking manager disposal.

public object? CreateValue(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
member this.CreateValue : 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 value produced by the creation implementation.

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

CreateValue<T>(JniObjectReference, JniObjectReferenceOptions, Type)

Creates a typed managed value through the creation hook.

public T CreateValue<T>(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
member this.CreateValue : 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 value produced by the creation implementation.

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