The azimuth (orientation) of the user’s device, relative to true or magnetic north.
- iOS 3.0+
- macOS 10.7+
- UIKit for Mac 13.0+Beta
- Core Location
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 do not create instances of this class yourself, nor do you subclass it. Instead, you receive instances of this class through the delegate assigned to the
CLLocation object whose
start method you called.