iphoneStartTrackingHeading

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
iphoneStartTrackingHeading
Summary

Starts tracking the heading of the device.

Introduced4.6.1
OSios
Platformsmobile
Example
iphoneStartTrackingHeading
if tTrackingOn is "true" then
   iphoneStartTrackingHeading
end if
RelatedCommand: iphoneStopTrackingHeading, iphoneSetHeadingCalibrationTimeout
Function: mobileCanTrackHeading, mobileCanTrackLocation, mobileCurrentHeading, iphoneHeadingCalibrationTimeout
Message: trackingError, headingChanged
Description

Use the iphoneStartTrackingHeading command to start tracking the current heading of the device.

The iphoneStartTrackingHeading command starts tracking the heading of the device using the digital compass.

Starting to track the heading may request the user to calibrate the magnetometer.

Note: The digital compass is only supported in iOS 4.0 and later.