Livecode Wiki

Returns the current heading of the device.Syntax:

mobileCurrentHeading()

Examples:

get mobileCurrentHeading()
put mobileCurrentHeading() into theHeading

Use the mobileCurrentHeading function to find the current heading of the device.

See also: mobileStartTrackingSensor (command),mobileSensorReading (function),mobileCanTrackHeading (function),trackingError (message),headingChanged (message),