다음을 통해 공유


ProximitySensor.ReadingChanged 이벤트

정의

근접 센서가 새 값을 보고할 때마다 발생합니다.

// Register
event_token ReadingChanged(TypedEventHandler<ProximitySensor, ProximitySensorReadingChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ProximitySensor::ReadingChanged_revoker ReadingChanged(auto_revoke_t, TypedEventHandler<ProximitySensor, ProximitySensorReadingChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ProximitySensor,ProximitySensorReadingChangedEventArgs> ReadingChanged;
function onReadingChanged(eventArgs) { /* Your code */ }
proximitySensor.addEventListener("readingchanged", onReadingChanged);
proximitySensor.removeEventListener("readingchanged", onReadingChanged);
- or -
proximitySensor.onreadingchanged = onReadingChanged;
Public Custom Event ReadingChanged As TypedEventHandler(Of ProximitySensor, ProximitySensorReadingChangedEventArgs) 

이벤트 유형

설명

애플리케이션은 센서 판독값을 얻기 위해 이 이벤트 처리기를 등록할 수 있습니다.

적용 대상