GattLocalCharacteristic.SubscribedClientsChanged Evento

Definizione

Evento generato quando la raccolta di client ha sottoscritto questa caratteristica locale, ovvero i client vengono aggiunti o rimossi da tale raccolta.

// Register
event_token SubscribedClientsChanged(TypedEventHandler<GattLocalCharacteristic, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
GattLocalCharacteristic::SubscribedClientsChanged_revoker SubscribedClientsChanged(auto_revoke_t, TypedEventHandler<GattLocalCharacteristic, IInspectable const&> const& handler) const;
public event TypedEventHandler<GattLocalCharacteristic,object> SubscribedClientsChanged;
function onSubscribedClientsChanged(eventArgs) { /* Your code */ }
gattLocalCharacteristic.addEventListener("subscribedclientschanged", onSubscribedClientsChanged);
gattLocalCharacteristic.removeEventListener("subscribedclientschanged", onSubscribedClientsChanged);
- or -
gattLocalCharacteristic.onsubscribedclientschanged = onSubscribedClientsChanged;
Public Custom Event SubscribedClientsChanged As TypedEventHandler(Of GattLocalCharacteristic, Object) 

Tipo evento

Requisiti Windows

Funzionalità dell'app
bluetooth

Commenti

Vedere anche Inviare notifiche ai client sottoscritti.

Si applica a

Vedi anche