@AutoService(value=Collector.class) public final class DropBoxCollector extends Object
DropBoxManager
. A set of DropBox tags have been identified in the Android source code.
We collect data associated to these tags with hope that some of them could help debugging applications.
Application specific tags can be provided by the app dev to track his own usage of the DropBoxManager.Collector.Order
Constructor and Description |
---|
DropBoxCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(Context context,
CoreConfiguration config,
ReportBuilder reportBuilder,
CrashReportData target)
Calls
shouldCollect(Context, CoreConfiguration, ReportField, ReportBuilder) for each ReportField
and then collect(ReportField, Context, CoreConfiguration, ReportBuilder, CrashReportData) if it returned true |
Collector.Order |
getOrder() |
@NonNull public Collector.Order getOrder()
public final void collect(@NonNull Context context, @NonNull CoreConfiguration config, @NonNull ReportBuilder reportBuilder, @NonNull CrashReportData target) throws CollectorException
shouldCollect(Context, CoreConfiguration, ReportField, ReportBuilder)
for each ReportField
and then collect(ReportField, Context, CoreConfiguration, ReportBuilder, CrashReportData)
if it returned truecollect
in interface Collector
context
- a contextconfig
- current ConfigurationreportBuilder
- current ReportBuildertarget
- put results hereCollectorException
- if collection failed