Difference between revisions of "Geolocation.setThreshold"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2012.8<br/> | '''Available since:''' Gideros 2012.8<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Sets the minimum distance (in meters) threshold. If threshold distance is greater than 0, <br /> | Sets the minimum distance (in meters) threshold. If threshold distance is greater than 0, <br /> | ||
a location event will only be dispatched if the device moves by threshold. The default value <br /> | a location event will only be dispatched if the device moves by threshold. The default value <br /> | ||
is 0 (as frequently as possible).<br /> | is 0 (as frequently as possible).<br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
Geolocation.setThreshold(threshold) | Geolocation.setThreshold(threshold) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''threshold''': (number) the minimum distance threshold <br/> | + | '''threshold''': (number) <translate>the minimum distance threshold</translate> <br/> |
Revision as of 13:33, 23 August 2018
Available since: Gideros 2012.8
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