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.
Deletes a setting.
Key of the setting to delete.
Whether the setting was successfully deleted.
Determines whether a setting exists for this namespace.
Key to look for.
Whether the setting already exists for this namespace.
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.
Sets a setting.
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.