SimpleOrientation SimpleOrientation SimpleOrientation SimpleOrientation SimpleOrientation Enum

Definition

Indicates the orientation of the device.

public : enum class SimpleOrientation
enum class winrt::Windows::Devices::Sensors::SimpleOrientation : int32_t
public enum SimpleOrientation
Public Enum SimpleOrientation
var value = Windows.Devices.Sensors.SimpleOrientation.facedown;
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Facedown Facedown Facedown Facedown Facedown 5

The device is face-down and the display is hidden from the user.

Faceup Faceup Faceup Faceup Faceup 4

The device is face-up and the display is visible to the user.

NotRotated NotRotated NotRotated NotRotated NotRotated 0

The device is not rotated.

Rotated180DegreesCounterclockwise Rotated180DegreesCounterclockwise Rotated180DegreesCounterclockwise Rotated180DegreesCounterclockwise Rotated180DegreesCounterclockwise 2

The device is rotated 180-degrees counter-clockwise.

Rotated270DegreesCounterclockwise Rotated270DegreesCounterclockwise Rotated270DegreesCounterclockwise Rotated270DegreesCounterclockwise Rotated270DegreesCounterclockwise 3

The device is rotated 270-degrees counter-clockwise.

Rotated90DegreesCounterclockwise Rotated90DegreesCounterclockwise Rotated90DegreesCounterclockwise Rotated90DegreesCounterclockwise Rotated90DegreesCounterclockwise 1

The device is rotated 90-degrees counter-clockwise.

Remarks

The Faceup and Facedown values are supported for tablet 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".