다음을 통해 공유


IParcelableCreator.NewArray(Int32) Method

Definition

Create a new array of the Parcelable class.

[Android.Runtime.Register("newArray", "(I)[Ljava/lang/Object;", "GetNewArray_IHandler:Android.OS.IParcelableCreatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object[]? NewArray (int size);
[<Android.Runtime.Register("newArray", "(I)[Ljava/lang/Object;", "GetNewArray_IHandler:Android.OS.IParcelableCreatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member NewArray : int -> Java.Lang.Object[]

Parameters

size
Int32

Size of the array.

Returns

Object[]

Returns an array of the Parcelable class, with every entry initialized to null.

Attributes

Remarks

Create a new array of the Parcelable class.

Java documentation for android.os.Parcelable.Creator.newArray(int).

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