iOS Guides | Samples

UIKit.UIInterfaceOrientationMask Enumeration

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

Syntax

[ObjCRuntime.Native]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, 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: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of 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.