Class

CLHeading

A CLHeading object contains heading data generated by a CLLocationManager object. The heading data consists of computed values for true and magnetic north. It also includes the raw data for the three-dimensional vector used to compute those values.

Overview

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 CLLocationManager object whose startUpdatingHeading() method you called.

Symbols

Accessing the Heading Attributes

var magneticHeading: CLLocationDirection

The heading (measured in degrees) relative to magnetic north.

var trueHeading: CLLocationDirection

The heading (measured in degrees) relative to true north.

var headingAccuracy: CLLocationDirection

The maximum deviation (measured in degrees) between the reported heading and the true geomagnetic heading.

var timestamp: Date

The time at which this heading was determined.

Accessing the Raw Heading Data

var x: CLHeadingComponentValue

The geomagnetic data (measured in microteslas) for the x-axis.

var y: CLHeadingComponentValue

The geomagnetic data (measured in microteslas) for the y-axis.

var z: CLHeadingComponentValue

The geomagnetic data (measured in microteslas) for the z-axis.

Constants

CLHeadingComponentValue

A type used to report magnetic differences reported by the onboard hardware.

Relationships

Inherits From