ScanCallback

interface ScanCallback(source)

Scan-related callbacks exposed by BLEManager.

Threading contract:

  • These callbacks are invoked from background execution contexts.

  • They are not guaranteed to run on the Android main thread.

Implications for callers:

  • Do not update Android views directly from these methods unless you explicitly switch to the main thread first.

  • Prefer forwarding these events to a Flow, StateFlow, LiveData, or another application-level state container consumed by the UI layer.

Inheritors

Functions

Link copied to clipboard
open fun onDeviceDiscovered(device: EUCDevice)
Link copied to clipboard
open fun onScanCompleted(devices: List<EUCDevice>)
Link copied to clipboard
open fun onScanStarted()