iOS Guides | Samples

MonoTouch.UIKit.UIInterfaceOrientationMask Enumeration

An enumeration of values that specify the available orientations 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)]
[System.Flags]
public enum UIInterfaceOrientationMask

See Also

Remarks

A UIViewController may support more than one UIInterfaceOrientation. This value, returned from UIViewController.GetSupportedInterfaceOrientations and UIApplication.SupportedInterfaceOrientationsForWindow, specifies which orientations are supported by the application.

Members

Member NameDescription
AllThe UIViewController supports all interface orientations.
AllButUpsideDownThe UIViewController supports all orientations except upside-down portrait.
LandscapeThe UIViewController supports both landscape-left and landscape-right orientations.
LandscapeLeftThe UIViewController supports landscape-left orientation.
LandscapeRightThe UIViewController supports landscape-right orientation.
PortraitThe long side is vertical.
PortraitUpsideDownThe UIViewController supports upside-down portrait orientation.

Requirements

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

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

See Also: Enum

Public Fields

AllUIInterfaceOrientationMask. The UIViewController supports all interface orientations.
AllButUpsideDownUIInterfaceOrientationMask. The UIViewController supports all orientations except upside-down portrait.
LandscapeUIInterfaceOrientationMask. The UIViewController supports both landscape-left and landscape-right orientations.
LandscapeLeftUIInterfaceOrientationMask. The UIViewController supports landscape-left orientation.
LandscapeRightUIInterfaceOrientationMask. The UIViewController supports landscape-right orientation.
PortraitUIInterfaceOrientationMask. The long side is vertical.
PortraitUpsideDownUIInterfaceOrientationMask. The UIViewController supports upside-down portrait orientation.