BluetoothData

@Serializable
data class BluetoothData(val supported: Boolean)

Data class representing Bluetooth hardware capability information of the device.

This class encapsulates the fundamental Bluetooth hardware support status, which is essential for device fingerprinting and feature availability determination.

The information captured helps in:

  • Device Fingerprinting: Bluetooth support varies across device types and models

  • Feature Planning: Applications can adapt UI/UX based on Bluetooth availability

  • Compatibility Checks: Ensuring Bluetooth-dependent features are only enabled on capable devices

  • Analytics: Understanding the distribution of Bluetooth-capable devices in the user base

Implementation Notes:

  • Detection is based on BluetoothAdapter availability, not current state (enabled/disabled)

  • Hardware support is detected regardless of whether Bluetooth is currently turned on

  • Safe fallback to false if any system service access fails

Constructors

Link copied to clipboard
constructor(supported: Boolean)

Properties

Link copied to clipboard

Indicates whether the device has Bluetooth hardware support.