UIDeviceOrientation 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
UIDeviceOrientationUIDeviceOrientation
Attributes

Fields

FaceDown FaceDown 6

The device is facing downward.

FaceUp FaceUp 5

The device is facing upward.

LandscapeLeft LandscapeLeft 3

The bottom of the device is pointing to the left.

LandscapeRight LandscapeRight 4

The bottom of the device is pointing to the right.

Portrait Portrait 1

The bottom of the device is pointing downward.

PortraitUpsideDown PortraitUpsideDown 2

The bottom of the device is pointing upward.

Unknown Unknown 0

The orientation of the device cannot be determined.

Remarks

The current device orientation.

Applies to