provideExtras

abstract fun provideExtras(btDevice: BluetoothDevice): Map<String, String>?

Called by the scan engine during the frame processing of standard processors to give the plugin the opportunity to enrich the analysis with additional custom fields.

The implementation should proceed in two steps:

  • Recognition step: check if this device is known of this plugin. Refer to the method explore.

    • 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. An empty object is supported but has little value, except to inhibit the call to the next plugin.

Return

A key-value collection if the device was known, otherwise null.

Parameters

btDevice

The emitter of the frame.