GattServiceProvider.AdvertisementStatusChanged GattServiceProvider.AdvertisementStatusChanged GattServiceProvider.AdvertisementStatusChanged GattServiceProvider.AdvertisementStatusChanged GattServiceProvider.AdvertisementStatusChanged Event

Definition

An event that is triggered when the advertisement status has changed.

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

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

// Revoke with event_revoker
AdvertisementStatusChanged_revoker AdvertisementStatusChanged(auto_revoke_t, TypedEventHandler<GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs> const& handler) const;
public event TypedEventHandler<GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs> AdvertisementStatusChanged
Public Event AdvertisementStatusChanged As TypedEventHandler (Of GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs)
function onAdvertisementStatusChanged(eventArgs){/* Your code */}


gattServiceProvider.addEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
gattServiceProvider.removeEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);

Additional features and requirements

Capabilities
bluetooth