ConfigCatClientSnapshot

Represents the state of ConfigCatClient captured at a specific point in time.

Properties

Link copied to clipboard

The state of the internal cache at the time the snapshot was created.

Functions

Link copied to clipboard
abstract fun getAllKeys(): Collection<String>

Gets a collection of all setting keys.

Link copied to clipboard
abstract fun getAnyValue(key: String, defaultValue: Any?, user: ConfigCatUser?): Any?

Gets the value of a feature flag or setting as Any identified by the given key.

Link copied to clipboard
abstract fun getAnyValueDetails(key: String, defaultValue: Any?, user: ConfigCatUser?): EvaluationDetails

Gets the value and evaluation details of a feature flag or setting identified by the given key.

Link copied to clipboard
inline fun <T> ConfigCatClientSnapshot.getValue(key: String, defaultValue: T, user: ConfigCatUser? = null): T

Gets the value of a feature flag or setting as T identified by the given key.

Link copied to clipboard
inline fun <T> ConfigCatClientSnapshot.getValueDetails(key: String, defaultValue: T, user: ConfigCatUser? = null): TypedEvaluationDetails<T>

Gets the value and evaluation details of a feature flag or setting identified by the given key.