UIInterfaceOrientationMask UIInterfaceOrientationMask Enum

Definition

An enumeration of values that specify the available orientations of the user interface.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Fields

All All 30

The UIViewController supports all interface orientations.

AllButUpsideDown AllButUpsideDown 26

The UIViewController supports all orientations except upside-down portrait.

Landscape Landscape 24

The UIViewController supports both landscape-left and landscape-right orientations.

LandscapeLeft LandscapeLeft 16

The UIViewController supports landscape-left orientation.

LandscapeRight LandscapeRight 8

The UIViewController supports landscape-right orientation.

Portrait Portrait 2

The long side is vertical.

PortraitUpsideDown PortraitUpsideDown 4

The UIViewController supports upside-down portrait orientation.

Remarks

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

Applies to

See also