Dynamic Config
interface DynamicConfig
Interface for evaluating dynamic flags. Dynamic flags are similar to feature flags, but they don't support different variations for different keys.
Functions
Link copied to clipboard
Returns the value of a boolean dynamic flag.
Link copied to clipboard
Returns the value of a JSON string value of the dynamic flag.
Link copied to clipboard
abstract fun trackBoolean(feature: Feature, executor: Executor, tracker: (Boolean) -> Unit): TrackerReference
Registers a boolean dynamic config tracker which will be invoked whenever the boolean dynamic config changes value.
Link copied to clipboard
abstract fun trackDouble(feature: Feature, executor: Executor, tracker: (Double) -> Unit): TrackerReference
Registers a double dynamic config tracker which will be invoked whenever the double dynamic config changes value.
Link copied to clipboard
inline fun <T> DynamicConfig.trackJson(feature: Feature, executor: Executor, noinline tracker: (T) -> Unit): TrackerReference
Link copied to clipboard
abstract fun trackString(feature: Feature, executor: Executor, tracker: (String) -> Unit): TrackerReference
Registers a string dynamic config tracker which will be invoked whenever the string dynamic config changes value.