forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheadingChanged.lcdoc
More file actions
42 lines (29 loc) · 1.08 KB
/
Copy pathheadingChanged.lcdoc
File metadata and controls
42 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Name: headingChanged
Type: message
Syntax: headingChanged <pHeading>
Summary:
Sent to the current card of the defaultStack when the heading of the
device changes.
Introduced: 4.6.1
OS: ios, android
Platforms: mobile
Example:
on headingChanged theHeading
updateMapPosition theHeading
-- update the marker on the map showing the current heading
end headingChanged
Parameters:
pHeading:
The heading of the device, in degrees relative to true north if
available, otherwise relative to magnetic north
Description:
Handle the <headingChanged> message if you want to perform tasks when
the heading of the device changes.
The <headingChanged> message is sent to the current card of the
defaultStack when the heading of the device changes.
If heading tracking cannot be started (typically due to a lack of
calibration) then a <trackingError> message is sent instead.
References: iphoneSetHeadingCalibrationTimeout (command),
mobileCanTrackHeading (function), mobileCanTrackLocation (function),
mobileCurrentHeading (function),
iphoneHeadingCalibrationTimeout (function), trackingError (message)