refresh

fun refresh()

Clears the list of devices and restarts scanning.

This does the same as the pull-to-refresh gesture. If the scanner is not shown yet, for example because Bluetooth is disabled or permissions are missing, the request is performed when it appears. Multiple requests made in the meantime are merged into one.