ReportBuilder

class ReportBuilder

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

Since

4.8.0

Constructors

ReportBuilder
Link copied to clipboard
fun ReportBuilder()

Functions

build
Link copied to clipboard
fun build(reportExecutor: ReportExecutor)
Assembles and sends the crash report.
customData
Link copied to clipboard
fun customData(customData: Map<String, String>): ReportBuilder
Sets additional values to be added to org.acra.ReportField.CUSTOM_DATA.
fun customData(key: String, value: String): ReportBuilder
Sets an additional value to be added to org.acra.ReportField.CUSTOM_DATA.
endApplication
Link copied to clipboard
fun endApplication(): ReportBuilder
Ends the application after sending the crash report
exception
Link copied to clipboard
fun exception(e: Throwable?): ReportBuilder
Set the stack trace to be reported
getCustomData
Link copied to clipboard
fun getCustomData(): Map<String, String>
message
Link copied to clipboard
fun message(msg: String?): ReportBuilder
Set the error message to be reported.
sendSilently
Link copied to clipboard
fun sendSilently(): ReportBuilder
Forces the report to be sent silently, ignoring all interactions
uncaughtExceptionThread
Link copied to clipboard
fun uncaughtExceptionThread(thread: Thread?): ReportBuilder
Sets the Thread on which an uncaught Exception occurred.

Properties

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