forked from xamarin/Essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeolocationRequest.uwp.cs
32 lines (31 loc) · 984 Bytes
/
GeolocationRequest.uwp.cs
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
using System;
using System.Collections.Generic;
using System.Text;
namespace Xamarin.Essentials
{
public partial class GeolocationRequest
{
internal uint PlatformDesiredAccuracy
{
get
{
switch (DesiredAccuracy)
{
case GeolocationAccuracy.Lowest:
return 3000;
case GeolocationAccuracy.Low:
return 1000;
case GeolocationAccuracy.Default:
case GeolocationAccuracy.Medium:
return 100;
case GeolocationAccuracy.High:
return 10; // Equivalent to PositionAccuracy.High
case GeolocationAccuracy.Best:
return 1;
default:
return 500; // Equivalent to PositionAccuracy.Default
}
}
}
}
}