Package-level declarations

Types

Link copied to clipboard
data class Attachment(var filename: String, var mimetype: String, var location: String, var hash: String, var size: ULong)

Attachment metadata that can be optionally attached to a Record. The location should included in calls to Client::get_attachment.

Link copied to clipboard
interface Disposable
Link copied to clipboard
Link copied to clipboard

Client for a single Remote Settings collection

Link copied to clipboard

Client for a single Remote Settings collection

Link copied to clipboard
data class RemoteSettingsConfig(var collectionName: String, var bucketName: String? = null, var serverUrl: String? = null, var server: RemoteSettingsServer? = null)

Custom configuration for the client. Currently includes the following:

Link copied to clipboard
data class RemoteSettingsConfig2(var server: RemoteSettingsServer? = null, var bucketName: String? = null, var appContext: RemoteSettingsContext? = null)

Remote settings configuration

Link copied to clipboard
data class RemoteSettingsContext(var channel: String? = null, var appVersion: String? = null, var appId: String? = null, var locale: String? = null, var os: String? = null, var osVersion: String? = null, var formFactor: String? = null, var country: String? = null, var customTargettingAttributes: Map<String, String>? = null)

Remote settings context object

Link copied to clipboard

Public error class, this is what we return to consumers

Link copied to clipboard
Link copied to clipboard
data class RemoteSettingsRecord(var id: String, var lastModified: ULong, var deleted: Boolean, var attachment: Attachment?, var fields: <Error class: unknown class>)

A parsed Remote Settings record. Records can contain arbitrary fields, so clients are required to further extract expected values from the fields member.

Link copied to clipboard
data class RemoteSettingsResponse(var records: List<RemoteSettingsRecord>, var lastModified: ULong)

Data structure representing the top-level response from the Remote Settings. last_modified will be extracted from the etag header of the response.

Link copied to clipboard

The Remote Settings server that the client should use.

Link copied to clipboard

Application-level Remote Settings manager.

Link copied to clipboard

Application-level Remote Settings manager.

Link copied to clipboard
typealias RsJsonObject = <Error class: unknown class>

Typealias from the type name used in the UDL file to the custom type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.