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

설명

구독 된 클라이언트에 알림 보내기도 참조하세요.

적용 대상

추가 정보