Legacy Feature Flags
Functions
Link copied to clipboard
abstract fun getBoolean(feature: Feature, key: String, attributes: Attributes = Attributes()): Boolean
Calculates the value of a boolean feature flag for the given key and attributes.
Link copied to clipboard
Link copied to clipboard
abstract fun getJsonString(feature: Feature, key: String, attributes: Attributes = Attributes()): String
Calculates the value of a JSON feature flag for the given key and attributes and returns it as a json string.
Link copied to clipboard
open fun trackBoolean(feature: Feature, key: String, executor: Executor, tracker: (Boolean) -> Unit): TrackerReference
abstract fun trackBoolean(feature: Feature, key: String, attributes: Attributes = Attributes(), executor: Executor, tracker: (Boolean) -> Unit): TrackerReference
Registers a tracker for the value of a boolean feature flag for the given key and attributes.
Link copied to clipboard
open fun trackDouble(feature: Feature, key: String, executor: Executor, tracker: (Double) -> Unit): TrackerReference
abstract fun trackDouble(feature: Feature, key: String, attributes: Attributes = Attributes(), executor: Executor, tracker: (Double) -> Unit): TrackerReference
Registers a tracker for the value of a double feature flag for the given key and attributes.
Link copied to clipboard
open fun <T : Enum<T>> trackEnum(feature: Feature, key: String, clazz: Class<T>, executor: Executor, tracker: (T) -> Unit): TrackerReference
abstract fun <T : Enum<T>> trackEnum(feature: Feature, key: String, clazz: Class<T>, attributes: Attributes = Attributes(), executor: Executor, tracker: (T) -> Unit): TrackerReference
Registers a tracker for the value of an enumerated feature flag for the given key and attributes.
Link copied to clipboard
open fun trackInt(feature: Feature, key: String, executor: Executor, tracker: (Int) -> Unit): TrackerReference
abstract fun trackInt(feature: Feature, key: String, attributes: Attributes = Attributes(), executor: Executor, tracker: (Int) -> Unit): TrackerReference
Registers a tracker for the value of an integer feature flag for the given key and attributes.
Link copied to clipboard
open fun <T> trackJson(feature: Feature, key: String, clazz: Class<T>, executor: Executor, tracker: (T) -> Unit): TrackerReference
abstract fun <T> trackJson(feature: Feature, key: String, clazz: Class<T>, attributes: Attributes = Attributes(), executor: Executor, tracker: (T) -> Unit): TrackerReference
Registers a tracker for the value of a JSON feature flag for the given key and attributes.
Link copied to clipboard
open fun trackString(feature: Feature, key: String, executor: Executor, tracker: (String) -> Unit): TrackerReference
abstract fun trackString(feature: Feature, key: String, attributes: Attributes = Attributes(), executor: Executor, tracker: (String) -> Unit): TrackerReference
Registers a tracker for the value of a string feature flag for the given key and attributes.