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

Link copied to clipboard
fun init(    app: Application,     builder: <ERROR CLASS> = CoreConfigurationBuilder(),     checkReportsOnApplicationStart: Boolean = true)

Initialize ACRA for a given Application.

fun init(    app: Application,     config: CoreConfiguration,     checkReportsOnApplicationStart: Boolean = true)

Initialize ACRA for a given Application. The call to this method should be placed as soon as possible in the Application.attachBaseContext method.

Link copied to clipboard
fun isACRASenderServiceProcess(): Boolean

Properties

Link copied to clipboard
var DEV_LOGGING: Boolean = false
Link copied to clipboard
val errorReporter: ErrorReporter

the current instance of ErrorReporter. not available if ACRA.init has not yet been called.

Link copied to clipboard
val isInitialised: Boolean
Link copied to clipboard
var log: ACRALog
Link copied to clipboard
val LOG_TAG: String
Link copied to clipboard
const val PREF_ALWAYS_ACCEPT: String

The key of the SharedPreference allowing the user to automatically accept sending reports.

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.

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. If both acra.disable and acra.enable are set, the value of acra.disable takes over the other.

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. Device ID collection is also dependent of the READ_PHONE_STATE permission.

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. System logs collection is also dependent of the READ_LOGS permission.

Link copied to clipboard
const val PREF_LAST_VERSION_NR: String

The version number of the application the last time ACRA was started. This is used to determine whether unsent reports should be discarded because they are old and out of date.

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.