Partager via


HumanPresenceSensor.ReadingChanged Événement

Définition

Se produit chaque fois qu’il y a un changement significatif dans la lecture du capteur de présence humaine.

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

Type d'événement

S’applique à

Voir aussi