Läs på engelska

Dela via


Parcel.CreateTypedSparseArray(IParcelableCreator) Method

Definition

Read into a new SparseArray items containing a particular object type that were written with #writeTypedSparseArray(SparseArray, int) at the current dataPosition().

C#
[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);

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.

Applies to

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35