Delen via


BluetoothLEAdvertisementWatcher.Stop Method

Definition

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

public:
 virtual void Stop() = Stop;
void Stop();
public void Stop();
function stop()
Public Sub Stop ()

Windows requirements

App 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.

Applies to

See also