BLEService

interface BLEService

Component encapsulating the capabilities to manage Bluetooth Low Energy (BLE) device connections

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val events: Flow<BLEServiceEvent>

Flow representing events emitted by the BLE service.

Link copied to clipboard
abstract val state: StateFlow<BLEServiceState>

Flow representing the state of the service.

Functions

Link copied to clipboard
abstract fun pair(device: BluetoothDevice)

Pairs to a new device

Link copied to clipboard
abstract fun startDiscovering(services: List<UUID>)

Starts the Bluetooth Low Energy (BLE) service to discover the services.

Link copied to clipboard
abstract fun stop()

Stops the BLE service and disconnects all ongoing device connections immediately.