Package-level declarations
Types
Link copied to clipboard
class BleConnection(context: Context, device: BluetoothDevice, bondManager: BondManager? = null, autoReconnect: Boolean = true, reconnectDelayMs: Long = ConnectionStateMachine.DEFAULT_RECONNECT_DELAY_MS, maxReconnectDelayMs: Long = ConnectionStateMachine.DEFAULT_MAX_RECONNECT_DELAY_MS, maxReconnectAttempts: Int = ConnectionStateMachine.DEFAULT_MAX_RECONNECT_ATTEMPTS)
Manages a Bluetooth Low Energy (BLE) connection to a remote device.
Link copied to clipboard
class BleGattCallback(connectionStateMachine: ConnectionStateMachine, bondManager: BondManager? = null) : BluetoothGattCallback
Custom implementation of BluetoothGattCallback that handles all GATT client events.
Link copied to clipboard
Manages Bluetooth device bonding (pairing) operations.
Link copied to clipboard
class ConnectionStateMachine(context: Context, device: BluetoothDevice, bondManager: BondManager? = null, autoReconnect: Boolean = true, reconnectDelayMs: Long = DEFAULT_RECONNECT_DELAY_MS, maxReconnectDelayMs: Long = DEFAULT_MAX_RECONNECT_DELAY_MS, maxReconnectAttempts: Int = DEFAULT_MAX_RECONNECT_ATTEMPTS, operationTimeoutMs: Long = DEFAULT_OPERATION_TIMEOUT_MS)
A finite state machine that manages Bluetooth Low Energy (BLE) connections and operations.