/
OverrideBehavior.kt
26 lines (23 loc) · 1.12 KB
/
OverrideBehavior.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.configcat.override
/**
* Describes how the overrides should behave.
*/
public enum class OverrideBehavior {
/**
* When evaluating values, the SDK will not use feature flags & settings from the ConfigCat CDN, but it will use
* all feature flags & settings that are loaded from local-override sources.
*/
LOCAL_ONLY,
/**
* When evaluating values, the SDK will use all feature flags & settings that are downloaded from the ConfigCat CDN,
* plus all feature flags & settings that are loaded from local-override sources. If a feature flag or a setting is
* defined both in the fetched and the local-override source then the local-override version will take precedence.
*/
LOCAL_OVER_REMOTE,
/**
* When evaluating values, the SDK will use all feature flags & settings that are downloaded from the ConfigCat CDN,
* plus all feature flags & settings that are loaded from local-override sources. If a feature flag or a setting is
* defined both in the fetched and the local-override source then the fetched version will take precedence.
*/
REMOTE_OVER_LOCAL,
}