Enum DataCollectionLevel

java.lang.Object
java.lang.Enum<DataCollectionLevel>
com.dynatrace.android.agent.conf.DataCollectionLevel
All Implemented Interfaces:
Serializable, Comparable<DataCollectionLevel>, java.lang.constant.Constable

public enum DataCollectionLevel extends Enum<DataCollectionLevel>
This enum represents the different privacy levels that the user can select.

The selected data collection level has no influence on crash reporting, because crash reporting is configured by a different setting.

  • Enum Constant Details

  • Method Details

    • values

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

      public static DataCollectionLevel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • castJavaScriptValue

      public static DataCollectionLevel castJavaScriptValue(int value)
      Parses the JavaScript int value to the proper DataCollectionLevel value.

      Be aware, that invalid values are converted to USER_BEHAVIOR

      Parameters:
      value - int representation of a DataCollectionLevel value
      Returns:
      the parsed DataCollectionLevel value or USER_BEHAVIOR, when the value is invalid
      Since:
      8.223
    • getJavaScriptValue

      public int getJavaScriptValue()
      Returns the int representation that is used in the JavaScript part of the app
      Returns:
      int representation that is used in the JavaScript part of the app
      Since:
      8.223