# android.bluetooth

# android.bluetooth

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/bluetooth/package-summary "View this page in Java")

## Interfaces

|--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|
| [LeScanCallback](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothAdapter.LeScanCallback) | Callback interface used to deliver LE scan results. |
| [BluetoothProfile](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothProfile)              | Public APIs for the Bluetooth Profiles.             |

## Classes

|---------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BluetoothA2dp](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothA2dp)                                       | This class provides the public APIs to control the Bluetooth A2DP profile.                                                                                                                           |
| [BluetoothAdapter](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothAdapter)                                 | Represents the local device Bluetooth adapter.                                                                                                                                                       |
| [BluetoothAssignedNumbers](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothAssignedNumbers)                 | Bluetooth Assigned Numbers.                                                                                                                                                                          |
| [BluetoothClass](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothClass)                                     | Represents a Bluetooth class, which describes general characteristics and capabilities of a device.                                                                                                  |
| [BluetoothCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecConfig)                         | Represents the codec configuration for a Bluetooth A2DP source device.                                                                                                                               |
| [BluetoothCodecStatus](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecStatus)                         | Represents the codec status (configuration and capability) for a Bluetooth A2DP source device.                                                                                                       |
| [BluetoothCodecType](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCodecType)                             | Represents a supported source codec type for a Bluetooth A2DP device.                                                                                                                                |
| [BluetoothCsipSetCoordinator](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothCsipSetCoordinator)           | This class provides the public APIs to control the Bluetooth CSIP set coordinator.                                                                                                                   |
| [BluetoothDevice](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothDevice)                                   | Represents a remote Bluetooth device.                                                                                                                                                                |
| [BluetoothGatt](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGatt)                                       | Public API for the Bluetooth GATT Profile.                                                                                                                                                           |
| [BluetoothGattCallback](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattCallback)                       | This abstract class is used to implement[BluetoothGatt](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGatt)callbacks.                                                    |
| [BluetoothGattCharacteristic](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattCharacteristic)           | Represents a Bluetooth GATT Characteristic                                                                                                                                                           |
| [BluetoothGattDescriptor](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattDescriptor)                   | Represents a Bluetooth GATT Descriptor                                                                                                                                                               |
| [BluetoothGattServer](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattServer)                           | Public API for the Bluetooth GATT Profile server role.                                                                                                                                               |
| [BluetoothGattServerCallback](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattServerCallback)           | This abstract class is used to implement[BluetoothGattServer](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattServer)callbacks.                                        |
| [BluetoothGattService](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothGattService)                         | Represents a Bluetooth GATT Service                                                                                                                                                                  |
| [BluetoothHeadset](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHeadset)                                 | Public API for controlling the Bluetooth Headset Service.                                                                                                                                            |
| [BluetoothHealth](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHealth)                                   | Public API for Bluetooth Health Profile.                                                                                                                                                             |
| [BluetoothHealthAppConfiguration](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHealthAppConfiguration)   | The Bluetooth Health Application Configuration that is used in conjunction with the[BluetoothHealth](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHealth)class.         |
| [BluetoothHealthCallback](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHealthCallback)                   | This abstract class is used to implement[BluetoothHealth](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHealth)callbacks.                                                |
| [BluetoothHearingAid](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHearingAid)                           | This class provides the public APIs to control the Hearing Aid profile.                                                                                                                              |
| [BluetoothHidDevice](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHidDevice)                             | Provides the public APIs to control the Bluetooth HID Device profile.                                                                                                                                |
| [BluetoothHidDeviceAppQosSettings](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHidDeviceAppQosSettings) | Represents the Quality of Service (QoS) settings for a Bluetooth HID Device application.                                                                                                             |
| [BluetoothHidDeviceAppSdpSettings](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothHidDeviceAppSdpSettings) | Represents the Service Discovery Protocol (SDP) settings for a Bluetooth HID Device application.                                                                                                     |
| [BluetoothLeAudio](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothLeAudio)                                 | This class provides the public APIs to control the LeAudio profile.                                                                                                                                  |
| [BluetoothLeAudioCodecConfig](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothLeAudioCodecConfig)           | Represents the codec configuration for a Bluetooth LE Audio source device.                                                                                                                           |
| [BluetoothLeAudioCodecStatus](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothLeAudioCodecStatus)           | Represents the codec status (configuration and capability) for a Bluetooth Le Audio source device.                                                                                                   |
| [BluetoothManager](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothManager)                                 | High level manager used to obtain an instance of an[BluetoothAdapter](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothAdapter)and to conduct overall Bluetooth Management. |
| [BluetoothServerSocket](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothServerSocket)                       | A listening Bluetooth socket.                                                                                                                                                                        |
| [BluetoothSocket](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothSocket)                                   | A connected or connecting Bluetooth socket.                                                                                                                                                          |
| [BluetoothSocketSettings](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothSocketSettings)                   | Defines parameters for creating Bluetooth server and client socket channels.                                                                                                                         |
| [BluetoothStatusCodes](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothStatusCodes)                         | A class with constants representing possible return values for Bluetooth APIs.                                                                                                                       |
| [EncryptionStatus](https://developer.android.com/reference/kotlin/android/bluetooth/EncryptionStatus)                                 | Represents the encryption status of a Bluetooth device.                                                                                                                                              |

## Exceptions

|-----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| [BluetoothSocketException](https://developer.android.com/reference/kotlin/android/bluetooth/BluetoothSocketException) | Thrown when an error occurs during a Bluetooth Socket related exception. |