ErrorReporter

interface ErrorReporter

This interface contains methods used to interact with ACRA after it has been initialized

Author

F43nd1r

Since

29.12.2017

Inheritors

Properties

Link copied to clipboard

Access point to manual report scheduling

Functions

Link copied to clipboard
abstract fun clearCustomData()

Removes all key/value pairs from your reports custom data field.

Link copied to clipboard
abstract fun getCustomData(key: String): String?

Gets the current value for a key in your reports custom data field.

Link copied to clipboard
abstract fun handleException(e: Throwable?)

Send a normal report for the given exception.

abstract fun handleException(e: Throwable?, endApplication: Boolean)

Send a normal report for the given exception

Link copied to clipboard

Send a silent report for the given exception

Link copied to clipboard
abstract fun putCustomData(key: String, value: String): String?

Use this method to provide the ErrorReporter with data of your running application. You should call this at several key places in your code the same way as you would output important debug data in a log file. Only the latest value is kept for each key (no history of the values is sent in the report).

Link copied to clipboard
abstract fun removeCustomData(key: String): String?

Removes a key/value pair from your reports custom data field.

Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)

Enable or disable this ErrorReporter. By default it is enabled.