Compartilhar via


GattServiceProvider.AdvertisementStatusChanged Evento

Definição

Um evento que é disparado quando o anúncio status foi alterado.

// 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) 

Tipo de evento

Requisitos do Windows

Funcionalidades do aplicativo
bluetooth

Aplica-se a