blob: ba6e504065f22f288ce3fab188465c293b7aea4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>
|