CLDeviceOrientation Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration whose values represent the device's physical orientation.
public enum CLDeviceOrientation
type CLDeviceOrientation =
- Inheritance
-
CLDeviceOrientation
Fields
Name | Value | Description |
---|---|---|
Unknown | 0 | The device's orientation is unavailable. |
Portrait | 1 | The device is in an upright position, with the home button towards the ground. |
PortraitUpsideDown | 2 | The device is in an upright position, with the home button towards the sky. |
LandscapeLeft | 3 | The device is in an upright position, with the home button to the right. |
LandscapeRight | 4 | The device is in an upright position, with the home button to the left. |
FaceUp | 5 | The device is parallel to the ground and the face is pointing towards the sky. |
FaceDown | 6 | The device is parallel to the ground and the face is pointing towards the ground. |