Package com.dynatrace.android.agent.conf
Enum DataCollectionLevel
- All Implemented Interfaces:
Serializable
,Comparable<DataCollectionLevel>
,java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe agent does not capture data.The agent only captures anonymous performance data.The agent captures performance and user data. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataCollectionLevel
castJavaScriptValue
(int value) Parses the JavaScriptint
value to the properDataCollectionLevel
value.int
Returns theint
representation that is used in the JavaScript part of the appstatic DataCollectionLevel
Returns the enum constant of this type with the specified name.static DataCollectionLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OFF
The agent does not capture data. -
PERFORMANCE
The agent only captures anonymous performance data.But it does not capture data that would identify the user like
Dynatrace.identifyUser(String)
or custom value reporting. -
USER_BEHAVIOR
The agent captures performance and user data.This mode allows the agent to tag visits with the method
Dynatrace.identifyUser(String)
and it uses the same visitor id for every visit.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
castJavaScriptValue
Parses the JavaScriptint
value to the properDataCollectionLevel
value.Be aware, that invalid values are converted to
USER_BEHAVIOR
- Parameters:
value
-int
representation of aDataCollectionLevel
value- Returns:
- the parsed
DataCollectionLevel
value orUSER_BEHAVIOR
, when the value is invalid - Since:
- 8.223
-
getJavaScriptValue
public int getJavaScriptValue()Returns theint
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
-