AppMetricaCrashesConfiguration class
The AppMetricaCrashesConfiguration
class provides a customizable interface for managing how the app handles different types of errors and issues. It allows you to enable or disable certain types of crash messages and customize the behavior of the reporter (the error reporting mechanism).
Properties
Manages the automatic monitoring of app crashes. |
|
Manages messages about possible unhandled crashes, such as "Out of Memory" errors. |
|
Defines the array of signals that should be ignored by the reporter. |
|
Manages "Application Not Responding" (ANR) status detection. |
|
The timeout period before |
|
Sets the frequency at which |
autoCrashTracking
var autoCrashTracking = true
Manages the automatic sending of messages about app crashes. Enabled by default.
probablyUnhandledCrashReporting
var probablyUnhandledCrashReporting = false
Manages messages about possible unhandled crashes, such as "Out of Memory" errors. Use this property to enable or disable tracking of crashes that the app might not handle. Disabled by default.
ignoredCrashSignals
var ignoredCrashSignals: [NSNumber]?
Defines the array of signals that should be ignored by the reporter. The array must contain NSNumber
objects configured using signal values as defined in sys/signal.h
. No signals are ignored by default.
applicationNotRespondingDetection
var applicationNotRespondingDetection = false
Manages "Application Not Responding" (ANR) status detection. When enabled, the reporter checks if the main thread is blocked and reports accordingly. Detection is automatically paused when the app is running in the background. Disabled by default.
applicationNotRespondingWatchdogInterval
var applicationNotRespondingWatchdogInterval: TimeInterval = 4.0
Specifies the timeout period before watchdog
reports the "Application Not Responding" (ANR) status. By default, the interval is 4 seconds. Only takes effect after activation and only if the allowsBackgroundLocationUpdates
option is enabled.
applicationNotRespondingPingInterval
var applicationNotRespondingPingInterval: TimeInterval = 0.1
Sets the frequency at which watchdog
checks for the "Application Not Responding" (ANR) status. By default, the interval is 0.1 seconds. Reducing the interval may lead to a decrease in app performance. Only takes effect after activation and only if the allowsBackgroundLocationUpdates
option is enabled.