diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-10-26 00:17:24 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-10-26 00:17:24 +0200 |
commit | fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb (patch) | |
tree | 911c8e9b208b9ba77f00531668d1d99b40fcb8e3 /api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html | |
parent | 4f5db77ec2db6c87cb93ceb9f7ea9ab311247f17 (diff) | |
download | kvision-fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb.tar.gz kvision-fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb.tar.bz2 kvision-fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb.zip |
API documentation for KVision 2.0.0
Diffstat (limited to 'api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html')
-rw-r--r-- | api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html b/api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html new file mode 100644 index 00000000..ba6e5040 --- /dev/null +++ b/api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html @@ -0,0 +1,22 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>Geolocation.getCurrentPosition - kvision</title> +<link rel="stylesheet" href="../../../style.css"> +</HEAD> +<BODY> +<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.cordova</a> / <a href="index.html">Geolocation</a> / <a href="./get-current-position.html">getCurrentPosition</a><br/> +<br/> +<h1>getCurrentPosition</h1> +<a name="pl.treksoft.kvision.cordova.Geolocation$getCurrentPosition(kotlin.Boolean, kotlin.Number, kotlin.Number)"></a> +<code><span class="keyword">suspend</span> <span class="keyword">fun </span><span class="identifier">getCurrentPosition</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.cordova.Geolocation$getCurrentPosition(kotlin.Boolean, kotlin.Number, kotlin.Number)/enableHighAccuracy">enableHighAccuracy</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a> <span class="symbol">=</span> true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.cordova.Geolocation$getCurrentPosition(kotlin.Boolean, kotlin.Number, kotlin.Number)/timeout">timeout</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html"><span class="identifier">Number</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.cordova.Geolocation$getCurrentPosition(kotlin.Boolean, kotlin.Number, kotlin.Number)/maximumAge">maximumAge</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html"><span class="identifier">Number</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><a href="../-result/index.html"><span class="identifier">Result</span></a><span class="symbol"><</span><a href="../-position/index.html"><span class="identifier">Position</span></a><span class="symbol">,</span> <a href="../-geolocation-exception/index.html"><span class="identifier">GeolocationException</span></a><span class="symbol">></span></code> +<p>Get current location.</p> +<h3>Parameters</h3> +<p><a name="enableHighAccuracy"></a> +<code>enableHighAccuracy</code> - provides a hint that the application needs the best possible results</p> +<p><a name="timeout"></a> +<code>timeout</code> - the maximum length of time (milliseconds) that is allowed to pass before getting the result</p> +<p><a name="maximumAge"></a> +<code>maximumAge</code> - accept a cached position whose age is no greater than the specified time in milliseconds</p> +</BODY> +</HTML> |