//
        // 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)
        {
            global::Xamarin.Forms.Forms.Init();
            NControls.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            NControls.Init();

            LoadApplication(new MyApp());
        }
示例#3
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            Forms.Init();
            NControlViewRenderer.Init();
            NControls.Init();

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

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            NControls.Init();
            LoadApplication(new App());
        }
示例#5
0
        //
        // 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)
        {
            global::Xamarin.Forms.Forms.Init();
            NControlViewRenderer.Init();
            NControls.Init();
            App.ScreenWidth  = (int)UIScreen.MainScreen.Bounds.Width;
            App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;
            LoadApplication(new App(new iOSInitializer()));
            UIApplication.SharedApplication.StatusBarHidden = true;

            return(base.FinishedLaunching(app, options));
        }
示例#6
0
        public MainPage()
        {
            InitializeComponent();

            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            Forms.Init();
            NControlViewRenderer.Init();
            NControls.Init();

            LoadApplication(new FormsApp.MyApp());
        }
示例#7
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     TabLayoutResource = Resource.Layout.Tabbar;
     ToolbarResource   = Resource.Layout.Toolbar;
     App.ScreenWidth   = (int)((double)Resources.DisplayMetrics.WidthPixels / (double)Resources.DisplayMetrics.Density);
     App.ScreenHeight  = (int)((double)Resources.DisplayMetrics.HeightPixels / (double)Resources.DisplayMetrics.Density);
     base.OnCreate(savedInstanceState);
     global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
     NControlViewRenderer.Init();
     NControls.Init();
     UserDialogs.Init(this);
     LoadApplication(new App(new AndroidInitializer(this)));
 }
示例#8
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);

            NControlViewRenderer.Init();
            NControls.Init();

            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
示例#9
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            NControlViewRenderer.Init();
            NControls.Init();
            LoadApplication(new App(new AndroidInitializer()));
            //SetPage(App.GetMainPage());

            if (ActionBar != null)
            {
                ActionBar.SetIcon(new ColorDrawable(Color.Transparent));
            }
        }
示例#10
0
        protected override void OnCreate(Bundle bundle)
        {
            AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
            {
                try
                {
                    var exception = ((Exception)e.ExceptionObject).GetBaseException();
                    Console.WriteLine("**SPORT UNHANDLED EXCEPTION**\n\n" + exception);
                    exception.Track();
                }
                catch
                {
                    throw;
                }
            };

            try
            {
                AdjustStatusBar(0);

                Keys.GoogleClientId = Keys.GoogleClientIdAndroid;
                Keys.GoogleServerID = Keys.GoogleServerIdAndroid;

                base.OnCreate(bundle);
                SimpleAuth.Providers.Google.Init(Application);

                ToolbarResource = Resource.Layout.Toolbar;

                Window.SetSoftInputMode(SoftInput.AdjustResize);
                Window.DecorView.SystemUiVisibility = StatusBarVisibility.Visible;

                CurrentPlatform.Init();
                Xamarin.Forms.Forms.Init(this, bundle);
                NControls.Init();
                ImageCircleRenderer.Init();

                MobileCenter.Configure(Keys.MobileCenterKeyAndroid);
                LoadApplication(new App());
                XFGloss.Droid.Library.Init(this, bundle);
            }
            catch (Exception e)
            {
                Console.WriteLine("**SPORT LAUNCH EXCEPTION**\n\n" + e);
                e.Track();
            }
        }
        //
        // 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 uiApp, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            // Create app.
            var app = new App();

            // Start HockeyApp manager.
            InitializeHockeyApp();

            // Initialize NControls.
            NControls.Init();

            // Load our app.
            LoadApplication(app);

            // Styling.
            ApplyStyle();

            return(base.FinishedLaunching(uiApp, options));
        }
示例#12
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NControl.MVVM.Droid.DroidMvvmApp"/> class.
        /// </summary>
        public void Initialize()
        {
            NControls.Init();

            Container.Register <IImageProvider, DroidImageProvider> ();
        }