Enumeration

CLDeviceOrientation

Constants indicating the physical orientation of the device.

Topics

Constants

case unknown

The orientation is currently not known.

case portrait

The device is in portrait mode, with the device held upright and the home button at the bottom.

case portraitUpsideDown

The device is in portrait mode but upside down, with the device held upright and the home button at the top.

case landscapeLeft

The device is in landscape mode, with the device held upright and the home button on the right side.

case landscapeRight

The device is in landscape mode, with the device held upright and the home button on the left side.

case faceUp

The device is held parallel to the ground with the screen facing upwards.

case faceDown

The device is held parallel to the ground with the screen facing downwards.

See Also

Initiating Heading Updates

func startUpdatingHeading()

Starts the generation of updates that report the user’s current heading.

func stopUpdatingHeading()

Stops the generation of heading updates.

func dismissHeadingCalibrationDisplay()

Dismisses the heading calibration view from the screen immediately.

var headingFilter: CLLocationDegrees

The minimum angular change (measured in degrees) required to generate new heading events.

var headingOrientation: CLDeviceOrientation

The device orientation to use when computing heading values.