RemoteSettingsClient

Client for a single Remote Settings collection

Use RemoteSettingsService::make_client to create these.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun collectionName(): String

Collection this client is for

Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun getAttachment(record: RemoteSettingsRecord): ByteArray

Get attachment data for a remote settings record

Link copied to clipboard
open override fun getRecords(syncIfEmpty: Boolean): List<RemoteSettingsRecord>?

Get the current set of records.

Link copied to clipboard
open override fun getRecordsMap(syncIfEmpty: Boolean): Map<String, RemoteSettingsRecord>?

Get the current set of records as a map of record_id -> record.

Link copied to clipboard
open override fun shutdown()

Shutdown the client, releasing the SQLite connection used to cache records.

Link copied to clipboard
open override fun sync()