SettingsManager service
Instanciating the service#
Load the following scripts:
You can then get an instance of the service with code similar to:
Then the developer can use _settingsManager as SettingsManager service instance.
This service implements the SettingsFactory interface.
GetErrorReason enumeration#
GetError dictionnary#
SettingInfo dictionnary#
SettingObserver callback object#
Creating a SettingObserver object#
Use code similar to:
Methods#
// setting: SettingInfo
callback(setting)
Resolves with void
Rejects with void
SettingsFactory Interface#
Methods#
  addObserver clear get getBatch removeObserver set
// name: string
// observer: SettingObserver
addObserver(name, observer)
Resolves with void
Rejects with void
clear()
Resolves with void
Rejects with void
// name: string
get(name)
Resolves with SettingInfo
Rejects with GetError
// name: [string]
getBatch(name)
Resolves with [SettingInfo]
Rejects with void
// name: string
// observer: SettingObserver
removeObserver(name, observer)
Resolves with void
Rejects with void
// settings: [SettingInfo]
set(settings)
Resolves with void
Rejects with void
Events#
  CHANGE
The CHANGE event emits a SettingInfo
To manage this event, use code similar to: