Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsBluetoothLEAdvertisementWatcherMBS class.

WindowsBluetoothLEAdvertisementWatcherMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS WinFrameworks Plugin 22.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The constructor.

WindowsBluetoothLEAdvertisementWatcherMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS WinFrameworks Plugin 22.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The destructor.

WindowsBluetoothLEAdvertisementWatcherMBS.Start

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS WinFrameworks Plugin 22.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Start the BluetoothLEAdvertisementWatcher to scan for Bluetooth LE advertisements.
Example

// use your own subclass
Watcher = New BLEAdvertisementWatcher
// e.g. output to some listbox
Watcher.list = listWatcher

// active scanning
watcher.ScanningMode = Watcher.ScanningModeActive

// start it
Watcher.Start

This method will transition the WindowsBluetoothLEAdvertisementWatcherMBS to the Started state immediately with a pending scan request or to the Aborted state if the request failed immediately due to error.
If this method is called in the Stopping state, the request will be pended and the state will remain in the Stopping state until the request completes, at which time a new request will be sent and the state will transition to the Started state.
The WindowsBluetoothLEAdvertisementWatcherMBS will be automatically stopped when an app is suspended.

WindowsBluetoothLEAdvertisementWatcherMBS.Stop

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS WinFrameworks Plugin 22.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Stop the BluetoothLEAdvertisementWatcher and disable the scanning for Bluetooth LE advertisements.

This method will transition the WindowsBluetoothLEAdvertisementWatcherMBS to the Stopping state until the scan is cancelled in which the state will transition to the Stopped state. Calling this method in the Stopped or Aborted state has no effect. Calling this method in the Stopping state will overwrite any advertisements received in the last Start method call during that state.
The WindowsBluetoothLEAdvertisementWatcherMBS will be automatically stopped when an app is suspended.

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


The biggest plugin in space...