BleScanner
Wrapper class for the native Android API. It has a single function that returns a flow that continuously emits single scan items.
Parameters
context
Android context required to initialize native Android API
Functions
Link copied to clipboard
@RequiresPermission(allOf = ["android.permission.BLUETOOTH_SCAN", "android.permission.BLUETOOTH_CONNECT"] )
Starts scanning and emit results in the Flow. Automatically stops scanning when CoroutineScope of the Flow is closed.