BluetoothState

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

A snapshot in time of the state of the bluetooth subsystem.

Constructors

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

Properties

Link copied to clipboard

If enabled, a list of the currently bonded devices

Link copied to clipboard

If we have adequate permissions and bluetooth is enabled

Link copied to clipboard

Whether we have adequate permissions to query bluetooth state

Functions

Link copied to clipboard
open override fun toString(): String