Difference between revisions of "Geolocation.setThreshold"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
is 0 (as frequently as possible).<br /> | is 0 (as frequently as possible).<br /> | ||
<br /></translate> | <br /></translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
Geolocation.setThreshold(threshold) | Geolocation.setThreshold(threshold) | ||
− | </ | + | </syntaxhighlight> |
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''threshold''': (number) <translate>the minimum distance threshold</translate> <br/> | '''threshold''': (number) <translate>the minimum distance threshold</translate> <br/> | ||
{{Geolocation}} | {{Geolocation}} |
Latest revision as of 14:29, 13 July 2023
Available since: Gideros 2012.8
Class: Geolocation
Description
Sets the minimum distance (in meters) threshold. If threshold distance is greater than 0,
a location event will only be dispatched if the device moves by threshold. The default value
is 0 (as frequently as possible).
Geolocation.setThreshold(threshold)
Parameters
threshold: (number) the minimum distance threshold