mobileStartTrackingSensor

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileStartTrackingSensor <sensor>, [<loosely>]
Summary

Starts listening for readings from the named sensor.

Introduced5.5
OSios, android
Platformsmobile
Parameters
NameTypeDescription
sensor

The name of the sensor you wish to start using

"location": starts tracking the location of the device
"heading": starts tracking the heading of the device
"acceleration": enables the accelerometer on the device
"rotation rate": starts tracking the rotation of the device
loosely

How accurate the readings from sensors should be. The default value is false

"true": readings are determined without using accurate (but power consuming) sources such as GPS.
"false": readings are determined using accurate (but power consuming) sources such as GPS.
Example
mobileStartTrackingSensor "location"
mobileStartTrackingSensor "heading",true
RelatedCommand: mobileStopTrackingSensor
Function: mobileCanTrackHeading, mobileCanTrackLocation, mobileCurrentHeading, mobileSensorReading, mobileCurrentLocation
Message: headingChanged, accelerationChanged, locationChanged, rotationRateChanged, trackingError
Description

Use the mobileStartTrackingSensor command to start listening for readings from a sensor.

The mobileStartTrackingSensor command starts listening for readings from the named sensor.