UIViewController.ShouldAutorotateToInterfaceOrientation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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().