ScannerState

The state of the scanner, which allows to control it from outside of the scanner view.

Create it using rememberScannerState and pass it to the scanner screen or view.

Properties

Link copied to clipboard
val isScanning: StateFlow<Boolean>

Whether the scanner is currently scanning.

Functions

Link copied to clipboard
fun refresh()

Clears the list of devices and restarts scanning.