updateScanFilter
open override fun updateScanFilter(filter: Filter, cleanMode: BluetoothService.CleanMode): ScanningState.Devices
Creates a new Devices instance that sets the currentScanFilter for a DeviceDiscoveryMode.Scanning with a given Filter
Return
the new instance of Devices where currentScanFilter if filtered with filter and cleanup has occurred according to cleanMode
Parameters
filter
the Filter to set as the DeviceDiscoveryMode.Scanning.filter for the new currentScanFilter
cleanMode
the BluetoothService.CleanMode to apply for cleaning the previously found Device