Parcel.WriteSparseArray(SparseArray) Method

Definition

Flatten a generic SparseArray into the parcel at the current dataPosition(), growing dataCapacity() if needed.

[Android.Runtime.Register("writeSparseArray", "(Landroid/util/SparseArray;)V", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public void WriteSparseArray (Android.Util.SparseArray? val);
[<Android.Runtime.Register("writeSparseArray", "(Landroid/util/SparseArray;)V", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
member this.WriteSparseArray : Android.Util.SparseArray -> unit

Parameters

Attributes

Remarks

Flatten a generic SparseArray into the parcel at the current dataPosition(), growing dataCapacity() if needed. The SparseArray values are written using #writeValue and must follow the specification there.

Java documentation for android.os.Parcel.writeSparseArray(android.util.SparseArray<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