#if __MOBILE__
using UIKit;
using Xamarin.Forms.Maps.iOS;
#else
using Xamarin.Forms.Maps.MacOS;
#endif
namespace Xamarin
{
public static class FormsMaps
static bool s_isInitialized;
static bool? s_isiOs8OrNewer;
static bool? s_isiOs9OrNewer;
static bool? s_isiOs10OrNewer;
internal static bool IsiOs8OrNewer
get
if (!s_isiOs8OrNewer.HasValue)
s_isiOs8OrNewer = UIDevice.CurrentDevice.CheckSystemVersion(8, 0);
return s_isiOs8OrNewer.Value;
}
internal static bool IsiOs9OrNewer
if (!s_isiOs9OrNewer.HasValue)
s_isiOs9OrNewer = UIDevice.CurrentDevice.CheckSystemVersion(9, 0);
return s_isiOs9OrNewer.Value;
internal static bool IsiOs10OrNewer
if (!s_isiOs10OrNewer.HasValue)
s_isiOs10OrNewer = UIDevice.CurrentDevice.CheckSystemVersion(10, 0);
return s_isiOs10OrNewer.Value;
public static void Init()
if (s_isInitialized)
return;
GeocoderBackend.Register();
s_isInitialized = true;