次の方法で共有


BluetoothLEAdvertisementPublisher.StatusChanged イベント

定義

BluetoothLEAdvertisementPublisher の状態が変更されたことを示す通知。

// Register
event_token StatusChanged(TypedEventHandler<BluetoothLEAdvertisementPublisher, BluetoothLEAdvertisementPublisherStatusChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
BluetoothLEAdvertisementPublisher::StatusChanged_revoker StatusChanged(auto_revoke_t, TypedEventHandler<BluetoothLEAdvertisementPublisher, BluetoothLEAdvertisementPublisherStatusChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<BluetoothLEAdvertisementPublisher,BluetoothLEAdvertisementPublisherStatusChangedEventArgs> StatusChanged;
function onStatusChanged(eventArgs) { /* Your code */ }
bluetoothLEAdvertisementPublisher.addEventListener("statuschanged", onStatusChanged);
bluetoothLEAdvertisementPublisher.removeEventListener("statuschanged", onStatusChanged);
- or -
bluetoothLEAdvertisementPublisher.onstatuschanged = onStatusChanged;
Public Custom Event StatusChanged As TypedEventHandler(Of BluetoothLEAdvertisementPublisher, BluetoothLEAdvertisementPublisherStatusChangedEventArgs) 

イベントの種類

Windows の要件

アプリの機能
bluetooth

適用対象

こちらもご覧ください