iOS Guides | Samples

MonoTouch.UIKit.UIInterfaceOrientation Enumeration

An enumeration of values that specify the orientation of the user interface.

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIInterfaceOrientation

Remarks

The UIInterfaceOrientation represents the rotation of the user interface and, in portrait modes, is the opposite of the UIDevice.Orientation property. For instance, if the device is rotated 90 degrees clockwise from normal portrait mode such that the home button is to the left, the UIViewController.InterfaceOrientation property will be UIInterfaceOrientation.LandscapeLeft but the UIDevice.Orientation property will be UIDeviceOrientation.LandscapeRight.

Members

Member NameDescription
LandscapeLeftThe home button is to the left.
LandscapeRightThe home button is to the right.
PortraitThe home button is at the bottom.
PortraitUpsideDownThe home button is at the top.
UnknownThe orientation is unknown.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIInterfaceOrientation are listed below.

See Also: Enum

Public Fields

LandscapeLeftUIInterfaceOrientation. The home button is to the left.
LandscapeRightUIInterfaceOrientation. The home button is to the right.
PortraitUIInterfaceOrientation. The home button is at the bottom.
PortraitUpsideDownUIInterfaceOrientation. The home button is at the top.
UnknownUIInterfaceOrientation. The orientation is unknown.