GattCharacteristic.ValueChanged 이벤트

정의

앱은 클라이언트 특성 구성 설명자를 설정한 후 디바이스에서 알림 또는 표시가 수신될 때 이벤트를 수신하기 위해 이벤트 처리기를 등록할 수 있습니다.

// Register
event_token ValueChanged(TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GattCharacteristic::ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<GattCharacteristic, GattValueChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GattCharacteristic,GattValueChangedEventArgs> ValueChanged;
function onValueChanged(eventArgs) { /* Your code */ }
gattCharacteristic.addEventListener("valuechanged", onValueChanged);
gattCharacteristic.removeEventListener("valuechanged", onValueChanged);
- or -
gattCharacteristic.onvaluechanged = onValueChanged;
Public Custom Event ValueChanged As TypedEventHandler(Of GattCharacteristic, GattValueChangedEventArgs) 

이벤트 유형

Windows 요구 사항

앱 기능
bluetooth

설명

GattValueChangedEventArgs 개체는 Bluetooth LE 디바이스에서 보낸 특성 값 변경 알림 및 표시 이벤트를 처리하는 데 사용되는 ValueChanged 이벤트 처리기에서 받은 인수를 나타냅니다.

적용 대상

추가 정보