BluetoothLEAdvertisement BluetoothLEAdvertisement BluetoothLEAdvertisement BluetoothLEAdvertisement BluetoothLEAdvertisement Class

Definition

A representation of a Bluetooth LE advertisement payload.

public : sealed class BluetoothLEAdvertisement
struct winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement
public sealed class BluetoothLEAdvertisement
Public NotInheritable Class BluetoothLEAdvertisement
var bluetoothleAdvertisement = new bluetoothleAdvertisement();
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

Remarks

This class is used to represent an advertisement received by the system, an advertisement pattern to filter for, or an advertisement payload that needs to be published. In the case it is generated by the system to represent an advertisement received, certain properties are automatically populated.

For more information about its usage, refer to BluetoothLEAdvertisementWatcher class for receiving advertisements and the BluetoothLEAdvertisementPublisher class for sending advertisements.

Constructors

BluetoothLEAdvertisement() BluetoothLEAdvertisement() BluetoothLEAdvertisement() BluetoothLEAdvertisement() BluetoothLEAdvertisement()

Creates a new BluetoothLEAdvertisement object.

Properties

DataSections DataSections DataSections DataSections DataSections

Gets the list of raw data sections.

Flags Flags Flags Flags Flags

Bluetooth LE advertisement flags.

LocalName LocalName LocalName LocalName LocalName

The local name contained within the advertisement.

ManufacturerData ManufacturerData ManufacturerData ManufacturerData ManufacturerData

Gets the list of manufacturer-specific data sections in a BluetoothLEAdvertisement.

ServiceUuids ServiceUuids ServiceUuids ServiceUuids ServiceUuids

The list of service UUIDs in 128-bit GUID format in a BluetoothLEAdvertisement.

Methods

GetManufacturerDataByCompanyId(UInt16) GetManufacturerDataByCompanyId(UInt16) GetManufacturerDataByCompanyId(UInt16) GetManufacturerDataByCompanyId(UInt16) GetManufacturerDataByCompanyId(UInt16)

Return a list of all manufacturer data sections in the BluetoothLEAdvertisement payload matching the specified company ID.

GetSectionsByType(Byte) GetSectionsByType(Byte) GetSectionsByType(Byte) GetSectionsByType(Byte) GetSectionsByType(Byte)

Return a list of advertisement data sections that matches a given advertisement section type in a BluetoothLEAdvertisement.

See also