1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>Geolocation - 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><br/>
<br/>
<h1>Geolocation</h1>
<code><span class="keyword">object </span><span class="identifier">Geolocation</span></code>
<p>Main geolocation object based on webview api.</p>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="clear-watch.html">clearWatch</a></p>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">clearWatch</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.cordova.Geolocation$clearWatch(kotlin.String)/watchId">watchId</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Clear the given watch.</p>
</td>
</tr>
<tr>
<td>
<p><a href="get-current-position.html">getCurrentPosition</a></p>
</td>
<td>
<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>
</td>
</tr>
<tr>
<td>
<p><a href="watch-position.html">watchPosition</a></p>
</td>
<td>
<code><span class="keyword">suspend</span> <span class="keyword">fun </span><span class="identifier">watchPosition</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.cordova.Geolocation$watchPosition(kotlin.Boolean, kotlin.Number, kotlin.Number, kotlin.Function1((pl.treksoft.kvision.cordova.Result((pl.treksoft.kvision.cordova.Position, pl.treksoft.kvision.cordova.GeolocationException)), kotlin.Unit)))/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$watchPosition(kotlin.Boolean, kotlin.Number, kotlin.Number, kotlin.Function1((pl.treksoft.kvision.cordova.Result((pl.treksoft.kvision.cordova.Position, pl.treksoft.kvision.cordova.GeolocationException)), kotlin.Unit)))/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$watchPosition(kotlin.Boolean, kotlin.Number, kotlin.Number, kotlin.Function1((pl.treksoft.kvision.cordova.Result((pl.treksoft.kvision.cordova.Position, pl.treksoft.kvision.cordova.GeolocationException)), kotlin.Unit)))/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="identifier" id="pl.treksoft.kvision.cordova.Geolocation$watchPosition(kotlin.Boolean, kotlin.Number, kotlin.Number, kotlin.Function1((pl.treksoft.kvision.cordova.Result((pl.treksoft.kvision.cordova.Position, pl.treksoft.kvision.cordova.GeolocationException)), kotlin.Unit)))/resultCallback">resultCallback</span><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><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span></code>
<p>Watch location changes.</p>
</td>
</tr>
</tbody>
</table>
<h3>Extension Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html">createInstance</a></p>
</td>
<td>
<code><span class="keyword">fun </span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">.</span><span class="identifier">createInstance</span><span class="symbol">(</span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.utils$createInstance(kotlin.Any, kotlin.Array((kotlin.Any)))/args">args</span><span class="symbol">:</span> <span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html#T"><span class="identifier">T</span></a></code>
<p>Helper function for creating JavaScript objects from dynamic constructors.</p>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
|