Java.Util.Prefs.AbstractPreferences.GetBoolean Method
Gets the boolean value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is invalid.

Syntax

[Android.Runtime.Register("getBoolean", "(Ljava/lang/String;Z)Z", "GetGetBoolean_Ljava_lang_String_ZHandler")]
public override bool GetBoolean (string key, bool deflt)

Parameters

key
the preference key.
deflt
the default value, which will be returned if no value is mapped to the given key, if the backing store is unavailable, or if the value is invalid.

Returns

Documentation for this section has not yet been entered.

Remarks

Gets the boolean value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is invalid.

The only valid values are the String "true", which represents true and "false", which represents false, ignoring case.

Some implementations may store default values in backing stores. In this case, if there is no value mapped to the given key, the stored default value is returned.

[Android Documentation]

Requirements

Namespace: Java.Util.Prefs
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1