Enum DataCollectionLevel

  • All Implemented Interfaces:
    Serializable, Comparable<DataCollectionLevel>

    public enum DataCollectionLevel
    extends Enum<DataCollectionLevel>
    This class 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.
    • Method Detail

      • values

        public static DataCollectionLevel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DataCollectionLevel c : DataCollectionLevel.values())
            System.out.println(c);
        
        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
      • 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