回答編集履歴
2
追記
test
CHANGED
@@ -27,3 +27,11 @@
|
|
27
27
|
});
|
28
28
|
|
29
29
|
```
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
追記
|
34
|
+
|
35
|
+
amayさん。フォローありがとうございました。
|
36
|
+
|
37
|
+
そちらが実質ベストアンサーなので、後からこれを見た人はこっちではなくamayさんの回答の方を参考にしてください。
|
1
Taskの使用
test
CHANGED
@@ -6,13 +6,19 @@
|
|
6
6
|
|
7
7
|
```cs
|
8
8
|
|
9
|
-
Device.StartTimer(TimeSpan.FromMilliseconds(5000),
|
9
|
+
Device.StartTimer(TimeSpan.FromMilliseconds(5000), () =>
|
10
10
|
|
11
11
|
{
|
12
12
|
|
13
|
-
|
13
|
+
Task.Run( async () => {
|
14
14
|
|
15
|
+
|
16
|
+
|
17
|
+
position = await geolocator.GetPositionAsync(timeout: new TimeSpan(10000));
|
18
|
+
|
15
|
-
lists.Add(new GeoLocationData { GeoLocation = position.Latitude + " : " + position.Longitude });
|
19
|
+
lists.Add(new GeoLocationData { GeoLocation = position.Latitude + " : " + position.Longitude });
|
20
|
+
|
21
|
+
});
|
16
22
|
|
17
23
|
|
18
24
|
|