Crash Reporting Callbacks
Covered here is how to set up the callbacks that fire before every crash report is sent so that a specific block of code is executed in your Android app.
Before Sending a Report
Luciq.onReportSubmitHandler{report -> }Luciq.onReportSubmitHandler(new Report.OnReportCreatedListener() {
@Override
public void onReportCreated(Report report) {
}
});Exporting Crash Metadata
CrashReporting.setOnCrashSentCallback { metadata ->
Log.d("Luciq", "Crash sent error=${metadata.errorType} attrs=${metadata.userAttributes}")
}CrashReporting.setOnCrashSentCallback(new OnCrashSentCallback() {
@Override
public void onCrashSent(@NotNull CrashMetadata crashMetaData) {
}
});Last updated