Baca dalam bahasa Inggris

Bagikan melalui


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);

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

.NET for Android .NET for Android API 35 dan .NET for Android .NET for Android API 34
Produk Versi
.NET for Android .NET for Android API 34, .NET for Android API 35

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);

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

.NET for Android .NET for Android API 35 dan .NET for Android .NET for Android API 34
Produk Versi
.NET for Android .NET for Android API 34, .NET for Android API 35