Partager via


SparseArray.Size Method

Definition

Returns the number of key-value mappings that this SparseArray currently stores.

[Android.Runtime.Register("size", "()I", "GetSizeHandler")]
public virtual int Size ();
[<Android.Runtime.Register("size", "()I", "GetSizeHandler")>]
abstract member Size : unit -> int
override this.Size : unit -> int

Returns

Attributes

Remarks

Returns the number of key-value mappings that this SparseArray currently stores.

Java documentation for android.util.SparseArray.size().

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