CLDeviceOrientation Enum

Definition

An enumeration whose values represent the device's physical orientation.

public enum CLDeviceOrientation
type CLDeviceOrientation = 
Inheritance
CLDeviceOrientation

Fields

FaceDown 6

The device is parallel to the ground and the face is pointing towards the ground.

FaceUp 5

The device is parallel to the ground and the face is pointing 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.

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.

Unknown 0

The device's orientation is unavailable.

Applies to