GattLocalCharacteristic.SubscribedClientsChanged 事件

定义

订阅此本地特征的客户端集合更改 (即,在该集合) 添加或删除客户端时引发的事件。

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

事件类型

Windows 要求

应用功能
bluetooth

注解

另请参阅 向订阅的客户端发送通知

适用于

另请参阅