aerogear-xamarin-sdk
AeroGear Xamarin SDK
|
Base class for user preferences. Automatically performs sanity checks on parameters. More...
Public Member Functions | |
string | GetString (string key, string defaultValue=null) |
Returns the value associated with the provided key. defaultValue or if it does not exists. More... | |
void | PutString (string key, string value) |
Adds a value to the user preferences store. More... | |
void | RemoveValue (string key) |
Removes a value from the preferences store. More... | |
Protected Member Functions | |
abstract string | doGetString (string key, string defaultValue=null) |
Returns the string associated with the given key. More... | |
abstract void | doPutString (string key, string value) |
Adds a new key,value pair to the user preferences. More... | |
abstract void | doRemoveValue (string key) |
Remove the value associated to the specific key from the user preferences. More... | |
Base class for user preferences. Automatically performs sanity checks on parameters.
|
protectedpure virtual |
Returns the string associated with the given key.
key | Key. |
defaultValue | Default value. |
Implemented in AeroGear.Mobile.Core.Utils.AndroidUserPreferences, and AeroGear.Mobile.Core.Utils.IOSUserPreferences.
|
protectedpure virtual |
Adds a new key,value pair to the user preferences.
key | Key. |
value | Value. |
Implemented in AeroGear.Mobile.Core.Utils.AndroidUserPreferences, and AeroGear.Mobile.Core.Utils.IOSUserPreferences.
|
protectedpure virtual |
Remove the value associated to the specific key from the user preferences.
key | Key. |
Implemented in AeroGear.Mobile.Core.Utils.AndroidUserPreferences, and AeroGear.Mobile.Core.Utils.IOSUserPreferences.
string AeroGear.Mobile.Core.Utils.AbstractUserPreferences.GetString | ( | string | key, |
string | defaultValue = null |
||
) |
Returns the value associated with the provided key. defaultValue or if it does not exists.
key | Key. |
defaultValue | Default value. Returned if the key is not present |
Implements AeroGear.Mobile.Core.Utils.IUserPreferences.
void AeroGear.Mobile.Core.Utils.AbstractUserPreferences.PutString | ( | string | key, |
string | value | ||
) |
Adds a value to the user preferences store.
key | Key. |
value | Value. |
Implements AeroGear.Mobile.Core.Utils.IUserPreferences.
void AeroGear.Mobile.Core.Utils.AbstractUserPreferences.RemoveValue | ( | string | key | ) |
Removes a value from the preferences store.
key | Key. |
Implements AeroGear.Mobile.Core.Utils.IUserPreferences.