Jaa


BluetoothAdapter Class

Definition

Represents a Bluetooth adapter.

public ref class BluetoothAdapter sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothAdapter final
[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
Public NotInheritable Class BluetoothAdapter
Inheritance
Object Platform::Object IInspectable 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