Contents

CLHeading

The orientation of the user’s device, relative to true or magnetic north.

Declaration

class CLHeading

Overview

A CLHeading object contains computed values for the device’s azimuth (orientation) relative to true or magnetic north. It also includes the raw data for the three-dimensional vector used to compute those values. A navigation app might use the information to rotate a map so that it reflects the direction that the user is facing.

Typically, you don’t create instances of this class yourself, nor do you subclass it. Instead, you receive instances of this class through the delegate assigned to the CLLocationManager object whose startUpdatingHeading() method you called.

Topics

Getting the heading values

Getting the raw heading data

Getting the event timestamp

Initializers

See Also

Compass headings