Share via


JNIEnv.NewArray Method

Definition

Overloads

NewArray(Array, Type)
NewArray(UInt64[])
NewArray(UInt32[])
NewArray(UInt16[])
NewArray(String[])
NewArray(Single[])
NewArray(Int64[])
NewArray(IJavaObject[])
NewArray(Int16[])
NewArray(Boolean[])
NewArray(Byte[])
NewArray(Int32[])
NewArray(Double[])
NewArray(Char[])
NewArray<T>(T[])

NewArray(Array, Type)

public static IntPtr NewArray (Array value, Type? elementType = default);
static member NewArray : Array * Type -> nativeint

Parameters

value
Array
elementType
Type

Returns

IntPtr

nativeint

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

NewArray(UInt64[])

public static IntPtr NewArray (ulong[] array);
static member NewArray : uint64[] -> nativeint

Parameters

array
UInt64[]

Returns

IntPtr

nativeint

Applies to

NewArray(UInt32[])

public static IntPtr NewArray (uint[] array);
static member NewArray : uint32[] -> nativeint

Parameters

array
UInt32[]

Returns

IntPtr

nativeint

Applies to

NewArray(UInt16[])

public static IntPtr NewArray (ushort[] array);
static member NewArray : uint16[] -> nativeint

Parameters

array
UInt16[]

Returns

IntPtr

nativeint

Applies to

NewArray(String[])

public static IntPtr NewArray (string[]? array);
static member NewArray : string[] -> nativeint

Parameters

array
String[]

Returns

IntPtr

nativeint

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

NewArray(Single[])

public static IntPtr NewArray (float[] array);
static member NewArray : single[] -> nativeint

Parameters

array
Single[]

Returns

IntPtr

nativeint

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

NewArray(Int64[])

public static IntPtr NewArray (long[] array);
static member NewArray : int64[] -> nativeint

Parameters

array
Int64[]

Returns

IntPtr

nativeint

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

NewArray(IJavaObject[])

public static IntPtr NewArray (Android.Runtime.IJavaObject[]? array);
static member NewArray : Android.Runtime.IJavaObject[] -> nativeint

Parameters

array
IJavaObject[]

Returns

IntPtr

nativeint

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

NewArray(Int16[])

public static IntPtr NewArray (short[] array);
static member NewArray : int16[] -> nativeint

Parameters

array
Int16[]

Returns

IntPtr

nativeint

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

NewArray(Boolean[])

public static IntPtr NewArray (bool[]? array);
static member NewArray : bool[] -> nativeint

Parameters

array
Boolean[]

Returns

IntPtr

nativeint

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

NewArray(Byte[])

public static IntPtr NewArray (byte[] array);
static member NewArray : byte[] -> nativeint

Parameters

array
Byte[]

Returns

IntPtr

nativeint

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

NewArray(Int32[])

public static IntPtr NewArray (int[] array);
static member NewArray : int[] -> nativeint

Parameters

array
Int32[]

Returns

IntPtr

nativeint

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

NewArray(Double[])

public static IntPtr NewArray (double[] array);
static member NewArray : double[] -> nativeint

Parameters

array
Double[]

Returns

IntPtr

nativeint

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

NewArray(Char[])

public static IntPtr NewArray (char[] array);
static member NewArray : char[] -> nativeint

Parameters

array
Char[]

Returns

IntPtr

nativeint

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

NewArray<T>(T[])

public static IntPtr NewArray<T> (T[]? array);
static member NewArray : 'T[] -> nativeint

Type Parameters

T

Parameters

array
T[]

Returns

IntPtr

nativeint

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