FeatureToggle
public final class FeatureToggle : FeatureToggleController
FeatureToggle controls the experimental behavior of the SDK.
Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.-
Provides access to a shared instance of
FeatureToggleControllerProtocol.Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.Declaration
Swift
public static let shared: FeatureToggleController -
Enables the experimental
RuntimeFeature.Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.Declaration
Swift
public func enable(feature featureType: RuntimeFeatureType)Parameters
featureThe runtime feature to enable.
-
Disables the experimental
RuntimeFeature.Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.Declaration
Swift
public func disable(feature featureType: RuntimeFeatureType)Parameters
featureThe runtime feature to enable.
-
Determines whether the given
RuntimeFeatureis enabled.Warning
This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.Declaration
Swift
public func isEnabled(feature featureType: RuntimeFeatureType) -> BoolParameters
featureThe runtime feature to check.
Return Value
true if the feature is enabled, false otherwise.
FeatureToggle Class Reference