Language

SparseArray<E> Constructors

Definition

Overloads

Name Description
SparseArray<E>()

Creates an empty sparse array of managed values.

SparseArray<E>(Int32)

Creates an empty sparse array with storage for the specified number of values.

SparseArray<E>()

Creates an empty sparse array of managed values.

public SparseArray();

Remarks

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

SparseArray<E>(Int32)

Creates an empty sparse array with storage for the specified number of values.

public SparseArray(int capacity);
new Android.Util.SparseArray<'E> : int -> Android.Util.SparseArray<'E>

Parameters

capacity
Int32

The initial number of mappings to reserve space for.

Remarks

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