RemoteConfig

data class RemoteConfig(name: String?, value: String?)

A remote config (feature flag) entry.

Constructors

Link copied to clipboard
fun RemoteConfig(name: String? = null, value: String? = null)

Properties

Link copied to clipboard
val name: String? = null

The name of this remote config entry. These names may be prefixed with the platform type ("android.", "ios.", "desktop.", etc.) Typically, clients only handle the relevant configs for its platform, hardcoding the names it cares about handling and ignoring the rest.

Link copied to clipboard
val value: String? = null

The value for this remote config entry. Even though this is a string, it could be a boolean as a string, an integer/long value, a comma-delimited list, etc. Clients usually consume this by hardcoding the feature flagsit should track in the app and assuming that the server will send the type that the client expects. If an unexpected type occurs, it falls back to a default value.