FeatureToggleController

This class exposes control of experimental behavior of the SDK by turning on some experimental features. Production use of such features is not advised or supported and should be treated with caution.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
fun clear()

Disables all features.

Link copied to clipboard
open override fun disable(featureType: RuntimeFeature.Type)

Disables the experimental RuntimeFeature.

Link copied to clipboard
open override fun enable(featureType: RuntimeFeature.Type)

Enables the experimental RuntimeFeature.

Link copied to clipboard
fun initialize(context: Context)

Initializes the FeatureToggleController. This method needs to be called prior to accessing any other methods of FeatureToggleController. Once initialized, subsequent invocations of this method have no effect.

Link copied to clipboard
open override fun isEnabled(featureType: RuntimeFeature.Type): Boolean

Determines whether the given RuntimeFeature is enabled.