cadabra-android / com.fo2rist.cadabra.android / CadabraAndroid / getExperimentContext
getExperimentContext
abstract fun getExperimentContext(variantClass: KClass<out <ERROR CLASS>>): ExperimentContext
Get Android resources accessor for active experiment variant. If the experiment is not started the context would behave as normal Android context.
Exceptions
ExperimentNotFound - if experiment is not registered
IllegalStateException - if Cadabra was not initialized via initialize.abstract fun getExperimentContext(variantClass: Class<out <ERROR CLASS>>): ExperimentContext
Get Android resources accessor for active experiment variant. If the experiment is not started the context would behave as normal Android context.
Exceptions
ExperimentNotFound - if experiment is not registered
NotInitializedException - if Cadabra was not initialized via initialize.