-
- All Implemented Interfaces:
-
org.acra.collector.ApplicationStartupCollector,org.acra.collector.Collector,org.acra.plugins.Plugin
@AutoService(value = {Collector.class}) public final class TimeCollector extends BaseReportFieldCollector implements ApplicationStartupCollectorcollects time information
-
-
Field Summary
Fields Modifier and Type Field Description private final Collector.Orderorder
-
Constructor Summary
Constructors Constructor Description TimeCollector()
-
Method Summary
Modifier and Type Method Description Collector.OrdergetOrder()Unitcollect(ReportField reportField, Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData target)Collect a ReportField UnitcollectApplicationStartUp(Context context, CoreConfiguration config)collect startup data BooleanshouldCollect(Context context, CoreConfiguration config, ReportField collect, ReportBuilder reportBuilder)this should check if the config contains the field, but may add additional checks like permissions etc. -
-
Method Detail
-
getOrder
Collector.Order getOrder()
-
collect
Unit collect(ReportField reportField, Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData target)
Collect a ReportField
- Parameters:
reportField- the reportField to collectcontext- a contextconfig- current ConfigurationreportBuilder- current ReportBuildertarget- put results here
-
collectApplicationStartUp
Unit collectApplicationStartUp(Context context, CoreConfiguration config)
collect startup data
- Parameters:
context- a contextconfig- the config
-
shouldCollect
Boolean shouldCollect(Context context, CoreConfiguration config, ReportField collect, ReportBuilder reportBuilder)
this should check if the config contains the field, but may add additional checks like permissions etc.
- Parameters:
context- a contextconfig- current configurationcollect- the field to collectreportBuilder- the current reportBuilder
-
-
-
-