startScanning

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

Return

the method for transitioning into a Scanning state

Parameters

filter

the Filter to apply for scanning

cleanMode

the BluetoothService.CleanMode to apply to previously scanned Device.

connectionSettings

the ConnectionSettings to apply to any Device scanned that was not previously discovered. If null the default will be used