aboutsummaryrefslogtreecommitdiff
path: root/api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-10-26 00:17:24 +0200
committerRobert Jaros <rjaros@finn.pl>2019-10-26 00:17:24 +0200
commitfb7ff5b8bf2073a8d7b78011b9edffc830dc63cb (patch)
tree911c8e9b208b9ba77f00531668d1d99b40fcb8e3 /api1/pl.treksoft.kvision.cordova/-geolocation/get-current-position.html
parent4f5db77ec2db6c87cb93ceb9f7ea9ab311247f17 (diff)
downloadkvision-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.html22
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>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.cordova</a>&nbsp;/&nbsp;<a href="index.html">Geolocation</a>&nbsp;/&nbsp;<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>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;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>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html"><span class="identifier">Number</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;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>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html"><span class="identifier">Number</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="../-result/index.html"><span class="identifier">Result</span></a><span class="symbol">&lt;</span><a href="../-position/index.html"><span class="identifier">Position</span></a><span class="symbol">,</span>&nbsp;<a href="../-geolocation-exception/index.html"><span class="identifier">GeolocationException</span></a><span class="symbol">&gt;</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>