다음을 통해 공유


Bundle.GetBoolean Method

Definition

Overloads

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)

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

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);
[<Android.Runtime.Register("getBoolean", "(Ljava/lang/String;)Z", "")>]
override this.GetBoolean : string -> bool

Parameters

key
String

a String

Returns

Attributes

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

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);
[<Android.Runtime.Register("getBoolean", "(Ljava/lang/String;Z)Z", "")>]
override this.GetBoolean : string * bool -> bool

Parameters

key
String

a String

defaultValue
Boolean

Value to return if key does not exist

Returns

Attributes

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