|
static void | InitWithConfiguration (IAgentConfiguration iConfig) |
| Initialize agent with an AgentConfiguration. More...
|
|
static void | ChangeAppKey (string appKey) |
| Changes the app key. More...
|
|
static ICallTracker | BeginCall (string className, string methodName, params object[] arguments) |
| Reports that an info point has started. More...
|
|
static void | EndCall (ICallTracker call, object returnValue=null) |
| Reports that an info point has ended. More...
|
|
static void | EndCall (ICallTracker call, Exception e) |
| Reports that an info point has ended with an Exception More...
|
|
static void | StartTimerWithName (string name) |
| Starts a global timer with the given name. More...
|
|
static void | StopTimerWithName (string name) |
| Stops a global timer with the given name and reports it. More...
|
|
static void | ReportMetricWithName (string name, long value) |
| Reports metric value for the given name. More...
|
|
static void | LeaveBreadcrumb (string breadcrumb, BreadcrumbVisibility mode=BreadcrumbVisibility.CrashesOnly) |
| Leaves a breadcrumb that will appear in a crash report and, optionally, session. More...
|
|
static void | SetUserData (string key, string value) |
| Sets a key-value pair identifier that will be included in all snapshots. More...
|
|
static void | RemoveUserData (string key) |
| Removes the user data. More...
|
|
static void | SetUserDataLong (string key, long value) |
| Sets a key-value pair identifier that will be included in all snapshots. More...
|
|
static void | RemoveUserDataLong (string key) |
| Removes the user data. More...
|
|
static void | SetUserDataBoolean (string key, bool value) |
| Sets a key-value pair identifier that will be included in all snapshots. More...
|
|
static void | RemoveUserDataBoolean (string key) |
| Removes the user data. More...
|
|
static void | SetUserDataDouble (string key, double value) |
| Sets a key-value pair identifier that will be included in all snapshots. More...
|
|
static void | RemoveUserDataDouble (string key) |
| Removes the user data. More...
|
|
static void | SetUserDataDate (string key, DateTime value) |
| Sets a key-value pair identifier that will be included in all snapshots. More...
|
|
static void | RemoveUserDataDate (string key) |
| Removes the user data. More...
|
|
static void | ReportError (Exception exception, ErrorSeverityLevel severity) |
| Reports an error that was caught. More...
|
|
static void | StartNextSession () |
| Starts next session and ends the current session. More...
|
|
static ISessionFrame | StartSessionFrame (string sessionFrameName) |
| Starts a Session Frame. More...
|
|
static void | ShutdownAgent () |
| Stops the sending of beacons to the collector More...
|
|
static void | RestartAgent () |
| Restarts the sending of beacons to the collector. More...
|
|
static void | BlockScreenshots () |
| Blocks screenshot capture if it is currently unblocked. Otherwise, this has no effect.. More...
|
|
static void | UnblockScreenshots () |
| Unblocks screenshot capture if it is currently blocked. Otherwise, this has no effect. More...
|
|
static void | TakeScreenshot () |
| Asynchronously takes a screenshot of the current Activity's window. More...
|
|
Interact with the AppDynamics Agent running in your application.
This class provides a number of methods to interact with the AppDynamics Agent including:
-
Initializing the agent with the right AgentConfiguration.
-
Reporting custom metrics/timers.
-
Reporting info points manually.
-
Creating HTTP Trackers.
About on-premise deployments: Some of the features described here require a minimum EUM server deployment version. Please refer to the following page for more information: https://docs.appdynamics.com/display/latest/Mobile+Agent+Version+and+Deployment+Support+Matrix
static void AppDynamics.Agent.Instrumentation.BlockScreenshots |
( |
| ) |
|
|
inlinestatic |
Blocks screenshot capture if it is currently unblocked. Otherwise, this has no effect..
If screenshots are disabled through AgentConfiguration.ScreenshotsEnabled or through the controller UI, this method has no effect.
WARNING: This will block capture for the entire app.
The user is expected to manage any possible nesting issues that may occur if blocking and unblocking occur in different code paths.
See unblockScreenshots
static void AppDynamics.Agent.Instrumentation.RestartAgent |
( |
| ) |
|
|
inlinestatic |
Restarts the sending of beacons to the collector.
Data will start flowing from the agent immediately.No change will occur if the shutdownAgent call and not been made.
summary> The current screenshotBlocked state. See blockScreenshots()
By default, the Xamarin agent has the screenshots unblocked. If screenshots are disabled through AgentConfiguration.ScreenshotsEnabled or through the controller UI, this flag will have no effect. The user is expected to manage any possible nesting issues that may occur if blocking and unblocking occur in different code paths.
Default false
.
static void AppDynamics.Agent.Instrumentation.StartNextSession |
( |
| ) |
|
|
inlinestatic |
Starts next session and ends the current session.
The session started using this API may be ended by inactivity timeout set in the Application Configuration, before the next call to this API.
This API makes some practical assumptions about session lengths among end users. Excessive use of this API will cause sessions to be throttled (as an indication, more than 10 calls per minute per agent is considered excessive and may, depending on other factors, cause throttling)
static void AppDynamics.Agent.Instrumentation.TakeScreenshot |
( |
| ) |
|
|
inlinestatic |
Asynchronously takes a screenshot of the current Activity's window.
If screenshots are disabled through AgentConfiguration.ScreenshotsEnabled or through the controller UI, this method does nothing.
This will capture everything, including personal information, so you must be cautious of when to take the screenshot.
These screenshots will show up in the Sessions screen for this user.
The screenshots are taken on a background thread, compressed, and only non-redundant parts are uploaded, so it is safe to take many of these without impacting performance of your application.
static void AppDynamics.Agent.Instrumentation.UnblockScreenshots |
( |
| ) |
|
|
inlinestatic |
Unblocks screenshot capture if it is currently blocked. Otherwise, this has no effect.
If screenshots are disabled through AgentConfiguration.ScreenshotsEnabled or through the controller UI, this method has no effect.
If screenshots are set to manual mode in the controller UI, this method unblocks for manual mode only.
WARNING: This will unblock capture for the entire app.
The user is expected to manage any possible nesting issues that may occur if blocking and unblocking occur in different code paths.
See blockScreenshots