AgentConfiguration class Null safety
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})
Properties
- appKey → String
-
Sets the application key used by the agent. (required)
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. [...]
read-only, inherited
- loggingLevel → LoggingLevel
-
The logging level of the agent. Default is LoggingLevel.none. [...]
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- 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}) → AgentConfiguration - Creates a new AgentConfiguration with possibility to overwrite existing properties. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited