SparseBooleanArray.Put(Int32, Boolean) Method

Definition

Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.

[Android.Runtime.Register("put", "(IZ)V", "GetPut_IZHandler")]
public virtual void Put (int key, bool value);
[<Android.Runtime.Register("put", "(IZ)V", "GetPut_IZHandler")>]
abstract member Put : int * bool -> unit
override this.Put : int * bool -> unit

Parameters

key
Int32
value
Boolean
Attributes

Remarks

Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.

Java documentation for android.util.SparseBooleanArray.put(int, boolean).

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