FeatureToggle
public final class FeatureToggle : FeatureToggleController
FeatureToggle controls the experimental behavior of the SDK.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Provides access to a shared instance of
FeatureToggleControllerProtocol.Declaration
Swift
public static let shared: FeatureToggleController -
Enables the experimental
RuntimeFeature.Declaration
Swift
public func enable(feature featureType: RuntimeFeatureType)Parameters
featureTypeThe runtime feature to enable.
-
Disables the experimental
RuntimeFeature.Declaration
Swift
public func disable(feature featureType: RuntimeFeatureType)Parameters
featureTypeThe runtime feature to enable.
-
Determines whether the given
RuntimeFeatureis enabled.Declaration
Swift
public func isEnabled(feature featureType: RuntimeFeatureType) -> BoolParameters
featureTypeThe runtime feature to check.
Return Value
true if the feature is enabled, false otherwise.
TomTom SDK for iOS (0.53.1)
FeatureToggle