Exemple #1
0
        protected override IMvxIosViewPresenter CreatePresenter()
        {
            Forms.Init();
            //Xamarin.FormsMaps.Init();
            Xamarin.FormsGoogleMaps.Init(MapsApiKey);
            var xamarinFormsApp = new Core.App();

            var presenter = new MvxFormsIosPagePresenter(Window, xamarinFormsApp);

            return(presenter);
        }
        protected override IMvxIosViewPresenter CreatePresenter()
        {
            Forms.Init();

            MvxFormsApp = new App();

            var presenter = new MvxFormsIosPagePresenter(Window, MvxFormsApp);

            Mvx.RegisterSingleton <IMvxViewPresenter>(presenter);

            return(presenter);
        }
Exemple #3
0
        protected override IMvxIosViewPresenter CreatePresenter()
        {
            Forms.Init();

            MvxFormsApp = new PageRendererExampleApp();

            var presenter = new MvxFormsIosPagePresenter(Window, MvxFormsApp);

            Mvx.RegisterSingleton <IMvxViewPresenter>(presenter);
            Mvx.LazyConstructAndRegisterSingleton <IImageHolder, ImageHolder>();

            return(presenter);
        }