Parcel.CreateTypedSparseArray(IParcelableCreator) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Read into a new SparseArray
items containing a particular object type
that were written with #writeTypedSparseArray(SparseArray, int)
at the
current dataPosition().
[Android.Runtime.Register("createTypedSparseArray", "(Landroid/os/Parcelable$Creator;)Landroid/util/SparseArray;", "", ApiSince=29)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })]
public Android.Util.SparseArray? CreateTypedSparseArray (Android.OS.IParcelableCreator creator);
[<Android.Runtime.Register("createTypedSparseArray", "(Landroid/os/Parcelable$Creator;)Landroid/util/SparseArray;", "", ApiSince=29)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.os.Parcelable" })>]
member this.CreateTypedSparseArray : Android.OS.IParcelableCreator -> Android.Util.SparseArray
Parameters
- creator
- IParcelableCreator
The creator to use when for instantiation.
Returns
A newly created SparseArray
containing objects with the same data
as those that were previously written.
- Attributes
Remarks
Java documentation for android.os.Parcel.createTypedSparseArray(android.os.Creator)
.
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.