Language

JNIEnv.GetObjectArray(IntPtr, Type[]) Method

Definition

Copies Java array elements into a managed object array, applying the requested per-element types where supplied.

public static object?[]? GetObjectArray(IntPtr array_ptr, Type[] element_types);
static member GetObjectArray : nativeint * Type[] -> obj[]

Parameters

array_ptr
IntPtr

nativeint

A live JNI reference to a supported Java array, usable on the calling thread, or Zero.

element_types
Type[]

Optional managed target types by element index. A null array, a missing entry, or a null entry leaves that element without a requested target type.

Returns

Object[]

The managed object array, or null if array_ptr 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