-
- All Implemented Interfaces:
-
org.acra.collector.Collector,org.acra.plugins.Plugin
@AutoService(value = {Collector.class}) public final class SharedPreferencesCollector extends BaseReportFieldCollectorCollects the content (key/value pairs) of SharedPreferences, from the application default preferences or any other preferences asked by the application developer.
-
-
Field Summary
Fields Modifier and Type Field Description private final Collector.Orderorder
-
Constructor Summary
Constructors Constructor Description SharedPreferencesCollector()
-
Method Summary
Modifier and Type Method Description Collector.OrdergetOrder()Unitcollect(ReportField reportField, Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData target)Collect a ReportField -
Methods inherited from class org.acra.collector.SharedPreferencesCollector
collect, shouldCollect -
Methods inherited from class org.acra.collector.Collector
enabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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
-
-
-
-