ConnectionCallback

Connection- and GATT-related callbacks exposed by BLEManager.

This callback extends ScanCallback, so it also receives scan lifecycle events.

Threading contract:

  • Methods may be invoked either from Android BLE callback paths or from the manager's background coroutine scope.

  • No method in this callback is guaranteed to run on the Android main thread.

Recommended usage:

  • Perform non-UI work directly here if needed.

  • For UI updates, switch explicitly to Dispatchers.Main, runOnUiThread, or publish the event into a UI-observed state holder.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onConnected()
Link copied to clipboard
Link copied to clipboard
open fun onDeviceDiscovered(device: EUCDevice)
Link copied to clipboard
open fun onDisconnected()
Link copied to clipboard
open fun onMtuChanged(mtu: Int)
Link copied to clipboard
open fun onScanCompleted(devices: List<EUCDevice>)
Link copied to clipboard
open fun onScanStarted()
Link copied to clipboard