Share via


UIDeviceOrientation Enum

Definition

An enumeration of device orientations.

[ObjCRuntime.Native]
public enum UIDeviceOrientation
[<ObjCRuntime.Native>]
type UIDeviceOrientation = 
Inheritance
UIDeviceOrientation
Attributes

Fields

Name Value Description
Unknown 0

The orientation of the device cannot be determined.

Portrait 1

The bottom of the device is pointing downward.

PortraitUpsideDown 2

The bottom of the device is pointing upward.

LandscapeLeft 3

The bottom of the device is pointing to the left.

LandscapeRight 4

The bottom of the device is pointing to the right.

FaceUp 5

The device is facing upward.

FaceDown 6

The device is facing downward.

Remarks

The current device orientation.

Applies to