Language

JNIEnv.ToObjectArray<T>(T[]) Method

Definition

Converts the values in an array to Java objects.

public static Java.Lang.Object[]? ToObjectArray<T>(T[]? array);
static member ToObjectArray : 'T[] -> Java.Lang.Object[]

Type Parameters

T

The element type of the input array.

Parameters

array
T[]

The values to convert, or null.

Returns

Object[]

A new managed array with the same length as array, or null when array is null. A null input element produces a null result element.

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