OrientationSensor.ReadingChanged Event

Occurs each time the orientation sensor reports a new sensor reading.

Syntax

public:
event TypedEventHandler<OrientationSensor^ , OrientationSensorReadingChangedEventArgs^ >^ ReadingChanged {
         EventRegistrationToken add (TypedEventHandler<OrientationSensor^ , OrientationSensorReadingChangedEventArgs^ >^ 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.

The OrientationSensor returns a quaternion and a rotation matrix.

Requirements

Namespace: Windows.Devices.Sensors

Metadata: windows.winmd

See also

Reference

OrientationSensor Class

OrientationSensor Members

Windows.Devices.Sensors Namespace