BluetoothLEAdvertisementWatcher.Stop BluetoothLEAdvertisementWatcher.Stop BluetoothLEAdvertisementWatcher.Stop BluetoothLEAdvertisementWatcher.Stop BluetoothLEAdvertisementWatcher.Stop Method

Definition

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

public : void Stop()
void Stop() const;
public void Stop()
Public Sub Stop()
bluetoothleAdvertisementWatcher.stop();

Additional features and requirements

Capabilities
bluetooth

Remarks

This method will transition the BluetoothLEAdvertisementWatcher 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 BluetoothLEAdvertisementWatcher will be automatically stopped when an app is suspended.

Note

Stopping the scan for the BluetoothLEAdvertisementWatcher will not actually stop the Bluetooth radio from scanning if another app or the system still requires the radio to remain in a scanning state.

See also