Parcel.CreateFixedArray Method

Definition

Overloads

Name Description
CreateFixedArray(Class, IFunction, Int32[])

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

CreateFixedArray(Class, IParcelableCreator, Int32[])

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

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

The value cannot be null.

dimensions
Int32[]

an array of int representing length of each dimension.

Returns

The newly created fixed array.

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[])

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

[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

the Class object for the target array type. (e.g. Foo[][].class). This value cannot be null.

c
IParcelableCreator

The value cannot be null.

dimensions
Int32[]

an array of int representing length of each dimension. This value cannot be null.

Returns

The newly created fixed array.

Attributes

Remarks

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

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

The newly created fixed array.

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