com.eg.agent.android.util.FeatureFlag Maven / Gradle / Ivy
package com.eg.agent.android.util;
import java.util.HashSet;
import java.util.Set;
public enum FeatureFlag
{
HttpResponseBodyCapture, CrashReporting, AnalyticsEvents, InteractionTracing, DefaultInteractions;
public static final Set enabledFeatures;
static
{
enabledFeatures = new HashSet();
enableFeature(HttpResponseBodyCapture);
enableFeature(CrashReporting);
enableFeature(AnalyticsEvents);
enableFeature(InteractionTracing);
enableFeature(DefaultInteractions);
}
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 - 2024 Weber Informatics LLC | Privacy Policy