ConnectivityInfo

data class ConnectivityInfo(val isBluetoothEnabled: Boolean)

Contains hardware connectivity statuses that might pose security risks.

PERMISSION REQUIRED: To get accurate Bluetooth readings, the host application MUST declare android.permission.BLUETOOTH (and android.permission.BLUETOOTH_CONNECT for Android 12+) in its AndroidManifest.xml.

Constructors

Link copied to clipboard
constructor(isBluetoothEnabled: Boolean)

Properties

Link copied to clipboard

True if the Bluetooth adapter is currently turned on. If the app lacks the required permissions, this will safely default to false.