Enumeration

CLDeviceOrientation

Constants indicating the physical orientation of the device.

Declaration

typedef enum CLDeviceOrientation : int {
    ...
} CLDeviceOrientation;

Topics

Device Orientations

CLDeviceOrientationUnknown

The orientation is currently not known.

CLDeviceOrientationPortrait

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

CLDeviceOrientationPortraitUpsideDown

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

CLDeviceOrientationLandscapeLeft

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

CLDeviceOrientationLandscapeRight

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

CLDeviceOrientationFaceUp

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

CLDeviceOrientationFaceDown

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

See Also

Initiating Heading Updates

- startUpdatingHeading

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

- stopUpdatingHeading

Stops the generation of heading updates.

- dismissHeadingCalibrationDisplay

Dismisses the heading calibration view from the screen immediately.

headingFilter

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

kCLHeadingFilterNone

A constant indicating that all header values should be reported.

headingOrientation

The device orientation to use when computing heading values.