maui-linux/Xamarin.Forms.Maps.iOS/FormsMaps.cs

29 строки
500 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using UIKit;
using Xamarin.Forms.Maps.iOS;
2016-03-22 23:02:25 +03:00
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;
}
}
}