Application can store any objects here that last while program is terminated. You have to always save by using Save() or modifications do not take place in storage. USE KEYS DEFINED HERE AS PUBLIC CONSTS.
More...
Application can store any objects here that last while program is terminated. You have to always save by using Save() or modifications do not take place in storage. USE KEYS DEFINED HERE AS PUBLIC CONSTS.
Halyri.Settings.Settings |
( |
| ) |
|
void Halyri.Settings.AddOrUpdateValue |
( |
string |
Key, |
|
|
Object |
value |
|
) |
| |
Update a setting value for our application. If the setting does not exist, then add the setting.
- Parameters
-
Key | Key is string like search parameter that is used to store object |
value | The object that you like to store |
- Returns
- True if value is changed and false if not
T Halyri.Settings.GetValueOrDefault< T > |
( |
string |
Key, |
|
|
T |
defaultValue |
|
) |
| |
Get the current value of the setting, or if it is not found, set the setting to the default setting.
- Template Parameters
-
- Parameters
-
Key | Key for searching item |
defaultValue | If item is not found returns this |
- Returns
bool Halyri.Settings.RemoveSetting |
( |
String |
key | ) |
|
Removes setting using given key.
- Parameters
-
- Returns
- True if succesful.
void Halyri.Settings.Save |
( |
| ) |
|
const String Halyri.Settings.CONNECTION = "connection" |
const String Halyri.Settings.FONTSIZE = "fontSize" |
const String Halyri.Settings.GUID = "guid" |
const String Halyri.Settings.ISGPSENABLED = "isGpsEnabled" |
const String Halyri.Settings.LOCALITY = "locality" |
const String Halyri.Settings.OWNERNAME = "ownerName" |
const String Halyri.Settings.PHONENUMBERS = "phoneNumbers" |
const String Halyri.Settings.POSTALCODE = "postalCode" |
const String Halyri.Settings.SELECTEDLANGUAGEINDEX = "selectedLanguageIndex" |
const String Halyri.Settings.STREETADDRESS = "streetName" |
The documentation for this class was generated from the following file: