次の方法で共有


GattServiceProvider.AdvertisementStatusChanged イベント

定義

提供情報の状態が変更されたときにトリガーされるイベント。

// Register
event_token AdvertisementStatusChanged(TypedEventHandler<GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GattServiceProvider::AdvertisementStatusChanged_revoker AdvertisementStatusChanged(auto_revoke_t, TypedEventHandler<GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattServiceProvider,GattServiceProviderAdvertisementStatusChangedEventArgs> AdvertisementStatusChanged;
function onAdvertisementStatusChanged(eventArgs) { /* Your code */ }
gattServiceProvider.addEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
gattServiceProvider.removeEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
- or -
gattServiceProvider.onadvertisementstatuschanged = onAdvertisementStatusChanged;
Public Custom Event AdvertisementStatusChanged As TypedEventHandler(Of GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs) 

イベントの種類

Windows の要件

アプリの機能
bluetooth

適用対象