ConfigCatOptions

Configuration options for ConfigCatClient.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
var baseUrl: String? = null

The base ConfigCat CDN url.

Link copied to clipboard

The cache implementation used to cache the downloaded configurations.

Link copied to clipboard

Default: DataGovernance.GLOBAL. Set this parameter to be in sync with the Data Governance preference on the Dashboard. (Only Organization Admins have access)

Link copied to clipboard

The default user, used as fallback when there's no user parameter is passed to the ConfigCatClient.getValue method.

Link copied to clipboard
var flagOverrides: FlagOverrides.() -> Unit? = null

Feature flag and setting overrides.

Link copied to clipboard

Hooks for events fired by ConfigCatClient.

Link copied to clipboard
var httpEngine: HttpClientEngine? = null

The underlying Ktor HTTP engine used to fetch the latest configuration.

Link copied to clipboard
var httpProxy: ProxyConfig? = null

Proxy configuration for the HTTP engine.

Link copied to clipboard

The internal logger implementation. The default logger writes the messages with println.

Link copied to clipboard

Default: LogLevel.WARNING. The internal log level.

Link copied to clipboard
var offline: Boolean = false

Indicates whether the SDK should be initialized in offline mode or not.

Link copied to clipboard

The polling mode.

Link copied to clipboard

Default: 30s. The maximum wait time for an HTTP response.