Share via


BluetoothAdapter Class

Definition

Represents a Bluetooth adapter.

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothAdapter
Inheritance
Object BluetoothAdapter
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Remarks

Version history

Windows version SDK version Value added
1803 17134 AreClassicSecureConnectionsSupported
1803 17134 AreLowEnergySecureConnectionsSupported
2004 19041 IsExtendedAdvertisingSupported
2004 19041 MaxAdvertisementDataLength

Properties

AreClassicSecureConnectionsSupported

Gets or sets a value indicating whether Secure Connections are supported for classic paired Bluetooth devices.

AreLowEnergySecureConnectionsSupported

Gets or sets a value indicating whether Secure Connections are supported for paired Bluetooth LE devices.

BluetoothAddress

Gets the device address.

DeviceId

Gets the device ID.

IsAdvertisementOffloadSupported

Gets a boolean indicating if the adapter supports advertisement offload.

IsCentralRoleSupported

Gets a boolean indicating if the adapater supports LowEnergy central role.

IsClassicSupported

Gets a boolean indicating if the adapter supports the Bluetooth Classic transport type.

IsExtendedAdvertisingSupported

Indicates whether the adapter supports the 5.0 Extended Advertising format.

IsLowEnergyCodedPhySupported
IsLowEnergySupported

Gets a boolean indicating if the adapater supports LowEnergy Bluetooth Transport type.

IsLowEnergyUncoded2MPhySupported
IsPeripheralRoleSupported

Gets a boolean indicating if the adapater supports LowEnergy peripheral role.

MaxAdvertisementDataLength

Indicates the maximum length of an advertisement that can be published by this adapter.

Methods

FromIdAsync(String)

Gets a BluetoothAdapter object identified by the given DeviceId.

GetDefaultAsync()

Gets the default BluetoothAdapter.

GetDeviceSelector()

Gets an Advanced Query Syntax (AQS) string for identifying instances of this adapter. This string is passed to the FindAllAsync or CreateWatcher method.

GetRadioAsync()

Gets the radio represented by this Bluetooth adapter.

Applies to

Product Versions
WinRT Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100