Share via


SparseArray.Append(Int32, Object) Method

Definition

Puts a key/value pair into the array, optimizing for the case where the key is greater than all existing keys in the array.

[Android.Runtime.Register("append", "(ILjava/lang/Object;)V", "GetAppend_ILjava_lang_Object_Handler")]
public virtual void Append (int key, Java.Lang.Object? value);
[<Android.Runtime.Register("append", "(ILjava/lang/Object;)V", "GetAppend_ILjava_lang_Object_Handler")>]
abstract member Append : int * Java.Lang.Object -> unit
override this.Append : int * Java.Lang.Object -> unit

Parameters

key
Int32
value
Object
Attributes

Remarks

Puts a key/value pair into the array, optimizing for the case where the key is greater than all existing keys in the array.

Java documentation for android.util.SparseArray.append(int, E).

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