次の方法で共有


BluetoothLEAdvertisementWatcher.Stopped イベント

定義

アプリによって、またはエラーが原因で、広告の Bluetooth LE スキャンが取り消されたか中止されたことがアプリに通知されます。

// Register
event_token Stopped(TypedEventHandler<BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementWatcherStoppedEventArgs const&> const& handler) const;

// Revoke with event_token
void Stopped(event_token const* cookie) const;

// Revoke with event_revoker
BluetoothLEAdvertisementWatcher::Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementWatcherStoppedEventArgs const&> const& handler) const;
public event TypedEventHandler<BluetoothLEAdvertisementWatcher,BluetoothLEAdvertisementWatcherStoppedEventArgs> Stopped;
function onStopped(eventArgs) { /* Your code */ }
bluetoothLEAdvertisementWatcher.addEventListener("stopped", onStopped);
bluetoothLEAdvertisementWatcher.removeEventListener("stopped", onStopped);
- or -
bluetoothLEAdvertisementWatcher.onstopped = onStopped;
Public Custom Event Stopped As TypedEventHandler(Of BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementWatcherStoppedEventArgs) 

イベントの種類

Windows の要件

アプリの機能
bluetooth

適用対象

こちらもご覧ください