Class VariantConfiguration
- All Implemented Interfaces:
com.dynatrace.tools.android.api.Configuration
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionVariantConfiguration
(String name, org.gradle.internal.reflect.Instantiator instantiator) Creates new aVariantConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
agentBehavior
(Action<? super AgentBehaviorOptions> action) Specifies options that fine-tune the agent behavior.void
autoStart
(Action<? super StartOptions> action) Specifies options for the auto start injection feature.void
behavioralEvents
(Action<? super BehavioralEventsOptions> action) Specifies options for configuring behavioral events.void
crashReporting
(boolean crashReporting) Specifies if the crash reporting feature is enabledvoid
debug
(Action<? super DebugOptions> action) Specifies additional configuration properties that should only be used in special cases like troubleshooting.void
enabled
(boolean enabled) Specifies if the variant should be instrumented.boolean
void
exclude
(Action<? super ExcludeOptions> action) Specifies options for excluding classes and methods from instrumentation.Specifies options that fine-tune the agent behavior.Specifies options for the auto start injection feature.Specifies options that for configuring behavioral events.getDebug()
Specifies optionsSpecifies options for excluding classes and methods from instrumentation.Specifies options for hybrid web view apps.Specifies options for the lifecycle monitoring feature.getName()
Name of the variant-specific configuration.Specifies options for using session replay.Specifies options for the user action monitoring feature.Specifies a regex that will be used to determine the affiliation between thisVariantConfiguration
an the Android build variants.Specifies options for the web request monitoring feature.int
hashCode()
void
hybridWebView
(Action<? super HybridOptions> action) Specifies options for hybrid web view apps.boolean
Specifies if the crash reporting feature is enabledboolean
Specifies if the variant should be instrumentedboolean
Specifies if the location monitoring feature is enabledboolean
Specifies if the user has to opt-in for monitoring.void
lifecycle
(Action<? super LifecycleOptions> action) Specifies options for the lifecycle monitoring feature.void
locationMonitoring
(boolean locationMonitoring) Specifies if the location monitoring feature is enabledvoid
sessionReplay
(Action<? super SessionReplayOptions> action) Specifies options for using session replay.toString()
void
userActions
(Action<? super UserActionOptions> action) Specifies options for the user action monitoring feature.void
userOptIn
(boolean userOptIn) Specifies if the user has to opt-in for monitoring.void
variantFilter
(String variantFilter) Specifies a regex that will be used to determine the affiliation between thisVariantConfiguration
an the Android build variants.void
webRequests
(Action<? super WebRequestOptions> action) Specifies options for the web request monitoring feature.
-
Constructor Details
-
VariantConfiguration
Creates new aVariantConfiguration
.- Parameters:
name
- name of the configurationinstantiator
- instantiator that can create instances from classes
-
-
Method Details
-
getName
Name of the variant-specific configuration.- Returns:
- name of the variant-specific configuration
-
enabled
public void enabled(boolean enabled) Specifies if the variant should be instrumented.The default value is true.
- Parameters:
enabled
- true, if the variant should be instrumented
-
variantFilter
Specifies a regex that will be used to determine the affiliation between thisVariantConfiguration
an the Android build variants.If no value is defined, this
VariantConfiguration
will match all Android build variants.- Parameters:
variantFilter
- regex representing the variant filter
-
autoStart
Specifies options for the auto start injection feature.For more information about the properties you can configure in this block, see
StartOptions
.- Parameters:
action
- action object to specific theStartOptions
-
userActions
Specifies options for the user action monitoring feature.For more information about the properties you can configure in this block, see
UserActionOptions
.- Parameters:
action
- action object to specific theUserActionOptions
-
webRequests
Specifies options for the web request monitoring feature.For more information about the properties you can configure in this block, see
WebRequestOptions
.- Parameters:
action
- action object to specific theWebRequestOptions
-
hybridWebView
Specifies options for hybrid web view apps.For more information about the properties you can configure in this block, see
HybridOptions
.- Parameters:
action
- action object to specific theHybridOptions
-
crashReporting
public void crashReporting(boolean crashReporting) Specifies if the crash reporting feature is enabledThe default value is true.
- Parameters:
crashReporting
- true, if the crash reporting feature is enabled
-
lifecycle
Specifies options for the lifecycle monitoring feature.For more information about the properties you can configure in this block, see
LifecycleOptions
.- Parameters:
action
- action object to specific theLifecycleOptions
-
locationMonitoring
public void locationMonitoring(boolean locationMonitoring) Specifies if the location monitoring feature is enabledThe default value is false.
- Parameters:
locationMonitoring
- true, if the location monitoring feature is enabled
-
userOptIn
public void userOptIn(boolean userOptIn) Specifies if the user has to opt-in for monitoring. The privacy settings must be configured via OneAgent SDK.The default value is false.
- Parameters:
userOptIn
- true, if the user has to opt-in for monitoring
-
exclude
Specifies options for excluding classes and methods from instrumentation.For more information about the properties you can configure in this block, see
ExcludeOptions
.- Parameters:
action
- action object to specify theExcludeOptions
-
agentBehavior
Specifies options that fine-tune the agent behavior.For more information about the properties you can configure in this block, see
AgentBehaviorOptions
.- Parameters:
action
- action object to specify theAgentBehaviorOptions
- Since:
- 8.203
-
behavioralEvents
Specifies options for configuring behavioral events.For more information about the properties you can configure in this block, see
BehavioralEventsOptions
.- Parameters:
action
- action object to specify theBehavioralEventsOptions
- Since:
- 8.231
-
debug
Specifies additional configuration properties that should only be used in special cases like troubleshooting.For more information about the properties you can configure in this block, see
DebugOptions
.- Parameters:
action
- action object to specific theDebugOptions
-
sessionReplay
Specifies options for using session replay.For more information about the properties you can configure in this block, see
SessionReplayOptions
. How to configure Session Replay.- Parameters:
action
- action object to specific theSessionReplayOptions
- Since:
- 8.237
-
isEnabled
public boolean isEnabled()Specifies if the variant should be instrumentedThe default value is true.
- Specified by:
isEnabled
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- true, if the variant should be instrumented
-
getVariantFilter
Specifies a regex that will be used to determine the affiliation between thisVariantConfiguration
an the Android build variants.If no value is defined, this
VariantConfiguration
will match all Android build variants.- Returns:
- regex representing the variant filter
-
getAutoStart
Specifies options for the auto start injection feature.For more information about the properties you can configure in this block, see
StartOptions
.- Specified by:
getAutoStart
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for the auto start injection feature
-
getUserActions
Specifies options for the user action monitoring feature.For more information about the properties you can configure in this block, see
UserActionOptions
.- Specified by:
getUserActions
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for the user action monitoring feature
-
getWebRequests
Specifies options for the web request monitoring feature.For more information about the properties you can configure in this block, see
WebRequestOptions
.- Specified by:
getWebRequests
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for the web request monitoring feature
-
getHybridWebView
Specifies options for hybrid web view apps.For more information about the properties you can configure in this block, see
HybridOptions
.- Specified by:
getHybridWebView
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for hybrid web view apps
-
isCrashReporting
public boolean isCrashReporting()Specifies if the crash reporting feature is enabledThe default value is true.
- Specified by:
isCrashReporting
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- true, if the crash reporting feature is enabled
-
getLifecycle
Specifies options for the lifecycle monitoring feature.For more information about the properties you can configure in this block, see
LifecycleOptions
.- Specified by:
getLifecycle
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for the lifecycle monitoring feature
-
isLocationMonitoring
public boolean isLocationMonitoring()Specifies if the location monitoring feature is enabledThe default value is false.
- Specified by:
isLocationMonitoring
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- true, if the location monitoring feature is enabled
-
isUserOptIn
public boolean isUserOptIn()Specifies if the user has to opt-in for monitoring. The privacy settings must be configured via OneAgent SDK.The default value is false.
- Specified by:
isUserOptIn
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- true, if the user has to opt-in for monitoring
-
getExclude
Specifies options for excluding classes and methods from instrumentation.For more information about the properties you can configure in this block, see
ExcludeOptions
.- Specified by:
getExclude
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for excluding classes and methods from instrumentation
-
getAgentBehavior
Specifies options that fine-tune the agent behavior.For more information about the properties you can configure in this block, see
AgentBehaviorOptions
.- Specified by:
getAgentBehavior
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for tuning specific agent behavior
- Since:
- 8.203
-
getBehavioralEvents
Specifies options that for configuring behavioral events.For more information about the properties you can configure in this block, see
BehavioralEventsOptions
.- Specified by:
getBehavioralEvents
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for configuring behavioral events
- Since:
- 8.231
-
getDebug
Specifies optionsFor more information about the properties you can configure in this block, see
DebugOptions
.- Specified by:
getDebug
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options
-
getSessionReplay
Specifies options for using session replay.For more information about the properties you can configure in this block, see
SessionReplayOptions
. How to configure Session Replay.- Specified by:
getSessionReplay
in interfacecom.dynatrace.tools.android.api.Configuration
- Returns:
- options for configuring session replay
- Since:
- 8.237
-
hashCode
public int hashCode() -
equals
-
toString
-