BluetoothLEAdvertisementWatcher BluetoothLEAdvertisementWatcher BluetoothLEAdvertisementWatcher BluetoothLEAdvertisementWatcher BluetoothLEAdvertisementWatcher Class

Definition

An object to receive Bluetooth Low Energy (LE) advertisements.

public : sealed class BluetoothLEAdvertisementWatcher : IBluetoothLEAdvertisementWatcher
struct winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcher : IBluetoothLEAdvertisementWatcher
public sealed class BluetoothLEAdvertisementWatcher : IBluetoothLEAdvertisementWatcher
Public NotInheritable Class BluetoothLEAdvertisementWatcher Implements IBluetoothLEAdvertisementWatcher
var bluetoothleAdvertisementWatcher = new bluetoothleAdvertisementWatcher();
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

Constructors

BluetoothLEAdvertisementWatcher() BluetoothLEAdvertisementWatcher() BluetoothLEAdvertisementWatcher() BluetoothLEAdvertisementWatcher() BluetoothLEAdvertisementWatcher()

Creates a new BluetoothLEAdvertisementWatcher object.

BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter) BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter) BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter) BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter) BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter)

Creates a new BluetoothLEAdvertisementWatcher object with an advertisement filter to initialize the watcher.

Properties

AdvertisementFilter AdvertisementFilter AdvertisementFilter AdvertisementFilter AdvertisementFilter

Gets or sets a BluetoothLEAdvertisementFilter object used for configuration of Bluetooth LE advertisement filtering that uses payload section-based filtering.

MaxOutOfRangeTimeout MaxOutOfRangeTimeout MaxOutOfRangeTimeout MaxOutOfRangeTimeout MaxOutOfRangeTimeout

Gets the maximum out of range timeout.

MaxSamplingInterval MaxSamplingInterval MaxSamplingInterval MaxSamplingInterval MaxSamplingInterval

Gets the maximum sampling interval.

MinOutOfRangeTimeout MinOutOfRangeTimeout MinOutOfRangeTimeout MinOutOfRangeTimeout MinOutOfRangeTimeout

Gets the minimum out of range timeout.

MinSamplingInterval MinSamplingInterval MinSamplingInterval MinSamplingInterval MinSamplingInterval

Gets the minimum sampling interval.

ScanningMode ScanningMode ScanningMode ScanningMode ScanningMode

Gets or sets the Bluetooth LE scanning mode.

SignalStrengthFilter SignalStrengthFilter SignalStrengthFilter SignalStrengthFilter SignalStrengthFilter

Gets or sets a BluetoothSignalStrengthFilter object used for configuration of Bluetooth LE advertisement filtering that uses signal strength-based filtering.

Status Status Status Status Status

Gets the current status of the BluetoothLEAdvertisementWatcher.

Methods

Start() Start() Start() Start() Start()

Start the BluetoothLEAdvertisementWatcher to scan for Bluetooth LE advertisements.

Stop() Stop() Stop() Stop() Stop()

Stop the BluetoothLEAdvertisementWatcher and disable the scanning for Bluetooth LE advertisements.

Events

Received Received Received Received Received

Notification for new Bluetooth LE advertisement events received.

Stopped Stopped Stopped Stopped Stopped

Notification to the app that the Bluetooth LE scanning for advertisements has been cancelled or aborted either by the app or due to an error.

See also