KableBluetoothRepository

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

False when the device has no Bluetooth LE hardware, so no BLE transport can ever work (e.g. Android XR).

Link copied to clipboard
open override val state: StateFlow<BluetoothState>

The current state of Bluetooth on the device.

Functions

Link copied to clipboard
open suspend override fun bond(device: BleDevice, pin: String? = null)

Initiates bonding with the given device.

Link copied to clipboard
open override fun isBonded(address: String): Boolean

Returns true if the given address is bonded.

Link copied to clipboard
open override fun isValid(bleAddress: String): Boolean

Returns true if the given address is valid.

Link copied to clipboard
open override fun refreshState()

Refreshes the Bluetooth state.