BLEServiceEvent

sealed interface BLEServiceEvent

Represents events emitted by the Bluetooth Low Energy (BLE) service.

Inheritors

Types

Link copied to clipboard
data class CharacteristicChanged(val device: BLEDevice, val gatt: BluetoothGatt, val characteristic: BluetoothGattCharacteristic, val value: ByteArray) : BLEServiceEvent

Represents a characteristic changed event

Link copied to clipboard
data class Connected(val device: BLEDevice) : BLEServiceEvent

Represents an event indicating that connection to a device has been established.

Link copied to clipboard

Represents an event indicating that a device has been discovered

Link copied to clipboard
data class DevicePaired(val device: BluetoothDevice) : BLEServiceEvent

Event indicating that a BLE device was paired.

Link copied to clipboard

Event indicating that a BLE device was paired.

Link copied to clipboard
data class Disconnected(val device: BLEDevice) : BLEServiceEvent

Represents an event indicating that a device is disconnected.

Link copied to clipboard
data class GenericError(val cause: Throwable) : BLEServiceEvent

Represents a generic error event.

Link copied to clipboard
data class ScanningFailed(val errorCode: Int) : BLEServiceEvent

Represents an event indicating that scanning has failed.

Link copied to clipboard
data class ServiceDiscovered(val device: BluetoothDevice, val gatt: BluetoothGatt, val status: Int) : BLEServiceEvent