FeatureToggleApi

object FeatureToggleApi : FeatureToggleController

This class exposes control of experimental behavior of the SDK by turning on some experimental features. Production use of such features is generally not advised 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
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 FeatureToggleApi. This method needs to be called prior to accessing any other methods of FeatureToggleApi. 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