GattLocalCharacteristic.SubscribedClientsChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
TypedEventHandler<GattLocalCharacteristic,IInspectable>
Windows requirements
App capabilities |
bluetooth
|
Remarks
Also see Send notifications to subscribed clients.