public void EnsureInitialized(Context context) { if (MvxSimpleIoCContainer.Instance != null) { return; } ApplicationContext = context; MvxSimpleIoCContainer.Initialize(); Mvx.RegisterSingleton <IMvxAndroidGlobals>(this); var plugin = new MvxFilePluginManager(".Droid", ".dll"); Mvx.RegisterSingleton <IMvxPluginManager>(plugin); var builder = new MvxAndroidBindingBuilder(); builder.DoRegistration(); var viewCache = Mvx.Resolve <IMvxTypeCache <View> >(); viewCache.AddAssembly(typeof(Android.Widget.LinearLayout).Assembly); var valueConverterRegistry = Mvx.Resolve <IMvxValueConverterRegistry>(); valueConverterRegistry.AddOrOverwrite("TheLengthConverter", new LengthValueConverter()); var locationBootstrap = new LocationPluginBootstrap(); locationBootstrap.Run(); }
protected override IMvxPluginManager CreatePluginManager() { var toReturn = new MvxFilePluginManager(".WindowsPhone"); return(toReturn); }