SimpleOrientation SimpleOrientation SimpleOrientation SimpleOrientation Enum

Indicates the orientation of the device.

Syntax

Declaration

public enum SimpleOrientationpublic enum SimpleOrientationPublic Enum SimpleOrientationpublic enum SimpleOrientation

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".

Fields

Facedown
Facedown
Facedown
Facedown

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

Faceup
Faceup
Faceup
Faceup

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

NotRotated
NotRotated
NotRotated
NotRotated

The device is not rotated.

Rotated180DegreesCounterclockwise
Rotated180DegreesCounterclockwise
Rotated180DegreesCounterclockwise
Rotated180DegreesCounterclockwise

The device is rotated 180-degrees counter-clockwise.

Rotated270DegreesCounterclockwise
Rotated270DegreesCounterclockwise
Rotated270DegreesCounterclockwise
Rotated270DegreesCounterclockwise

The device is rotated 270-degrees counter-clockwise.

Rotated90DegreesCounterclockwise
Rotated90DegreesCounterclockwise
Rotated90DegreesCounterclockwise
Rotated90DegreesCounterclockwise

The device is rotated 90-degrees counter-clockwise.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Devices.Sensors.dll