CustomDataCollector

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

Collects custom data supplied by the user

Author

F43nd1r

Since

4.9.1

Constructors

CustomDataCollector
Link copied to clipboard
fun CustomDataCollector()

Functions

collect
Link copied to clipboard
open override fun collect(context: Context, config: CoreConfiguration, reportBuilder: ReportBuilder, crashReportData: CrashReportData)
Calls .
open override fun collect(reportField: ReportField, context: Context, config: CoreConfiguration, reportBuilder: ReportBuilder, target: CrashReportData)
Collect a ReportField
enabled
Link copied to clipboard
open fun enabled(config: CoreConfiguration): Boolean
controls if this instance is active
shouldCollect
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

order
Link copied to clipboard
open val order: Collector.Order