com.eg.agent.android.FeatureFlag Maven / Gradle / Ivy
package com.eg.agent.android;
import java.util.Set;
public enum FeatureFlag {
HttpResponseBodyCapture,
CrashReporting,
AnalyticsEvents,
InteractionTracing,
DefaultInteractions;
static {
enabledFeatures = new java.util.HashSet();
enableFeature(HttpResponseBodyCapture);
enableFeature(CrashReporting);
enableFeature(AnalyticsEvents);
enableFeature(InteractionTracing);
enableFeature(DefaultInteractions);
}
public static final Set enabledFeatures;
public static void enableFeature(FeatureFlag featureFlag) {
enabledFeatures.add(featureFlag);
}
public static void disableFeature(FeatureFlag featureFlag) {
enabledFeatures.remove(featureFlag);
}
public static boolean featureEnabled(FeatureFlag featureFlag) {
return enabledFeatures.contains(featureFlag);
}
private FeatureFlag() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy