Condividi tramite


Parcel.WriteFixedArray(Object, Int32, Int32[]) Method

Definition

Flatten a homogeneous multi-dimensional array with fixed-size.

[Android.Runtime.Register("writeFixedArray", "(Ljava/lang/Object;I[I)V", "", ApiSince=33)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public void WriteFixedArray (Java.Lang.Object? val, int parcelableFlags, params int[] dimensions);
[<Android.Runtime.Register("writeFixedArray", "(Ljava/lang/Object;I[I)V", "", ApiSince=33)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.WriteFixedArray : Java.Lang.Object * int * int[] -> unit

Parameters

val
Object

The array to be written.

parcelableFlags
Int32

Contextual flags as per Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel(). Used only if val is an array of Parcelable objects.

dimensions
Int32[]

an array of int representing length of each dimension. The array should be sized with the exact size of dimensions.

Attributes

Remarks

Flatten a homogeneous multi-dimensional array with fixed-size. This delegates to other APIs to write a one-dimensional array. Use #readFixedArray(Object) or #createFixedArray(Class, int[]) with the same dimensions to unmarshal.

Java documentation for android.os.Parcel.writeFixedArray(T, int, 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