AcraCore

annotation class AcraCore

Main ACRA configuration

Author

F43nd1r

Functions

additionalDropBoxTags
Link copied to clipboard
abstract fun additionalDropBoxTags(): Array<String>
Custom tags to be included in DropBox event collection
additionalSharedPreferences
Link copied to clipboard
abstract fun additionalSharedPreferences(): Array<String>
Add here your android.content.SharedPreferences identifier Strings if you use others than your application's default.
alsoReportToAndroidFramework
Link copied to clipboard
abstract fun alsoReportToAndroidFramework(): Boolean
Set this to true if you prefer displaying the native force close dialog after ACRA is done.Recommended: Keep this set to false if using interactions with user input.
annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
applicationLogFile
Link copied to clipboard
abstract fun applicationLogFile(): String
To use in combination with APPLICATION_LOG to set the path/name of your application log file.
applicationLogFileDir
Link copied to clipboard
abstract fun applicationLogFileDir(): Directory
To use in combination with APPLICATION_LOG to set the root for the path provided in applicationLogFile
applicationLogFileLines
Link copied to clipboard
abstract fun applicationLogFileLines(): Int
To use in combination with APPLICATION_LOG to set the number of latest lines of your application log file to be collected.Default value is 100.
attachmentUriProvider
Link copied to clipboard
abstract fun attachmentUriProvider(): Class<out AttachmentUriProvider>
Allows attachmentUris configuration at runtime instead of compile time.
attachmentUris
Link copied to clipboard
abstract fun attachmentUris(): Array<String>
Allows to attach files to crash reports.
buildConfigClass
Link copied to clipboard
abstract fun buildConfigClass(): Class<out Any>
The default value will be a BuildConfig class residing in the same package as the Application class.You only have to set this option if your BuildConfig class is obfuscated.
abstract fun deleteUnapprovedReportsOnApplicationStart(): Boolean
Controls whether unapproved reports are deleted on application start or not.
dropboxCollectionMinutes
Link copied to clipboard
abstract fun dropboxCollectionMinutes(): Int
DropBox event collection will look back this many minutes
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
excludeMatchingSettingsKeys
Link copied to clipboard
abstract fun excludeMatchingSettingsKeys(): Array<String>
Provide here regex patterns to be evaluated on each android.provider.Settings.System, android.provider.Settings.Secure and android.provider.Settings.Global key to exclude KV pairs from being collected.This allows you to exclude sensitive data from being collected.
excludeMatchingSharedPreferencesKeys
Link copied to clipboard
abstract fun excludeMatchingSharedPreferencesKeys(): Array<String>
Provide here regex patterns to be evaluated on each android.content.SharedPreferences key to exclude KV pairs from the collected SharedPreferences.This allows you to exclude sensitive user data like passwords from being collected.
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
includeDropBoxSystemTags
Link copied to clipboard
abstract fun includeDropBoxSystemTags(): Boolean
If enabled, DropBox events collection will include system tags:
  • system_app_anr
  • system_app_wtf
  • system_app_crash
  • system_server_anr
  • system_server_wtf
  • system_server_crash
  • BATTERY_DISCHARGE_INFO
  • SYSTEM_RECOVERY_LOG
  • SYSTEM_BOOT
  • SYSTEM_LAST_KMSG
  • APANIC_CONSOLE
  • APANIC_THREADS
  • SYSTEM_RESTART
  • SYSTEM_TOMBSTONE
  • data_app_strictmode
logcatArguments
Link copied to clipboard
abstract fun logcatArguments(): Array<String>
Arguments to be passed to the logcat command line.
logcatFilterByPid
Link copied to clipboard
abstract fun logcatFilterByPid(): Boolean
Set this to true if you want to include only logcat lines related to your Application process.
logcatReadNonBlocking
Link copied to clipboard
abstract fun logcatReadNonBlocking(): Boolean
Set this to true if you want to read logcat lines in a non blocking way for your thread.
parallel
Link copied to clipboard
abstract fun parallel(): Boolean
Allow parallel collection.
reportContent
Link copied to clipboard
abstract fun reportContent(): Array<ReportField>
Redefines the list of ReportFields collected and sent in your reports.
reportFormat
Link copied to clipboard
abstract fun reportFormat(): StringFormat
Format in which the report should be sent
resReportSendFailureToast
Link copied to clipboard
abstract fun resReportSendFailureToast(): Int
Toast shown when report sending fails
resReportSendSuccessToast
Link copied to clipboard
abstract fun resReportSendSuccessToast(): Int
Toast shown when a report is sent successfully
retryPolicyClass
Link copied to clipboard
abstract fun retryPolicyClass(): Class<out RetryPolicy>
Implement a custom RetryPolicy to decide if a failed report should be resent or not.
sendReportsInDevMode
Link copied to clipboard
abstract fun sendReportsInDevMode(): Boolean
Set this to false if you want to disable sending reports in development mode.
sharedPreferencesName
Link copied to clipboard
abstract fun sharedPreferencesName(): String
Name of the SharedPreferences that will host ACRA settings which you can make accessible to your users through a preferences screen:Default is to use the application default SharedPreferences, as retrieved with getDefaultSharedPreferences
stopServicesOnCrash
Link copied to clipboard
abstract fun stopServicesOnCrash(): Boolean
If you have services which might crash on startup android will try to restart them indefinitely.
toString
Link copied to clipboard
abstract fun toString(): String