public interface ReportSender
HttpSender
to send reports to your custom server-side report
collection script even if you expect (or prefer) specific names for each
report field as HttpSender.send(Context, CrashReportData)
can take a Map<ReportField, String>
as an input to convert each field name to
your preferred POST parameter name.Modifier and Type | Method and Description |
---|---|
void |
send(android.content.Context context,
CrashReportData errorContent)
Send crash report data.
|
void send(@NonNull android.content.Context context, @NonNull CrashReportData errorContent) throws ReportSenderException
SenderService
.context
- Android Context in which to send the crash report.errorContent
- Stores key/value pairs for each report field.
A report field is identified by a ReportField
enum value.ReportSenderException
- If anything goes fatally wrong during the handling of crash
data, you can (should) throw a ReportSenderException
with a custom message.