Contents

locationManager(_:didUpdateHeading:)

Tells the delegate that the location manager received updated heading information.

Declaration

optional func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading)

Parameters

  • manager:

    The location manager object that generated the update event.

  • newHeading:

    The new heading data.

Mentioned in

Discussion

Implementation of this method is optional but expected if you start heading updates using the startUpdatingHeading() method.

The location manager object calls this method after you initially start the heading service. Subsequent events are delivered when the previously reported value changes by more than the value specified in the headingFilter property of the location manager object.

See Also

Receiving heading updates