mobileCanTrackHeading

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileCanTrackHeading()
Summary

Returns true if the device can track the heading using a digital compass, false otherwise.

Introduced4.6.1
OSios, android
Platformsmobile
Example
get mobileCanTrackHeading()
if mobileCanTrackHeading() is "true" then 
  answer "The heading can be tracked"
end if
Values
NameTypeDescription
return

The mobileCanTrackHeading function returns true if the device can track the heading and false otherwise.

RelatedCommand: mobileStopTrackingSensor, mobileStartTrackingSensor
Function: mobileSensorReading
Message: trackingError, headingChanged
Description

Use the mobileCanTrackHeading function to check whether the device has the necessary hardware support for tracking the heading using a digital compass.