BluetoothAdapter
BluetoothAdapter
BluetoothAdapter
BluetoothAdapter
Class
Definition
Represents a Bluetooth adapter.
public : sealed class BluetoothAdapter : IBluetoothAdapterpublic sealed class BluetoothAdapter : IBluetoothAdapterPublic NotInheritable Class BluetoothAdapter Implements IBluetoothAdapter// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
| Capabilities |
bluetooth
|
Properties
BluetoothAddress BluetoothAddress BluetoothAddress BluetoothAddress
Gets the device address.
public : ulong BluetoothAddress { get; }public ulong BluetoothAddress { get; }Public ReadOnly Property BluetoothAddress As ulong// You can use this property in JavaScript.
- Value
- ulong ulong ulong ulong
The device address.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
| Capabilities |
bluetooth
|
DeviceId DeviceId DeviceId DeviceId
Gets the device ID.
public : PlatForm::String DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The ID of the device.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
| Capabilities |
bluetooth
|
IsAdvertisementOffloadSupported IsAdvertisementOffloadSupported IsAdvertisementOffloadSupported IsAdvertisementOffloadSupported
Gets a boolean indicating if the adapter supports advertisement offload.
public : PlatForm::Boolean IsAdvertisementOffloadSupported { get; }public bool IsAdvertisementOffloadSupported { get; }Public ReadOnly Property IsAdvertisementOffloadSupported As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Gets a boolean indicating if the adapter supports advertisement offload.
IsCentralRoleSupported IsCentralRoleSupported IsCentralRoleSupported IsCentralRoleSupported
Gets a boolean indicating if the adapater supports LowEnergy central role.
public : PlatForm::Boolean IsCentralRoleSupported { get; }public bool IsCentralRoleSupported { get; }Public ReadOnly Property IsCentralRoleSupported As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Gets a boolean indicating if the adapater supports LowEnergy central role.
IsClassicSupported IsClassicSupported IsClassicSupported IsClassicSupported
Gets a boolean indicating if the adapter supports the Bluetooth Classic transport type.
public : PlatForm::Boolean IsClassicSupported { get; }public bool IsClassicSupported { get; }Public ReadOnly Property IsClassicSupported As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Gets a boolean indicating if the adapter supports the Bluetooth Classic transport type.
IsLowEnergySupported IsLowEnergySupported IsLowEnergySupported IsLowEnergySupported
Gets a boolean indicating if the adapater supports LowEnergy Bluetooth Transport type.
public : PlatForm::Boolean IsLowEnergySupported { get; }public bool IsLowEnergySupported { get; }Public ReadOnly Property IsLowEnergySupported As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Gets a boolean indicating if the adapater supports LowEnergy Bluetooth Transport type.
IsPeripheralRoleSupported IsPeripheralRoleSupported IsPeripheralRoleSupported IsPeripheralRoleSupported
Gets a boolean indicating if the adapater supports LowEnergy peripheral role.
public : PlatForm::Boolean IsPeripheralRoleSupported { get; }public bool IsPeripheralRoleSupported { get; }Public ReadOnly Property IsPeripheralRoleSupported As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Gets a boolean indicating if the adapater supports LowEnergy peripheral role.
Methods
FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)
Gets a BluetoothAdapter object identified by the given DeviceId.
public : static IAsyncOperation<BluetoothAdapter> FromIdAsync(PlatForm::String deviceId)public static IAsyncOperation<BluetoothAdapter> FromIdAsync(String deviceId)Public Static Function FromIdAsync(deviceId As String) As IAsyncOperation( Of BluetoothAdapter )// You can use this method in JavaScript.
- deviceId
- PlatForm::String String String String
The DeviceId value that identifies the BluetoothAdapter instance.
After the asynchronous operation completes, returns the BluetoothAdapter object identified by the given DeviceId.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
| Capabilities |
bluetooth
|
GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()
Gets the default BluetoothAdapter.
public : static IAsyncOperation<BluetoothAdapter> GetDefaultAsync()public static IAsyncOperation<BluetoothAdapter> GetDefaultAsync()Public Static Function GetDefaultAsync() As IAsyncOperation( Of BluetoothAdapter )// You can use this method in JavaScript.
An asynchronous operation that completes with a BluetoothAdapter.
GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()
Gets an Advanced Query Syntax (AQS) string for identifying instances of this adapter. This string is passed to the FindAllAsync or CreateWatcher method.
public : static PlatForm::String GetDeviceSelector()public static string GetDeviceSelector()Public Static Function GetDeviceSelector() As string// You can use this method in JavaScript.
Returns an AQS string.
GetRadioAsync() GetRadioAsync() GetRadioAsync() GetRadioAsync()
Gets the radio represented by this Bluetooth adapter.
public : IAsyncOperation<Radio> GetRadioAsync()public IAsyncOperation<Radio> GetRadioAsync()Public Function GetRadioAsync() As IAsyncOperation( Of Radio )// You can use this method in JavaScript.
Returns an asynchronous operation that completes with the Radio.