Retrieve an int value from the preferences.
Syntax
[Android.Runtime.Register("getInt", "(Ljava/lang/String;I)I", "GetGetInt_Ljava_lang_String_IHandler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public
int GetInt (
string key,
int 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
Remarks
Requirements
Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1