LightSensor.ReadingChanged Event

Occurs each time the ambient-light sensor reports a new sensor reading.

Syntax

public:
event TypedEventHandler<LightSensor^ , LightSensorReadingChangedEventArgs^ >^ ReadingChanged {
         EventRegistrationToken add (TypedEventHandler<LightSensor^ , LightSensorReadingChangedEventArgs^ >^ value);
         void remove (EventRegistrationToken token);
}  

Remarks

An application may register this event handler to obtain sensor readings. The application must establish a desired ReportInterval. This informs the sensor driver that resources should be allocated to satisfy the requirements of the application.

Applications can set the frequency of this event by setting the ReportInterval property.

Requirements

Namespace: Windows.Devices.Sensors

Metadata: windows.winmd

See also

Reference

LightSensor Class

LightSensor Members

Windows.Devices.Sensors Namespace