ErrorCallback

Callback receiving errors produced by BLEManager.

Threading contract:

  • Invoked from background execution contexts.

  • Not guaranteed to run on the Android main thread.

Recommended usage:

  • Handle logging, metrics, and state transitions directly.

  • Switch explicitly to the main thread before displaying Android UI such as dialogs, snackbars, or toasts.

Functions

Link copied to clipboard
abstract fun onError(error: BLEException)