Difference between revisions of "Event.HEADING UPDATE"
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === This event is dispatched on each user heading direction update") |
|||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | <languages /> |
− | === | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | This event is dispatched on each user heading direction update | + | '''<translate>Value</translate>:''' headingUpdate<br/> |
+ | '''<translate>Defined by</translate>:''' [[Special:MyLanguage/Geolocation|Geolocation]]<br/> | ||
+ | === <translate>Descriptio</translate>n === | ||
+ | <translate>This event is dispatched on each user heading direction update</translate> | ||
+ | === <translate>Parameters</translate> === | ||
+ | '''magneticHeading''': (number) <translate>The value in this property represents the heading relative to the magnetic North Pole, which is different from the geographic North Pole. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on.</translate><br/> | ||
+ | '''trueHeading''': (number) <translate>The value in this property represents the heading relative to the geographic North Pole. The value 0 means the device is pointed toward true north, 90 means it is pointed due east, 180 means it is pointed due south, and so on. A negative value indicates that the heading could not be determined.</translate><br/> | ||
+ | '''magneticX''': (number) <translate>Magnetic field in the X direction, in µT.</translate><br/> | ||
+ | '''magneticY''': (number) <translate>Magnetic field in the Y direction, in µT.</translate><br/> | ||
+ | '''magneticZ''': (number) <translate>Magnetic field in the Z direction, in µT.</translate><br/> | ||
+ | |||
+ | {{Geolocation}} |
Revision as of 21:02, 3 December 2019
Available since: Gideros 2011.6
Value: headingUpdate
Defined by: Geolocation
Description
This event is dispatched on each user heading direction update
Parameters
magneticHeading: (number) The value in this property represents the heading relative to the magnetic North Pole, which is different from the geographic North Pole. The value 0 means the device is pointed toward magnetic north, 90 means it is pointed east, 180 means it is pointed south, and so on.
trueHeading: (number) The value in this property represents the heading relative to the geographic North Pole. The value 0 means the device is pointed toward true north, 90 means it is pointed due east, 180 means it is pointed due south, and so on. A negative value indicates that the heading could not be determined.
magneticX: (number) Magnetic field in the X direction, in µT.
magneticY: (number) Magnetic field in the Y direction, in µT.
magneticZ: (number) Magnetic field in the Z direction, in µT.