FeatureFlag

data class FeatureFlag(val key: String, val defaultValue: String, val allowedValues: Set<String>, val type: FeatureFlagType = FeatureFlagType.STRING, val description: String = "", val mutable: Boolean = true, val source: String = "application")

A host-declared flag. Values are carried as strings so a flag can offer a choice between named options — a backend environment, an account tier — rather than only on or off. Booleans remain first-class through ofBoolean and SessionFeatureFlags.booleanValue.

Constructors

Link copied to clipboard
constructor(key: String, defaultValue: String, allowedValues: Set<String>, type: FeatureFlagType = FeatureFlagType.STRING, description: String = "", mutable: Boolean = true, source: String = "application")
constructor(key: String, defaultValue: Boolean, description: String = "", mutable: Boolean = true, source: String = "application")

Convenience constructor for the common on/off flag.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard