ACRA

object ACRA

Use this class to initialize the crash reporting feature using .init as soon as possible in your Application subclass Application.onCreate method. Configuration items must have been set by using org.acra.annotation.AcraCore above the declaration of your Application subclass.

Author

Kevin Gaudin

Functions

init
Link copied to clipboard
fun init(app: Application, config: CoreConfiguration, checkReportsOnApplicationStart: Boolean = true)
Initialize ACRA for a given Application.
fun init(app: Application, builder: CoreConfigurationBuilder = CoreConfigurationBuilder(), checkReportsOnApplicationStart: Boolean = true)
Initialize ACRA for a given Application.
isACRASenderServiceProcess
Link copied to clipboard
fun isACRASenderServiceProcess(): Boolean

Properties

DEV_LOGGING
Link copied to clipboard
var DEV_LOGGING: Boolean = false
errorReporter
Link copied to clipboard
var errorReporter: ErrorReporter
the current instance of ErrorReporter.
isInitialised
Link copied to clipboard
val isInitialised: Boolean
log
Link copied to clipboard
var log: ACRALog
LOG_TAG
Link copied to clipboard
val LOG_TAG: String
PREF_ALWAYS_ACCEPT
Link copied to clipboard
const val PREF_ALWAYS_ACCEPT: String
The key of the SharedPreference allowing the user to automatically accept sending reports.
PREF_DISABLE_ACRA
Link copied to clipboard
const val PREF_DISABLE_ACRA: String
The key of the application default SharedPreference where you can put a 'true' Boolean value to disable ACRA.
PREF_ENABLE_ACRA
Link copied to clipboard
const val PREF_ENABLE_ACRA: String
Alternatively, you can use this key if you prefer your users to have the checkbox ticked to enable crash reports.
PREF_ENABLE_DEVICE_ID
Link copied to clipboard
const val PREF_ENABLE_DEVICE_ID: String
The key of the SharedPreference allowing the user to disable sending his device id.
PREF_ENABLE_SYSTEM_LOGS
Link copied to clipboard
const val PREF_ENABLE_SYSTEM_LOGS: String
The key of the SharedPreference allowing the user to disable sending content of logcat/dropbox.
PREF_LAST_VERSION_NR
Link copied to clipboard
const val PREF_LAST_VERSION_NR: String
The version number of the application the last time ACRA was started.
PREF_USER_EMAIL_ADDRESS
Link copied to clipboard
const val PREF_USER_EMAIL_ADDRESS: String
The key of the SharedPreference allowing the user to always include his email address.