Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/resources/contents/code/extensions/FormsMaps.cs
- This file was added.
namespace Xamarin.Forms.Maps.GTK | |||||
{ | |||||
public static class FormsMaps | |||||
{ | |||||
static bool _isInitialized; | |||||
internal static string AuthenticationToken { get; set; } | |||||
public static void Init() | |||||
{ | |||||
if (_isInitialized) | |||||
return; | |||||
GeocoderBackend.Register(); | |||||
_isInitialized = true; | |||||
} | |||||
public static void Init(string authenticationToken) | |||||
{ | |||||
AuthenticationToken = authenticationToken; | |||||
Init(); | |||||
} | |||||
} | |||||
} | |||||
No newline at end of file |