Skip to content

v0.10.0 - add API getExperimentInLayerForUser

Compare
Choose a tag to compare
@jkw-statsig jkw-statsig released this 21 Jan 02:03
· 588 commits to main since this release
b3fdaa1
  • Added a new API getExperimentInLayerForUser(user: StatsigUser, layerName: String, disableExposure: Boolean = false): DynamicConfig, which returns a DynamicConfig object representing the experiment's config that the user is in within the specified layer.
  • If the user is NOT allocated to any experiment, then the getName() function on the DynamicConfig object will be an empty String.
  • by default this function will log an exposure for the experiment the user is in. This can be disabled by setting the 3rd parameter disableExposure to true.
  • The API is also available as getExperimentInLayerForUserAsync for Java.