All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eg.agent.android.util.FeatureFlag Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
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