UIKit.UIViewController.WillRotate Method
Called prior to a user interface rotation.

Syntax

[Foundation.Export("willRotateToInterfaceOrientation:duration:")]
[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_8_0, Message="Starting with iOS 8, you should use Adaptive View Controllers instead")]
public virtual void WillRotate (UIInterfaceOrientation toInterfaceOrientation, double duration)

Parameters

toInterfaceOrientation
The new interface orientation.
duration
The duration of the rotation, in seconds.

Remarks

Application developers may override this method to disable expensive drawing operations, media playback, or other resource-intensive operations during a user interface rotation.

When this method is called, the UIViewController.InterfaceOrientation is set to the original UIKit.UIInterfaceOrientation.

Requirements

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