Instance Property

isGeneratingDeviceOrientationNotifications

A Boolean value that indicates whether the receiver generates orientation notifications (true) or not (false).

Declaration

var isGeneratingDeviceOrientationNotifications: Bool { get }

Discussion

If the value of this property is true, the shared UIDevice object posts a UIDeviceOrientationDidChange notification when the device changes orientation. If the value is false, it generates no orientation notifications. Device orientation notifications can only be generated between calls to the beginGeneratingDeviceOrientationNotifications() and endGeneratingDeviceOrientationNotifications() methods.

See Also

Getting the Device Orientation

var orientation: UIDeviceOrientation

Returns the physical orientation of the device.

func beginGeneratingDeviceOrientationNotifications()

Begins the generation of notifications of device orientation changes.

func endGeneratingDeviceOrientationNotifications()

Ends the generation of notifications of device orientation changes.