Enum Class LDConfig.Builder.AutoEnvAttributes

java.lang.Object
java.lang.Enum<LDConfig.Builder.AutoEnvAttributes>
com.launchdarkly.sdk.android.LDConfig.Builder.AutoEnvAttributes
All Implemented Interfaces:
Serializable, Comparable<LDConfig.Builder.AutoEnvAttributes>, Constable
Enclosing class:
LDConfig.Builder

public static enum LDConfig.Builder.AutoEnvAttributes extends Enum<LDConfig.Builder.AutoEnvAttributes>
Enable / disable options for Auto Environment Attributes functionality. When enabled, the SDK will automatically provide data about the mobile environment where the application is running. This data makes it simpler to target your mobile customers based on application name or version, or on device characteristics including manufacturer, model, operating system, locale, and so on. We recommend enabling this when you configure the SDK. See TKTK for more documentation. For example, consider a “dark mode” feature being added to an app. Versions 10 through 14 contain early, incomplete versions of the feature. These versions are available to all customers, but the “dark mode” feature is only enabled for testers. With version 15, the feature is considered complete. With Auto Environment Attributes enabled, you can use targeting rules to enable "dark mode" for all customers who are using version 15 or greater, and ensure that customers on previous versions don't use the earlier, unfinished version of the feature.
  • Enum Constant Details

  • Method Details

    • values

      public static LDConfig.Builder.AutoEnvAttributes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LDConfig.Builder.AutoEnvAttributes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null