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 /...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.8<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.8<br/>
<br />
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/Geolocation|Geolocation]]<br/>
 +
=== <translate>Description</translate> ===
 +
<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">
+
<syntaxhighlight lang="lua">
= Geolocation.setThreshold(threshold,)
+
Geolocation.setThreshold(threshold)
</source>
+
</syntaxhighlight>
'''threshold:''' (number) the minimum distance threshold ''''''<br/>
+
=== <translate>Parameters</translate> ===
 +
'''threshold''': (number) <translate>the minimum distance threshold</translate> <br/>
 +
 
 +
{{Geolocation}}

Latest revision as of 15: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