Idle
An Enabled State indicating no active scanning is taking place
Properties
Link copied to clipboard
Transitions into a Deinitialized State
Link copied to clipboard
The Devices discovered
Link copied to clipboard
Transitions into a NoBluetooth.Disabled State
Link copied to clipboard
Link copied to clipboard
Transitions into a NoBluetooth.MissingPermissions State
Functions
Link copied to clipboard
abstract fun pairedDevices(devices: Map<Identifier, () -> Device>, filter: Filter, removeForAllPairedFilters: Boolean): suspend () -> ScanningState.Enabled
Transitions into an Enabled state where a set of devices is paired
Link copied to clipboard
abstract fun refresh(filter: Filter = devices.currentScanFilter.filter, cleanMode: BluetoothService.CleanMode = BluetoothService.CleanMode.REMOVE_ALL): suspend () -> ScanningState.Enabled.Idle
Link copied to clipboard
Link copied to clipboard
abstract suspend fun retrievePairedDevices(filter: Filter, removeForAllPairedFilters: Boolean, connectionSettings: ConnectionSettings?)
Starts to retrieve the list of paired Device
Link copied to clipboard
abstract fun startScanning(filter: Filter = devices.currentScanFilter.filter, cleanMode: BluetoothService.CleanMode = BluetoothService.CleanMode.REMOVE_ALL, connectionSettings: ConnectionSettings? = null): suspend () -> ScanningState.Enabled.Scanning
Transitions into a Scanning State for a given filter