mobileCanTrackLocation

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileCanTrackLocation()
Summary

Returns true if the device can track the location using GPS, false otherwise.

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

The mobileCanTrackLocation function returns true if the device can track the location and false otherwise.

RelatedCommand: mobileStopTrackingSensor, mobileStartTrackingSensor
Function: mobileSensorReading, mobileCurrentLocation
Message: trackingError, locationChanged
Description

Use the mobileCanTrackLocation function to check whether the device has the necessary hardware support for tracking the location using GPS.