public class ConfigCatHooks
extends java.lang.Object
| Constructor and Description |
|---|
ConfigCatHooks() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnClientReady(java.lang.Runnable callback)
Subscribes to the onReady event.
|
void |
addOnConfigChanged(java.util.function.Consumer<java.util.Map<java.lang.String,com.configcat.Setting>> callback)
Subscribes to the onConfigChanged event.
|
void |
addOnError(java.util.function.Consumer<java.lang.String> callback)
Subscribes to the onError event.
|
void |
addOnFlagEvaluated(java.util.function.Consumer<EvaluationDetails<java.lang.Object>> callback)
Subscribes to the onFlagEvaluated event.
|
public void addOnClientReady(java.lang.Runnable callback)
callback - the method to call when the event fires.public void addOnConfigChanged(java.util.function.Consumer<java.util.Map<java.lang.String,com.configcat.Setting>> callback)
callback - the method to call when the event fires.public void addOnError(java.util.function.Consumer<java.lang.String> callback)
callback - the method to call when the event fires.public void addOnFlagEvaluated(java.util.function.Consumer<EvaluationDetails<java.lang.Object>> callback)
callback - the method to call when the event fires.