File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,19 @@ argument containing the additional configuration options for
2121the [ ConfigCat Kotlin SDK] ( https://github.com/configcat/kotlin-sdk ) :
2222
2323``` kotlin
24- // TODO
24+ // Configure the provider.
25+ val provider = ConfigCatProvider (" <YOUR-CONFIGCAT-SDK-KEY>" ) {
26+ pollingMode = autoPoll { pollingInterval = 60 .seconds }
27+ }
28+
29+ // Configure the OpenFeature API with the ConfigCat provider.
30+ OpenFeatureAPI .setProviderAndWait(provider)
31+
32+ // Create a client.
33+ val client = OpenFeatureAPI .getClient()
34+
35+ // Evaluate feature flag.
36+ val isAwesomeFeatureEnabled = client.getBooleanDetails(" isAwesomeFeatureEnabled" , false )
2537```
2638
2739For more information about all the configuration options, see
You can’t perform that action at this time.
0 commit comments