addFeatureFlag

open fun addFeatureFlag(@NonNull name: String)

Add a single feature flag with no variant. If there is an existing feature flag with the same name, it will be overwritten to have no variant.

Parameters

name

the name of the feature flag to add

See also


open fun addFeatureFlag(@NonNull name: String, @Nullable variant: String)

Add a single feature flag with an optional variant. If there is an existing feature flag with the same name, it will be overwritten with the new variant. If the variant is null this method has the same behaviour as addFeatureFlag.

Parameters

name

the name of the feature flag to add

variant

the variant to set the feature flag to, or null to specify a feature flag with no variant