Variant

class Variant

A variant in an A/B test, representing either the control (C) or treatment (T1) configuration.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The name of the variant. Must be C for control or T1 for treatment.

Link copied to clipboard

The configuration for this variant, including the configuration bundle or target reference.

Link copied to clipboard
val weight: Int

The percentage of traffic to route to this variant. Weights across all variants must sum to 100.

Functions

Link copied to clipboard
inline fun copy(block: Variant.Builder.() -> Unit = {}): Variant
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String