UIViewController.ShouldAutorotateToInterfaceOrientation Method

Definition

true if the UIViewController supports rotation to the specified UIInterfaceOrientation.

[Foundation.Export("shouldAutorotateToInterfaceOrientation:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use both 'GetSupportedInterfaceOrientations' and 'PreferredInterfaceOrientationForPresentation' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldAutorotateToInterfaceOrientation (UIKit.UIInterfaceOrientation toInterfaceOrientation);
abstract member ShouldAutorotateToInterfaceOrientation : UIKit.UIInterfaceOrientation -> bool
override this.ShouldAutorotateToInterfaceOrientation : UIKit.UIInterfaceOrientation -> bool

Parameters

toInterfaceOrientation
UIInterfaceOrientation

The final UIInterfaceOrientation.

Returns

true if the UIViewController supports rotation to the specified UIInterfaceOrientation.

Attributes

Remarks

Application developers should not use this deprecated method. Instead, they should use ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation), PreferredInterfaceOrientationForPresentation(), and GetSupportedInterfaceOrientations().

Applies to