Android.Content.ISharedPreferences.GetBoolean Method
Retrieve a boolean value from the preferences.

Syntax

[Android.Runtime.Register("getBoolean", "(Ljava/lang/String;Z)Z", "GetGetBoolean_Ljava_lang_String_ZHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetBoolean (string key, bool defValue)

Parameters

key
The name of the preference to retrieve.
defValue
Value to return if this preference does not exist.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ClassCastException

Remarks

Retrieve a boolean value from the preferences.

[Android Documentation]

Requirements

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