Class VariantConfiguration
- All Implemented Interfaces:
com.dynatrace.tools.android.api.Configuration,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVariantConfiguration(String name, org.gradle.internal.reflect.Instantiator instantiator) Creates new aVariantConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoidagentBehavior(Action<? super AgentBehaviorOptions> action) Specifies options that fine-tune the agent behavior.voidautoStart(Action<? super StartOptions> action) Specifies options for the auto start injection feature.voidbehavioralEvents(Action<? super BehavioralEventsOptions> action) Specifies options for configuring behavioral events.voidcrashReporting(boolean crashReporting) Specifies if the crash reporting feature is enabledvoiddebug(Action<? super DebugOptions> action) Specifies additional configuration properties that should only be used in special cases like troubleshooting.voidenabled(boolean enabled) Specifies if the variant should be instrumented.booleanvoidexclude(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 thisVariantConfigurationan the Android build variants.Specifies options for the web request monitoring feature.inthashCode()voidhybridWebView(Action<? super HybridOptions> action) Specifies options for hybrid web view apps.booleanSpecifies if the crash reporting feature is enabledbooleanSpecifies if the variant should be instrumentedbooleanSpecifies if the location monitoring feature is enabledbooleanSpecifies if the user has to opt-in for monitoring.voidlifecycle(Action<? super LifecycleOptions> action) Specifies options for the lifecycle monitoring feature.voidlocationMonitoring(boolean locationMonitoring) Specifies if the location monitoring feature is enabledvoidsessionReplay(Action<? super SessionReplayOptions> action) Specifies options for using session replay.toString()voiduserActions(Action<? super UserActionOptions> action) Specifies options for the user action monitoring feature.voiduserOptIn(boolean userOptIn) Specifies if the user has to opt-in for monitoring.voidvariantFilter(String variantFilter) Specifies a regex that will be used to determine the affiliation between thisVariantConfigurationan the Android build variants.voidwebRequests(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 thisVariantConfigurationan the Android build variants.If no value is defined, this
VariantConfigurationwill 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:
isEnabledin 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 thisVariantConfigurationan the Android build variants.If no value is defined, this
VariantConfigurationwill 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:
getAutoStartin 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:
getUserActionsin 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:
getWebRequestsin 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:
getHybridWebViewin 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:
isCrashReportingin 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:
getLifecyclein 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:
isLocationMonitoringin 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:
isUserOptInin 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:
getExcludein 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:
getAgentBehaviorin 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:
getBehavioralEventsin 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:
getDebugin 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:
getSessionReplayin interfacecom.dynatrace.tools.android.api.Configuration- Returns:
- options for configuring session replay
- Since:
- 8.237
-
hashCode
public int hashCode() -
equals
-
toString
-