SharedPreferencesCollector

@AutoService(value = [Collector::class])
class SharedPreferencesCollector : BaseReportFieldCollector

Collects the content (key/value pairs) of SharedPreferences, from the application default preferences or any other preferences asked by the application developer.

Author

F43nd1r & Various

Constructors

Link copied to clipboard
fun SharedPreferencesCollector()

Functions

Link copied to clipboard
open override fun collect(    context: Context,     config: CoreConfiguration,     reportBuilder: ReportBuilder,     crashReportData: CrashReportData)

Calls .shouldCollect for each ReportField and then .collect if it returned true

open override fun collect(    reportField: ReportField,     context: Context,     config: CoreConfiguration,     reportBuilder: ReportBuilder,     target: CrashReportData)

Collect a ReportField

Link copied to clipboard
open fun enabled(config: CoreConfiguration): Boolean

controls if this instance is active

Link copied to clipboard
fun shouldCollect(    context: Context,     config: CoreConfiguration,     collect: ReportField,     reportBuilder: ReportBuilder): Boolean

this should check if the config contains the field, but may add additional checks like permissions etc.

Properties

Link copied to clipboard
open val order: Collector.Order