BluetoothState

data class BluetoothState(val hasPermissions: Boolean = false, val enabled: Boolean = false, val bondedDevices: List<BleDevice> = emptyList())(source)

Represents the state of Bluetooth on the device.

Constructors

Link copied to clipboard
constructor(hasPermissions: Boolean = false, enabled: Boolean = false, bondedDevices: List<BleDevice> = emptyList())

Properties

Link copied to clipboard

A list of bonded devices.

Link copied to clipboard

True if Bluetooth is enabled on the device.

Link copied to clipboard

True if the application has the required Bluetooth permissions.