-
- All Implemented Interfaces:
-
org.acra.plugins.Plugin
public interface ReportingAdministrator implements Plugin
Controls if reports are sent
-
-
Method Summary
Modifier and Type Method Description BooleanshouldStartCollecting(Context context, CoreConfiguration config, ReportBuilder reportBuilder)Determines if report collection should start BooleanshouldSendReport(Context context, CoreConfiguration config, CrashReportData crashReportData)Determines if a collected report should be sent UnitnotifyReportDropped(Context context, CoreConfiguration config)notifies the user about a dropped report BooleanshouldFinishActivity(Context context, CoreConfiguration config, LastActivityManager lastActivityManager)BooleanshouldKillApplication(Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData crashReportData)Determines if the application should be killed -
-
Method Detail
-
shouldStartCollecting
Boolean shouldStartCollecting(Context context, CoreConfiguration config, ReportBuilder reportBuilder)
Determines if report collection should start
- Parameters:
context- a contextconfig- the current configreportBuilder- the reportBuilder for the report about to be collected
-
shouldSendReport
Boolean shouldSendReport(Context context, CoreConfiguration config, CrashReportData crashReportData)
Determines if a collected report should be sent
- Parameters:
context- a contextconfig- the current configcrashReportData- the collected report
-
notifyReportDropped
Unit notifyReportDropped(Context context, CoreConfiguration config)
notifies the user about a dropped report
- Parameters:
context- a contextconfig- the current config
-
shouldFinishActivity
Boolean shouldFinishActivity(Context context, CoreConfiguration config, LastActivityManager lastActivityManager)
-
shouldKillApplication
Boolean shouldKillApplication(Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData crashReportData)
Determines if the application should be killed
- Parameters:
context- a contextconfig- the current configreportBuilder- the reportBuilder for the report about to be collectedcrashReportData- the collected report
-
-
-
-