Config Cat Client
fun ConfigCatClient(sdkKey: String, block: ConfigCatOptions.() -> Unit = {}): ConfigCatClient(source)
Creates a new or gets an already existing ConfigCatClient for the given sdkKey.
This method accepts an optional functional parameter to configure the constructed ConfigCatClient.
val client = ConfigCatClient("YOUR-SDK-KEY") {
pollingMode = autoPoll()
}
Content copied to clipboard
Creates a new or gets an already existing ConfigCatClient for the given sdkKey.
This method accepts an optional ConfigCatOptions parameter to configure the constructed ConfigCatClient.
val options = ConfigCatOptions()
options.pollingMode = autoPoll()
val client = ConfigCatClient("YOUR-SDK-KEY", options)
Content copied to clipboard