@AutoService(value=ReportingAdministrator.class) public class LimitingReportAdministrator extends HasConfigPlugin implements ReportingAdministrator
Constructor and Description |
---|
LimitingReportAdministrator() |
Modifier and Type | Method and Description |
---|---|
void |
notifyReportDropped(Context context,
CoreConfiguration config)
notifies the user about a dropped report
|
boolean |
shouldSendReport(Context context,
CoreConfiguration config,
CrashReportData crashReportData)
Determines if a collected report should be sent
|
boolean |
shouldStartCollecting(Context context,
CoreConfiguration config,
ReportBuilder reportBuilder)
Determines if report collection should start
|
enabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldFinishActivity, shouldKillApplication
public boolean shouldStartCollecting(@NonNull Context context, @NonNull CoreConfiguration config, @NonNull ReportBuilder reportBuilder)
ReportingAdministrator
shouldStartCollecting
in interface ReportingAdministrator
context
- a contextconfig
- the current configreportBuilder
- the reportBuilder for the report about to be collectedpublic boolean shouldSendReport(@NonNull Context context, @NonNull CoreConfiguration config, @NonNull CrashReportData crashReportData)
ReportingAdministrator
shouldSendReport
in interface ReportingAdministrator
context
- a contextconfig
- the current configcrashReportData
- the collected reportpublic void notifyReportDropped(@NonNull Context context, @NonNull CoreConfiguration config)
ReportingAdministrator
notifyReportDropped
in interface ReportingAdministrator
context
- a contextconfig
- the current config