UIKit.UIScreen.CurrentMode Property
The active screen mode of this UIScreen.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_3_2)]
[get: Foundation.Export("currentMode")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_3_2)]
[set: Foundation.Export("setCurrentMode:")]
[set: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_3_2)]
public virtual UIScreenMode CurrentMode { get; set; }

See Also

UIScreen.AvailableModes
UIScreen.PreferredMode

Value

The UIKit.UIScreenMode contains the pixel aspect ratio and size.

This value can be null.

Remarks

Application developers should note that the UIScreenMode.Size value is constant. That is, it's System.Drawing.SizeF.Height and System.Drawing.SizeF.Width do not switch due to the device's orientation.

Requirements

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