UIDeviceOrientation Enum

Definition

An enumeration of device orientations.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIDeviceOrientation
type UIDeviceOrientation = 
Inheritance
UIDeviceOrientation
Attributes

Fields

FaceDown 6

The device is facing downward.

FaceUp 5

The device is facing 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.

Portrait 1

The bottom of the device is pointing downward.

PortraitUpsideDown 2

The bottom of the device is pointing upward.

Unknown 0

The orientation of the device cannot be determined.

Remarks

The current device orientation.

Applies to