Indicates the orientation of the device.
public enum class SimpleOrientation
The Faceup and Facedown values are supported for slate devices.
You can use them to support power management: As long as the orientation is Faceup, your application will continue to run; but, once the orientation is Facedown, your application can pause or enter “sleep mode”.
| Member | Value | Description |
|---|---|---|
| Facedown | 5 | The device is face-down and the display is hidden from the user. |
| Faceup | 4 | The device is face-up and the display is visible to the user. |
| NotRotated | 0 | The device is not rotated. This corresponds to portrait-up. |
| Rotated180DegreesCounterclockwise | 2 | The device is rotated 180-degrees counter-clockwise. This corresponds to portrait-down. |
| Rotated270DegreesCounterclockwise | 3 | The device is rotated 270-degrees counter-clockwise. This corresponds to landscape-right. |
| Rotated90DegreesCounterclockwise | 1 | The device is rotated 90-degrees counter-clockwise. This corresponds to landscape-left. |
Namespace: Windows.Devices.Sensors
Metadata: windows.winmd