GattLocalCharacteristic.SubscribedClientsChanged Event

Definition

An event that's raised when the collection of clients subscribed to this local characteristic changes (that is, clients are added to, or removed from, that collection).

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

Event Type

Windows requirements

App capabilities
bluetooth

Remarks

Also see Send notifications to subscribed clients.

Applies to

See also