ExperimentUser

class ExperimentUser

The user to fetch experiment/flag variants for. This is an immutable object that can be created using an ExperimentUser.Builder. Example usage:

ExperimentUser.builder().userId("user@company.com").build()

You can copy and modify a user using copyToBuilder.

val user = ExperimentUser.builder()
.userId("user@company.com")
.build()
val newUser = user.copyToBuilder()
.userProperty("username", "bumblebee")
.build()

Constructors

ExperimentUser
Link copied to clipboard
fun ExperimentUser()
Construct an empty ExperimentUser.

Types

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

Functions

copyToBuilder
Link copied to clipboard
fun copyToBuilder(): ExperimentUser.Builder
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

carrier
Link copied to clipboard
val carrier: String? = null
city
Link copied to clipboard
val city: String? = null
country
Link copied to clipboard
val country: String? = null
deviceBrand
Link copied to clipboard
val deviceBrand: String? = null
deviceId
Link copied to clipboard
val deviceId: String? = null
deviceManufacturer
Link copied to clipboard
val deviceManufacturer: String? = null
deviceModel
Link copied to clipboard
val deviceModel: String? = null
dma
Link copied to clipboard
val dma: String? = null
language
Link copied to clipboard
val language: String? = null
library
Link copied to clipboard
val library: String? = null
os
Link copied to clipboard
val os: String? = null
platform
Link copied to clipboard
val platform: String? = null
region
Link copied to clipboard
val region: String? = null
userId
Link copied to clipboard
val userId: String? = null
userProperties
Link copied to clipboard
val userProperties: Map<String, Any?>? = null
version
Link copied to clipboard
val version: String? = null