RemoteSettingsService

constructor(pointer: <Error class: unknown class>)


constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.


constructor(storageDir: String, config: RemoteSettingsConfig2)

Construct a RemoteSettingsService

This is typically done early in the application-startup process.

This method performs no IO or network requests and is safe to run in a main thread that can't be blocked.

storage_dir is a directory to store SQLite files in -- one per collection. If the directory does not exist, it will be created when the storage is first used. Only the directory and the SQLite files will be created, any parent directories must already exist.