Language

JniEnvironment.Arrays.GetArrayLength(JniObjectReference) Method

Definition

Gets the number of elements in a Java array.

public static int GetArrayLength(Java.Interop.JniObjectReference array);
static member GetArrayLength : Java.Interop.JniObjectReference -> int

Parameters

array
JniObjectReference

A valid reference to a Java array.

Returns

The element count, not the size in bytes.

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