Skip to main content

trackingError

Type​

message

Summary​

Sent when sensor tracking could not be started or is terminated.

Syntax​

trackingError <pSensor>, <pErrorMessage>

Description​

The trackingError message is sent when sensor tracking could not be started or is terminated.

The trackingError message is sent to the current card of the default stack when sensor tracking could not be started or sensor tracking is terminated.

Parameters​

NameTypeDescription

pSensor

enum

the name of the sensor that is the source of the error

  • "acceleration"
  • "heading"
  • "location"
  • "rotation rate"

pErrorMessage

The error message, giving the reason for the error

Examples​

on trackingError pSensor, pError
answer "There was an error with sensor" && pSensor
end trackingError

command: mobileStopTrackingSensor, mobileStartTrackingSensor

message: accelerationChanged, rotationRateChanged, locationChanged, headingChanged

Compatibility and Support​

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?