Idle

An Enabled State indicating no active scanning is taking place

Properties

Link copied to clipboard
abstract val deinitialize: suspend () -> ScanningState.Deinitialized

Transitions into a Deinitialized State

Link copied to clipboard

The Devices discovered

Link copied to clipboard
abstract val disable: suspend () -> ScanningState.NoBluetooth.Disabled

Transitions into a NoBluetooth.Disabled State

Link copied to clipboard
Link copied to clipboard

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

Transitions into an Idle State with a new Filter

Link copied to clipboard
open fun <S : KalugaState> remain(): suspend () -> S
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