AgentConfiguration class

Configuration object for the AppDynamics agent.

AgentConfiguration config = AgentConfiguration(
    appKey: "ABC-DEF-GHI",
    loggingLevel: LoggingLevel.verbose);
await Instrumentation.start(config);

Note: Replace "ABC-DEF-GHI" with your actual application key.

For more specialized use cases, like using an on-premise collector, use the other, more advanced options supported by this class.

Constructors

AgentConfiguration({required String appKey, String collectorURL = "https://mobile.eum-appdynamics.com", String screenshotURL = "https://mobile.eum-appdynamics.com", LoggingLevel loggingLevel = LoggingLevel.none, bool screenshotsEnabled = true, bool crashReportingEnabled = true, CrashReportCallback? crashReportCallback, String? applicationName})

Properties

appKey String
Sets the application key used by the agent. (required)
final
applicationName String?
Sets the name of this mobile application. If not set, it will try to be inferred.
final
collectorURL String
The URL of the collector. It should be compliant with "1.4. Hierarchical URI and Relative Forms" of RFC2396.
final
crashReportCallback CrashReportCallback?
A callback function that will be triggered on a native crash. You can use this callback to have access to crash reports.
final
crashReportingEnabled bool
A bool indicating if the crash reporter should be enabled. Default is true.
final
hashCode int
The hash code for this object.
no setterinherited
loggingLevel LoggingLevel
The logging level of the agent. Default is LoggingLevel.none.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenshotsEnabled bool
Bool indicating if screenshot capture is enabled. (default = enabled).
final
screenshotURL String
The URL of the screenshot service to which the agent will upload screenshots.
final

Methods

copyWith({String? appKey, String? collectorURL, String? screenshotURL, bool? screenshotsEnabled, LoggingLevel? loggingLevel, CrashReportCallback? crashReportCallback, bool? crashReportingEnabled, String? applicationName}) AgentConfiguration
Creates a new AgentConfiguration with possibility to overwrite existing properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited