copyAndAddScanned
abstract fun copyAndAddScanned(identifier: Identifier, createDevice: () -> ConnectableDevice): ScanningState.Devices
Creates a new Devices instance that adds an Identifier to the currentScanFilter and creates the corresponding ConnectableDevice if not yet discovered
Return
the new instance of Devices where allDevices contains a ConnectableDevice for identifier and identifiersForCurrentScanFilter contains identifier
Parameters
identifier
the Identifier of the ConnectableDevice to add
createDevice
method for creating a ConnectableDevice for the identifier