UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation Method
true if the UIKit.UIViewController supports rotation to the specified UIKit.UIInterfaceOrientation.

Syntax

[Foundation.Export("shouldAutorotateToInterfaceOrientation:")]
[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_6_0, Introduced=ObjCRuntime.Platform.iOS_2_0, Message="Use both GetSupportedInterfaceOrientations and PreferredInterfaceOrientationForPresentation instead.")]
public virtual bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation)

Parameters

toInterfaceOrientation
The final UIKit.UIInterfaceOrientation.

Returns

true if the UIKit.UIViewController supports rotation to the specified UIKit.UIInterfaceOrientation.

Remarks

Application developers should not use this deprecated method. Instead, they should use UIViewController.ShouldAutorotate, UIViewController.PreferredInterfaceOrientationForPresentation, and UIViewController.GetSupportedInterfaceOrientations.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0