UIScreen.CurrentMode Property

Definition

The active screen mode of this UIScreen.

public virtual UIKit.UIScreenMode CurrentMode { [Foundation.Export("currentMode", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setCurrentMode:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.CurrentMode : UIKit.UIScreenMode with get, set

Property Value

The UIScreenMode contains the pixel aspect ratio and size.

This value can be null.

Attributes

Remarks

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

Applies to

See also