Android.Bluetooth Namespace
Remarks
Provides classes that manage Bluetooth functionality, such as scanning for devices, connecting with devices, and managing data transfer between devices. The Bluetooth API supports both "Classic Bluetooth" and Bluetooth Low Energy.
For more information about Classic Bluetooth, see the Bluetooth guide. For more information about Bluetooth Low Energy, see the Bluetooth Low Energy (BLE) guide.
The Bluetooth APIs let applications:
- Scan for other Bluetooth devices (including BLE devices).
- Query the local Bluetooth adapter for paired Bluetooth devices.
- Establish RFCOMM channels/sockets.
- Connect to specified sockets on other devices.
- Transfer data to and from other devices.
- Communicate with BLE devices, such as proximity sensors, heart rate monitors, fitness devices, and so on.
- Act as a GATT client or a GATT server (BLE).
To perform Bluetooth communication using these APIs, an application must declare the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission. Some additional functionality, such as requesting device discovery, also requires the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH_ADMIN permission.
Note: Not all Android-powered devices provide Bluetooth functionality.
Classes
| Type | Reason |
|---|---|
| A2dpState | Enumerates values returned by several types. |
| AtCommand | Enumerates values returned by several types. |
| BluetoothA2dp | This class provides the public APIs to control the Bluetooth A2DP profile. |
| BluetoothA2dp+InterfaceConsts | |
| BluetoothAdapter | Represents the local device Bluetooth adapter. |
| ILeScanCallback | Callback interface used to deliver LE scan results. |
| BluetoothAssignedNumbers | Bluetooth Assigned Numbers. |
| BluetoothClass | Represents a Bluetooth class, which describes general characteristics and capabilities of a device. |
| Device | Defines all device class constants. |
| Major | Defines all major device class constants. |
| InterfaceConsts | |
| Service | Defines all service class constants. |
| BluetoothDevice | Represents a remote Bluetooth device. |
| InterfaceConsts | |
| BluetoothDeviceType | Enumerates values returned by several types. |
| BluetoothGatt | Public API for the Bluetooth GATT Profile. |
| InterfaceConsts | |
| BluetoothGattCallback | This abstract class is used to implement BluetoothGatt callbacks. |
| BluetoothGattCharacteristic | Represents a Bluetooth GATT Characteristic |
| BluetoothGattDescriptor | Represents a Bluetooth GATT Descriptor |
| BluetoothGattServer | Public API for the Bluetooth GATT Profile server role. |
| InterfaceConsts | |
| BluetoothGattServerCallback | This abstract class is used to implement BluetoothGattServer callbacks. |
| BluetoothGattService | Represents a Bluetooth GATT Service |
| BluetoothHeadset | Public API for controlling the Bluetooth Headset Service. |
| InterfaceConsts | |
| BluetoothHealth | Public API for Bluetooth Health Profile. |
| InterfaceConsts | |
| BluetoothHealthAppConfiguration | The Bluetooth Health Application Configuration that is used in conjunction with the BluetoothHealth class. |
| InterfaceConsts | |
| BluetoothHealthCallback | This abstract class is used to implement BluetoothHealth callbacks. |
| BluetoothManager | High level manager used to obtain an instance of an BluetoothAdapter and to conduct overall Bluetooth Management. |
| BluetoothProfile | Public APIs for the Bluetooth Profiles. |
| BluetoothProfileConsts | |
| BluetoothServerSocket | A listening Bluetooth socket. |
| BluetoothSocket | A connected or connecting Bluetooth socket. |
| Bond | Enumerates values returned by several types. |
| DeviceClass | Enumerates values returned by several types. |
| GattConnectionPriority | Enumerates values returned by several types and taken as a parameter of the BluetoothGatt.RequestConnectionPriority member. |
| GattDescriptorPermission | Enumerates values returned by several types and taken as a parameter of the Android.Bluetooth.BluetoothGattDescriptor..ctor member. |
| GattFormat | Enumerates values returned by several types and taken as a parameter of several methods of BluetoothGattCharacteristic. |
| GattPermission | Enumerates values returned by several types and taken as a parameter of the Android.Bluetooth.BluetoothGattCharacteristic..ctor member. |
| GattProperty | Enumerates values returned by several types and taken as a parameter of the Android.Bluetooth.BluetoothGattCharacteristic..ctor member. |
| GattServiceType | Enumerates values returned by several types and taken as a parameter of the Android.Bluetooth.BluetoothGattService..ctor member. |
| GattStatus | Enumerates values returned by several types and taken as a parameter of several types. |
| GattWriteType | Enumerates values returned by several types. |
| HeadsetAudioState | Enumerates values returned by several types. |
| HealthApplicationConfig | Enumerates values returned by several types and taken as a parameter of the BluetoothHealthCallback.OnHealthAppConfigurationStatusChange member. |
| HealthChannelType | Enumerates values returned by several types. |
| HealthState | Enumerates values returned by several types and taken as a parameter of the BluetoothHealthCallback.OnHealthChannelStateChange, and BluetoothHealthCallback.OnHealthChannelStateChange members. |
| IBluetoothProfile | Public APIs for the Bluetooth Profiles. |
| IBluetoothProfileServiceListener | An interface for notifying BluetoothProfile IPC clients when they have been connected or disconnected to the service. |
| MajorDeviceClass | Enumerates values returned by several types. |
| ProfileState | Enumerates values returned by several types and taken as a parameter of several types. |
| ProfileType | Enumerates values returned by several types and taken as a parameter of several types. |
| RoleType | Enumerates values returned by several types. |
| ScanMode | Enumerates values returned by several types. |
| ServiceClass | Enumerates values returned by several methods of ServiceClass and taken as a parameter of the BluetoothClass.HasService member. |
| ServiceConnectedEventArgs | |
| ServiceDisconnectedEventArgs | |
| State | Enumerates values returned by several types. |

