Condividi tramite


HumanPresenceSensor.ReadingChanged Evento

Definizione

Si verifica ogni volta che si verifica una modifica significativa nella lettura del sensore di presenza umana.

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

Si applica a

Vedi anche