Parcel.WriteTypedList Method

Definition

Overloads

WriteTypedList(IList)

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed.

WriteTypedList(IList, ParcelableWriteFlags)

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed.

WriteTypedList(IList)

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed.

[Android.Runtime.Register("writeTypedList", "(Ljava/util/List;)V", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public void WriteTypedList (System.Collections.IList? val);
[<Android.Runtime.Register("writeTypedList", "(Ljava/util/List;)V", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
member this.WriteTypedList : System.Collections.IList -> unit

Parameters

val
IList

The list of objects to be written.

Attributes

Remarks

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed. The type of the objects in the list must be one that implements Parcelable. Unlike the generic writeList() method, however, only the raw data of the objects is written and not their type, so you must use the corresponding readTypedList() to unmarshall them.

Java documentation for android.os.Parcel.writeTypedList(java.util.List<T>).

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

WriteTypedList(IList, ParcelableWriteFlags)

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed.

[Android.Runtime.Register("writeTypedList", "(Ljava/util/List;I)V", "", ApiSince=34)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public void WriteTypedList (System.Collections.IList? val, Android.OS.ParcelableWriteFlags parcelableFlags);
[<Android.Runtime.Register("writeTypedList", "(Ljava/util/List;I)V", "", ApiSince=34)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
member this.WriteTypedList : System.Collections.IList * Android.OS.ParcelableWriteFlags -> unit

Parameters

val
IList

The list of objects to be written.

parcelableFlags
ParcelableWriteFlags

Contextual flags as per Parcelable#writeToParcel(Parcel, int) Parcelable.writeToParcel().

Attributes

Remarks

Flatten a List containing a particular object type into the parcel, at the current dataPosition() and growing dataCapacity() if needed. The type of the objects in the list must be one that implements Parcelable. Unlike the generic writeList() method, however, only the raw data of the objects is written and not their type, so you must use the corresponding readTypedList() to unmarshall them.

Java documentation for android.os.Parcel.writeTypedList(java.util.List<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