ArrayMap.KeySet Method

Definition

Return a java.util.Set for iterating over and interacting with all keys in the array map.

[Android.Runtime.Register("keySet", "()Ljava/util/Set;", "")]
public System.Collections.ICollection? KeySet ();
[<Android.Runtime.Register("keySet", "()Ljava/util/Set;", "")>]
abstract member KeySet : unit -> System.Collections.ICollection
override this.KeySet : unit -> System.Collections.ICollection

Returns

Implements

Attributes

Remarks

Return a java.util.Set for iterating over and interacting with all keys in the array map.

<b>Note:</b> this is a fairly inefficient way to access the array contents, it requires generating a number of temporary objects and allocates additional state information associated with the container that will remain for the life of the container.

Java documentation for android.util.ArrayMap.keySet().

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