aerogear-xamarin-sdk
AeroGear Xamarin SDK
AeroGear.Mobile.Core.Utils.IUserPreferences Interface Reference

Represents an user preferences store. More...

Inheritance diagram for AeroGear.Mobile.Core.Utils.IUserPreferences:
AeroGear.Mobile.Core.Utils.AbstractUserPreferences AeroGear.Mobile.Core.Utils.AndroidUserPreferences AeroGear.Mobile.Core.Utils.IOSUserPreferences

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...
 

Detailed Description

Represents an user preferences store.

Member Function Documentation

◆ GetString()

string AeroGear.Mobile.Core.Utils.IUserPreferences.GetString ( string  key,
string  defaultValue = null 
)

Returns the value associated with the provided key. defaultValue or if it does not exists.

Returns
The svalue associated with the given key.
Parameters
keyKey.
defaultValueDefault value. Returned if the key is not present

Implemented in AeroGear.Mobile.Core.Utils.AbstractUserPreferences.

◆ PutString()

void AeroGear.Mobile.Core.Utils.IUserPreferences.PutString ( string  key,
string  value 
)

Adds a value to the user preferences store.

Parameters
keyKey.
valueValue.

Implemented in AeroGear.Mobile.Core.Utils.AbstractUserPreferences.

◆ RemoveValue()

void AeroGear.Mobile.Core.Utils.IUserPreferences.RemoveValue ( string  key)

Removes a value from the preferences store.

Parameters
keyKey.

Implemented in AeroGear.Mobile.Core.Utils.AbstractUserPreferences.


The documentation for this interface was generated from the following file: