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

    featureType

    The runtime feature to enable.

  • Disables the experimental RuntimeFeature.

    Declaration

    Swift

    public func disable(feature featureType: RuntimeFeatureType)

    Parameters

    featureType

    The runtime feature to enable.

  • Determines whether the given RuntimeFeature is enabled.

    Declaration

    Swift

    public func isEnabled(feature featureType: RuntimeFeatureType) -> Bool

    Parameters

    featureType

    The runtime feature to check.

    Return Value

    true if the feature is enabled, false otherwise.