Bundle.GetBoolean Bundle.GetBoolean Method

Definition

Overloads

GetBoolean(String) GetBoolean(String)

Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.

GetBoolean(String, Boolean) GetBoolean(String, Boolean)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

GetBoolean(String) GetBoolean(String)

Returns the value associated with the given key, or false if no mapping of the desired type exists for the given key.

[Android.Runtime.Register("getBoolean", "(Ljava/lang/String;)Z", "")]
public override bool GetBoolean (string key);
override this.GetBoolean : string -> bool

Parameters

key
String String

a String

Returns

Remarks

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.

GetBoolean(String, Boolean) GetBoolean(String, Boolean)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

[Android.Runtime.Register("getBoolean", "(Ljava/lang/String;Z)Z", "")]
public override bool GetBoolean (string key, bool defaultValue);
override this.GetBoolean : string * bool -> bool

Parameters

key
String String

a String

defaultValue
Boolean Boolean

Value to return if key does not exist

Returns

Remarks

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