parse

open override fun parse(scanRecord: ScanRecord): Map<String, String>?

Called by the scan engine to propose a scan record for recognition and analysis.

The implementation should proceed in two steps:

  • Recognition step: check if it is up to this plugin to take charge of this kind of record. See the method APlugin.mismatch.

    • If negative, just return null and the engine will call another plugin candidate.

    • If positive, proceed with the next step.

  • Processing step: Return a collection of custom properties, such as a battery level.

Return

A key-value collection if the frame was taken in charge, otherwise null.

Parameters

scanRecord

The received data.