Gyrometer.GetCurrentReading Method

Gets the current gyrometer reading.

Syntax

public:
GyrometerReading^ GetCurrentReading()  

Return value

Type: GyrometerReading 

The current gyrometer reading.

Remarks

An application may use this method to poll the sensor for the current reading as an alternative to registering a ReadingChanged event handler. This would be the preferred alternative for an application that updates its user interface at a specific frame rate. Whether polling once or many times, the application must establish a desired ReportInterval. This informs the sensor driver that resources should be allocated to satisfy subsequent polling requests.

Before using the return value from this method, the application must first check that the value is not null.

Requirements

Namespace: Windows.Devices.Sensors

Metadata: windows.winmd

See also

Reference

Gyrometer Class

Gyrometer Members

Windows.Devices.Sensors Namespace