ReportBuilder

class ReportBuilder

Fluent API used to assemble the different options used for a crash report.

Since

4.8.0

Constructors

Link copied to clipboard
fun ReportBuilder()

Functions

Link copied to clipboard
fun build(reportExecutor: ReportExecutor)

Assembles and sends the crash report.

Link copied to clipboard
fun customData(customData: Map<String, String>): ReportBuilder

Sets additional values to be added to org.acra.ReportField.CUSTOM_DATA. Values specified here take precedence over globally specified custom data.

fun customData(key: String, value: String): ReportBuilder

Sets an additional value to be added to org.acra.ReportField.CUSTOM_DATA. The value specified here takes precedence over globally specified custom data.

Link copied to clipboard
fun endApplication(): ReportBuilder

Ends the application after sending the crash report

Link copied to clipboard
fun exception(e: Throwable?): ReportBuilder

Set the stack trace to be reported

Link copied to clipboard
fun getCustomData(): Map<String, String>
Link copied to clipboard
fun message(msg: String?): ReportBuilder

Set the error message to be reported.

Link copied to clipboard
fun sendSilently(): ReportBuilder

Forces the report to be sent silently, ignoring all interactions

Link copied to clipboard
fun uncaughtExceptionThread(thread: Thread?): ReportBuilder

Sets the Thread on which an uncaught Exception occurred.

Properties

Link copied to clipboard
val exception: Throwable? = null
Link copied to clipboard
val isEndApplication: Boolean = false
Link copied to clipboard
val isSendSilently: Boolean = false
Link copied to clipboard
val message: String? = null
Link copied to clipboard
val uncaughtExceptionThread: Thread? = null