SettingsService

Platform independent settings service. Settings service is a key/value storage (persistent or non persistent), that also allows to register observers to get notifications when values are updated.

Functions

Link copied to clipboard
Erase value for the specified key.
Link copied to clipboard
Get value for the specified key.
open fun get(key: String, defaultValue: Value): Expected<String, Value>
Get value for the specified key, if key doesn't exist return a default value.
Link copied to clipboard
Check if provided key exists in the storage.
Link copied to clipboard
open fun registerObserver(key: String, observer: OnValueChanged): Int
Link copied to clipboard
Link copied to clipboard
open fun set(key: String, value: Value): Expected<String, None>
Set value for the specified key.
Link copied to clipboard
Set multiple settings from a JSON file.
Link copied to clipboard