dismissLostDevices

abstract fun dismissLostDevices(scanContext: ScanContext, actionTimeMillis: Long)

Called by the scan engine at regular intervals to allow the plugin to take action about possible devices not seen since too long.

Refer to the method ADevicePlugin.removeLostDevices as a useful help if you want to design your own implementation.

The default implementation is to forget devices not seen since fr.maxcom.beacon.configuration.LossSettings.timeoutMillis.

Parameters

scanContext

The scan context is a primary source to get configuration parameters, if needed, to introduce in a timeout computing.

actionTimeMillis

The instant when the cleanup is initiated. For consistency, it is the same value for all plugins and processors solicited in a row.