Compartilhar via


SparseBooleanArray.Get Method

Definition

Overloads

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

Returns

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
valueIfKeyNotFound
Boolean

Returns

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