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
feature
The 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
feature
The runtime feature to enable.
-
Determines whether the given
RuntimeFeature
is 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) -> Bool
Parameters
feature
The runtime feature to check.
Return Value
true if the feature is enabled, false otherwise.