Error Reporter Impl
class ErrorReporterImpl(context: Application, config: CoreConfiguration, enabled: Boolean, supportedAndroidVersion: Boolean, checkReportsOnApplicationStart: Boolean) : Thread.UncaughtExceptionHandler, SharedPreferences.OnSharedPreferenceChangeListener, ErrorReporter
Content copied to clipboard
The ErrorReporter is a Singleton object in charge of collecting crash context data and sending crash reports. It registers itself as the Application's Thread default Thread.UncaughtExceptionHandler.
When a crash occurs, it collects data of the crash context (device, system, stack trace...) and writes a report file in the application private directory, which may then be sent.
Parameters
context
Context for the application in which ACRA is running.
config
AcraConfig to use when reporting and sending errors.
enabled
Whether this ErrorReporter should capture Exceptions and forward their reports.
supportedAndroidVersion
the minimal supported version
checkReportsOnApplicationStart
If reports should be checked on startup
Constructors
ErrorReporterImpl
Link copied to clipboard
fun ErrorReporterImpl(context: Application, config: CoreConfiguration, enabled: Boolean, supportedAndroidVersion: Boolean, checkReportsOnApplicationStart: Boolean)
Content copied to clipboard
Context for the application in which ACRA is running.
Functions
clearCustomData
Link copied to clipboard
open override fun clearCustomData()
Content copied to clipboard
getCustomData
Link copied to clipboard
handleException
Link copied to clipboard
open override fun handleException(e: Throwable?, endApplication: Boolean)
Content copied to clipboard
handleSilentException
Link copied to clipboard
onSharedPreferenceChanged
Link copied to clipboard
open override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String?)
Content copied to clipboard
putCustomData
Link copied to clipboard
removeCustomData
Link copied to clipboard
setEnabled
Link copied to clipboard
uncaughtException
Link copied to clipboard
unregister
Link copied to clipboard
fun unregister()
Content copied to clipboard
Properties
reportScheduler
Link copied to clipboard