summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.UWP/FormsMaps.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Maps.UWP/FormsMaps.cs')
-rw-r--r--Xamarin.Forms.Maps.UWP/FormsMaps.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Xamarin.Forms.Maps.UWP/FormsMaps.cs b/Xamarin.Forms.Maps.UWP/FormsMaps.cs
new file mode 100644
index 0000000..ee63135
--- /dev/null
+++ b/Xamarin.Forms.Maps.UWP/FormsMaps.cs
@@ -0,0 +1,32 @@
+#if WINDOWS_UWP
+using Xamarin.Forms.Maps.UWP;
+
+#else
+using Xamarin.Forms.Maps.WinRT;
+
+#endif
+
+namespace Xamarin
+{
+ public static class FormsMaps
+ {
+ static bool s_isInitialized;
+
+ internal static string AuthenticationToken { get; set; }
+
+ public static void Init()
+ {
+ if (s_isInitialized)
+ return;
+ GeocoderBackend.Register();
+ s_isInitialized = true;
+ }
+
+ public static void Init(string authenticationToken)
+ {
+ AuthenticationToken = authenticationToken;
+
+ Init();
+ }
+ }
+} \ No newline at end of file