Devices
Properties
Link copied to clipboard
The map of ConnectableDevice found for given Identifier
Link copied to clipboard
The DeviceDiscoveryMode.Scanning applied during scanning
Link copied to clipboard
The set of Identifier scanned by currentScanFilter
Link copied to clipboard
abstract val identifiersFoundForDeviceDiscoveryMode: Map<ScanningState.DeviceDiscoveryMode, Set<Identifier>>
A map of all Identifier found for scanning per DeviceDiscoveryMode
Functions
Link copied to clipboard
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
Link copied to clipboard
abstract fun copyAndSetPaired(devices: Map<Identifier, () -> ConnectableDevice>, filter: Filter, removeForAllPairedFilters: Boolean): ScanningState.Devices
Creates a new Devices instance that sets the paired ConnectableDevice for a given Filter
Link copied to clipboard
The list of ConnectableDevice found for the currentScanFilter
Link copied to clipboard
open fun devicesForDiscoveryMode(filter: ScanningState.DeviceDiscoveryMode): List<ConnectableDevice>
The list of ConnectableDevice found for a given DeviceDiscoveryMode
Link copied to clipboard
abstract fun updateScanFilter(filter: Filter, cleanMode: BluetoothClient.CleanMode): ScanningState.Devices
Creates a new Devices instance that sets the currentScanFilter for a DeviceDiscoveryMode.Scanning with a given Filter