Creates a SettingsManager. This does not load any settings from storage; call the load() method before attempting to manage any settings.
Prefer calling init over constructing instances of this class directly, as init()
automatically loads
settings from the file system.
Namespace of settings to manage.
Private
#defaultPrivate
#queuedPrivate
#savePrivate
#settingsNamespace for these settings.
Private
#queueGets a setting.
Key of the setting to retrieve.
Optional
fallback: FValue to return if the key does not already exist.
Loads the latest stored settings for this namespace from the user's file system into this manager. This must be called before managing any settings, unless you have created an instance using init(), which calls this method.
Generated using TypeDoc
Manages settings for a given namespace.
This class should not be instantiated directly; use init() for convenience and reliability.
The load() method copies the namespaces' settings data from the file system into the manager. All communication between a
SettingsManager
and the file system occurs asynchronously over IPC.Once the settings data has been copied into the
SettingsManager
, it can be read and written synchronously. TheSettingsManager
automatically queues and dispatches updates to the file system in the background.