BleScanCallback

interface BleScanCallback

BLE scan callback interface Used to handle various states during the BLE scan process, such as scan start, device found, scan finish, and failure.

Functions

Link copied to clipboard
abstract fun onDeviceFound(device: BleDevice)

Callback method when a device is found

Link copied to clipboard
abstract fun onFailure(exception: Exception)

Callback method when scan fails

Link copied to clipboard
abstract fun onScanFinished(results: MutableList<BleDevice>)

Callback method when scan finishes

Link copied to clipboard
abstract fun onScanStart()

Callback method when scan starts