-
- All Implemented Interfaces:
-
org.acra.collector.ApplicationStartupCollector,org.acra.collector.Collector,org.acra.plugins.Plugin
@AutoService(value = {Collector.class}) public final class ConfigurationCollector extends BaseReportFieldCollector implements ApplicationStartupCollectorInspects a Configuration object through reflection API in order to generate a human readable String with values replaced with their constants names. The Configuration.toString method was not enough as values like 0, 1, 2 or 3 aren't readable. Using reflection API allows to retrieve hidden fields and can make us hope to be compatible with all Android API levels, even those which are not published yet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumConfigurationCollector.Prefixpublic classConfigurationCollector.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Collector.Orderorder
-
Constructor Summary
Constructors Constructor Description ConfigurationCollector()
-
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 -
-
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
-
-
-
-