Livecode Wiki
Advertisement

Starts tracking the heading of the device on iOS. Syntax:

iphoneStartTrackingHeading

Examples:

iphoneStartTrackingHeading
if tTrackingOn is "true" then
  iphoneStartTrackingHeading
end if

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

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

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

See Also: mobileCanTrackLocation Function, mobileCanTrackHeading Function, mobileCurrentHeading Function, iphoneHeadingCalibrationTimeout Function, iphoneStopTrackingHeading Command, iphoneSetHeadingCalibrationTimeout Command, headingChanged Message, trackingError Message

Advertisement