Compartir a través de


HumanPresenceSensor.ReadingChanged Evento

Definición

Se produce cada vez que hay un cambio significativo en la lectura del sensor de presencia humana.

// Register
event_token ReadingChanged(TypedEventHandler<HumanPresenceSensor, HumanPresenceSensorReadingChangedEventArgs const&> const& handler) const;

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

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

Tipo de evento

Se aplica a

Consulte también