Udostępnij za pośrednictwem


Parcel.WriteTypedArrayMap(ArrayMap, Int32) Method

Definition

Flatten an ArrayMap with string keys containing a particular object type into the parcel at the current dataPosition() and growing dataCapacity() if needed.

[Android.Runtime.Register("writeTypedArrayMap", "(Landroid/util/ArrayMap;I)V", "", ApiSince=29)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public void WriteTypedArrayMap (Android.Util.ArrayMap? val, int parcelableFlags);
[<Android.Runtime.Register("writeTypedArrayMap", "(Landroid/util/ArrayMap;I)V", "", ApiSince=29)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
member this.WriteTypedArrayMap : Android.Util.ArrayMap * int -> unit

Parameters

val
ArrayMap

The map of objects to be written.

parcelableFlags
Int32

The parcelable flags to use.

Attributes

Remarks

Flatten an ArrayMap with string keys containing a particular object type into the parcel at the current dataPosition() and growing dataCapacity() if needed. The type of the objects in the array must be one that implements Parcelable. Only the raw data of the objects is written and not their type, so you must use the corresponding #createTypedArrayMap(Parcelable.Creator)

Java documentation for android.os.Parcel.writeTypedArrayMap(android.util.ArrayMap<java.lang.String, 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