Difference between revisions of "Geolocation.setThreshold"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.8<br/> === Description === <br /> Sets the minimum distance (in meters) threshold. If threshold distance is greater than 0, <br /...")
 
Line 8: Line 8:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= Geolocation.setThreshold(threshold,)
+
Geolocation.setThreshold(threshold)
 
</source>
 
</source>
'''threshold:''' (number) the minimum distance threshold ''''''<br/>
+
'''threshold''': (number) the minimum distance threshold ''''''<br/>

Revision as of 11:17, 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)

'threshold: (number) the minimum distance threshold '