UIDeviceOrientationExtensions Class

Definition

Extension methods for the UIDeviceOrientation class.

public static class UIDeviceOrientationExtensions
type UIDeviceOrientationExtensions = class
Inheritance
UIDeviceOrientationExtensions

Methods

IsFlat(UIDeviceOrientation)

Returns true if the device is lying on either its back or face.

IsLandscape(UIDeviceOrientation)

Returns true if one of the long edges of the device is lowest.

IsPortrait(UIDeviceOrientation)

Returns true if one of the short edges is lowest.

Applies to