blob: 91033f78ecf87c1e4a32ecd1ec1d56ece42e3c0d (
plain)
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
|
using Xamarin.Forms.Maps.iOS;
#if __UNIFIED__
using UIKit;
#else
using MonoTouch.UIKit;
#endif
namespace Xamarin
{
public static class FormsMaps
{
static bool s_isInitialized;
static bool? s_isiOs8OrNewer;
internal static bool IsiOs8OrNewer
{
get
{
if (!s_isiOs8OrNewer.HasValue)
s_isiOs8OrNewer = UIDevice.CurrentDevice.CheckSystemVersion(8, 0);
return s_isiOs8OrNewer.Value;
}
}
public static void Init()
{
if (s_isInitialized)
return;
GeocoderBackend.Register();
s_isInitialized = true;
}
}
}
|