Geolocation.setThreshold

From GiderosMobile
Revision as of 15:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")


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).

<syntaxhighlight lang="lua">

Geolocation.setThreshold(threshold)

</source>

Parameters

threshold: (number) the minimum distance threshold