Beispiel #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            iOSShinyHost.Init(new Startup());
            Forms.Init();
            FormsMaps.Init();
            this.LoadApplication(new App());
            SettingsViewInit.Init();
            Material.Init();

            return(base.FinishedLaunching(app, options));
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Xamarin.Forms.Forms.Init();

            AiForms.Effects.iOS.Effects.Init();
            SettingsViewInit.Init();
            Xamarin.Forms.Svg.iOS.SvgImage.Init();

            LoadApplication(new App(new iOSInitializer()));

            return(base.FinishedLaunching(app, options));
        }
Beispiel #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Forms.Init(this, savedInstanceState);
            FormsMaps.Init(this, savedInstanceState);
            SettingsViewInit.Init();
            Material.Init(this, savedInstanceState);

            this.LoadApplication(new App());
        }
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            Xamarin.Forms.Forms.Init(this, bundle);
            AiForms.Effects.Droid.Effects.Init();
            Xamarin.Forms.Svg.Droid.SvgImage.Init(this);
            SettingsViewInit.Init(this);


            LoadApplication(new App(new AndroidInitializer()));
        }
Beispiel #5
0
        // Launches the startup task
        protected override void OnResume()
        {
            base.OnResume();
            Task startupWork = new Task(async() => {
                Log.Debug(TAG, "Performing some startup work that takes a bit of time.");
                Forms.Init(this, _savedInstanceState);
                Popup.Init(this, _savedInstanceState);

                SettingsViewInit.Init(); // need to write here
                Effects.Init();          //need to write here
                this.ShinyOnCreate();

                Log.Debug(TAG, "Startup work is finished - starting MainActivity.");
                StartActivity(new Intent(Application.ApplicationContext, typeof(MainActivity)));
            });

            startupWork.Start();
        }
Beispiel #6
0
        protected override void OnCreate(Bundle bundle)
        {
            // Name of the MainActivity theme you had there before.
            // Or you can use global::Android.Resource.Style.ThemeHoloLight
            base.SetTheme(Resource.Style.MainTheme);
            Window.RequestFeature(Android.Views.WindowFeatures.ActionBar);
            base.OnCreate(bundle);
            Task.Run(() =>
            {
                Popup.Init(this, bundle);

                SettingsViewInit.Init(); // need to write here
                Effects.Init();          //need to write here
                this.ShinyOnCreate();
            });
            Forms.Init(this, bundle);


            LoadApplication(new App());
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            XfxControls.Init();
            Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();

            CarouselViewRenderer.Init();
            FormsMaterial.Init();
            SettingsViewInit.Init();
            Effects.Init();


            //Le damos estilo al TabBar
            UITabBar.Appearance.BackgroundImage = new UIImage();
            UITabBar.Appearance.ShadowImage     = new UIImage();
            UITabBar.Appearance.BarTintColor    = UIColor.Clear;

            //UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
            //UIApplication.SharedApplication.SetStatusBarHidden(false, false);

            LoadApplication(new App(new iOSInitializer()));
            return(base.FinishedLaunching(app, options));
        }