SimpleOrientationSensor.GetCurrentOrientation Method

Gets the default simple orientation sensor.

Syntax

public:
SimpleOrientation GetCurrentOrientation()  

Return value

Type: SimpleOrientation 

The default simple orientation sensor.

Remarks

An application may use this method to poll the sensor for the current reading as an alternative to registering a OrientationChanged event handler. This would be the preferred alternative for an application that updates its user interface at a specific frame rate.

Requirements

Namespace: Windows.Devices.Sensors

Metadata: windows.winmd

See also

Reference

SimpleOrientationSensor Class

SimpleOrientationSensor Members

Windows.Devices.Sensors Namespace