Partager via


Parcel.CreateFixedArray Method

Definition

Overloads

CreateFixedArray(Class, IFunction, Int32[])

Read and return a new multi-dimensional array of typed interfaces from a parcel.

CreateFixedArray(Class, IParcelableCreator, Int32[])
CreateFixedArray(Class, Int32[])

Read and return a new multi-dimensional array from a parcel.

CreateFixedArray(Class, IFunction, Int32[])

Read and return a new multi-dimensional array of typed interfaces from a parcel.

[Android.Runtime.Register("createFixedArray", "(Ljava/lang/Class;Ljava/util/function/Function;[I)Ljava/lang/Object;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "S extends android.os.IInterface" })]
public Java.Lang.Object? CreateFixedArray (Java.Lang.Class cls, Java.Util.Functions.IFunction asInterface, params int[] dimensions);
[<Android.Runtime.Register("createFixedArray", "(Ljava/lang/Class;Ljava/util/function/Function;[I)Ljava/lang/Object;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "S extends android.os.IInterface" })>]
member this.CreateFixedArray : Java.Lang.Class * Java.Util.Functions.IFunction * int[] -> Java.Lang.Object

Parameters

cls
Class

the Class object for the target array type. (e.g. IFoo[][].class)

asInterface
IFunction
dimensions
Int32[]

an array of int representing length of each dimension.

Returns

Attributes

Remarks

Read and return a new multi-dimensional array of typed interfaces from a parcel. Returns null if the previously written array object is null. If you want to read Parcelable values, use #createFixedArray(Class, Parcelable.Creator, int[]). For values of other types use #createFixedArray(Class, int[]).

Java documentation for android.os.Parcel.createFixedArray(java.lang.Class<T>, java.util.function.Function<android.os.IBinder, S>, 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

CreateFixedArray(Class, IParcelableCreator, Int32[])

[Android.Runtime.Register("createFixedArray", "(Ljava/lang/Class;Landroid/os/Parcelable$Creator;[I)Ljava/lang/Object;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "S extends android.os.Parcelable" })]
public Java.Lang.Object? CreateFixedArray (Java.Lang.Class cls, Android.OS.IParcelableCreator c, params int[] dimensions);
[<Android.Runtime.Register("createFixedArray", "(Ljava/lang/Class;Landroid/os/Parcelable$Creator;[I)Ljava/lang/Object;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "S extends android.os.Parcelable" })>]
member this.CreateFixedArray : Java.Lang.Class * Android.OS.IParcelableCreator * int[] -> Java.Lang.Object

Parameters

cls
Class
dimensions
Int32[]

Returns

Attributes

Applies to

CreateFixedArray(Class, Int32[])

Read and return a new multi-dimensional array from a parcel.

[Android.Runtime.Register("createFixedArray", "(Ljava/lang/Class;[I)Ljava/lang/Object;", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? CreateFixedArray (Java.Lang.Class cls, params int[] dimensions);
[<Android.Runtime.Register("createFixedArray", "(Ljava/lang/Class;[I)Ljava/lang/Object;", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.CreateFixedArray : Java.Lang.Class * int[] -> Java.Lang.Object

Parameters

cls
Class

the Class object for the target array type. (e.g. int[][].class)

dimensions
Int32[]

an array of int representing length of each dimension.

Returns

Attributes

Remarks

Read and return a new multi-dimensional array from a parcel. Returns null if the previously written array object is null. If you want to read Parcelable or IInterface values, use #createFixedArray(Class, Parcelable.Creator, int[]) or #createFixedArray(Class, Function, int[]).

Java documentation for android.os.Parcel.createFixedArray(java.lang.Class<T>, 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