Language

SparseBooleanArray.Get Method

Definition

Overloads

Name Description
Get(Int32)

Gets the boolean mapped from the specified key, or false if no such mapping has been made.

Get(Int32, Boolean)

Gets the boolean mapped from the specified key, or the specified value if no such mapping has been made.

Get(Int32)

Gets the boolean mapped from the specified key, or false if no such mapping has been made.

[Android.Runtime.Register("get", "(I)Z", "GetGet_IHandler")]
public virtual bool Get(int key);
[<Android.Runtime.Register("get", "(I)Z", "GetGet_IHandler")>]
abstract member Get : int -> bool
override this.Get : int -> bool

Parameters

key
Int32

The integer key to look up.

Returns

The value mapped to key, or false if the key is absent.

Attributes

Remarks

Gets the boolean mapped from the specified key, or false if no such mapping has been made.

Java documentation for android.util.SparseBooleanArray.get(int).

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

Get(Int32, Boolean)

Gets the boolean mapped from the specified key, or the specified value if no such mapping has been made.

[Android.Runtime.Register("get", "(IZ)Z", "GetGet_IZHandler")]
public virtual bool Get(int key, bool valueIfKeyNotFound);
[<Android.Runtime.Register("get", "(IZ)Z", "GetGet_IZHandler")>]
abstract member Get : int * bool -> bool
override this.Get : int * bool -> bool

Parameters

key
Int32

The integer key to look up.

valueIfKeyNotFound
Boolean

The value to return when the key has no mapping.

Returns

The mapped value, or valueIfKeyNotFound if the key is absent.

Attributes

Remarks

Gets the boolean mapped from the specified key, or the specified value if no such mapping has been made.

Java documentation for android.util.SparseBooleanArray.get(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