protected override void OnCreate(Bundle bundle)
        {
            ToolbarResource   = Resource.Layout.toolbar;
            TabLayoutResource = Resource.Layout.tabs;

            base.OnCreate(bundle);

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

            UserDialogs.Init(this);
            Forms.Init(this, bundle);

            if (((int)Android.OS.Build.VERSION.SdkInt) >= 23)
            {
                CheckPermissions();
            }

            var formsApp = new BleMvxFormsApp();

            LoadApplication(formsApp);

            var presenter = (MvxFormsDroidPagePresenter)Mvx.Resolve <IMvxViewPresenter>();

            presenter.MvxFormsApp = formsApp;

            Mvx.Resolve <IMvxAppStart>().Start();
        }
Example #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Xamarin.Forms.Forms.Init(this, bundle);
            FormsMaps.Init(this, bundle);
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();
            RoundedBoxViewRenderer.Init();


            // http://forums.xamarin.com/discussion/21148/calabash-and-xamarin-forms-what-am-i-missing
            global::Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => {
                if (!string.IsNullOrWhiteSpace(e.View.StyleId))
                {
                    if (e.NativeView != null)
                    {
                        e.NativeView.ContentDescription = e.View.StyleId;
                    }
                }
            };

            LoadApplication(new App());
        }
Example #3
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();
            FormsMaps.Init();
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            RoundedBoxViewRenderer.Init();

            global::Xamarin.Forms.Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) => {
                // http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/
                if (null != e.View.StyleId)
                {
                    e.NativeView.AccessibilityIdentifier = e.View.StyleId;
                    Console.WriteLine("Set AccessibilityIdentifier: " + e.View.StyleId);
                }
            };

                        #if DEBUG
            // requires Xamarin Test Cloud Agent component
            Calabash.Start();
                        #endif

            LoadApplication(new App());

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

            global::Xamarin.Forms.Forms.Init(this, bundle);
            SvgImageRenderer.Init();
            LoadApplication(new App());
        }
Example #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();
            SvgImageRenderer.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #6
0
        public MainPage()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            global::Xamarin.Forms.Forms.Init();
            SvgImageRenderer.Init();

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

            base.OnCreate(bundle);

            Xamarin.Forms.Forms.Init(this, bundle);
            UserDialogs.Init(this);
            SvgImageRenderer.Init();
            LoadApplication(new App());
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            SvgImageRenderer.Init();
            LoadApplication(new App());
        }
Example #9
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            // Sample code to localize the ApplicationBar
            Forms.Init();
            SvgImageRenderer.Init();

            Core.App.Init();
            Thread.Sleep(2000);
            Content = Core.App.GetMainPage().ConvertPageToUIElement(this);
            //BuildLocalizedApplicationBar();
        }
Example #10
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            Xamarin.Forms.Forms.Init();
            FormsMaps.Init();
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();
            RoundedBoxViewRenderer.Init();

            LoadApplication(new PluginSampleApp.App());
        }
Example #11
0
        public MainPage()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            Xamarin.Forms.Forms.Init();
            FormsMaps.Init();
            SvgImageRenderer.Init();
            ExtendedTextCellRenderer.Init();
            ExtendedMapRenderer.Init();

            LoadApplication(new SampleApp.App());
        }
Example #12
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            string folderPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            string dbPath     = Path.Combine(folderPath, "wineot.sqlite3");

            SQLiteService.SetupDatabase(dbPath, new  SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid());
            Console.WriteLine(dbPath);
            SvgImageRenderer.Init();

            LoadApplication(new App());
        }
Example #13
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
            SvgImageRenderer.Init();
            LoadApplication(new App());
        }
Example #14
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)
        {
            Xamarin.Calabash.Start();
            global::Xamarin.Forms.Forms.Init();
            SvgImageRenderer.Init();
            new SfNumericTextBoxRenderer();
            LoadApplication(new App());

            SfButtonRenderer.Init();
            Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init();
            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
            SfCalendarRenderer.Init();
            SfListViewRenderer.Init();
            SfDataFormRenderer.Init();
            SfPickerRenderer.Init();
            SfTextInputLayoutRenderer.Init();
            return(base.FinishedLaunching(app, options));
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // I think we need to do this..
            global::Xamarin.Forms.Forms.Init();
            SvgImageRenderer.Init();

            _window = new UIWindow(UIScreen.MainScreen.Bounds);

            var setup = new Setup(this, _window);

            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart>();

            startup.Start();

            _window.MakeKeyAndVisible();

            return(true);
        }
Example #16
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)
        {
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif
            global::Xamarin.Forms.Forms.Init();
            ZXing.Net.Mobile.Forms.iOS.Platform.Init();

            SentrySdk.Init("https://[email protected]/5320492");

            //Image Plugin Support
            CachedImageRenderer.Init();
            SvgImageRenderer.Init();

            var host = App.BuildHost(typeof(KernelModule).Assembly).Build();
            _application = host.Services.GetRequiredService <App>();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #17
0
        /// <summary>
        ///   Called when [create].
        /// </summary>
        /// <param name="bundle">The bundle.</param>
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironmentOnUnhandledExceptionRaiser;

            if (!Resolver.IsSet)
            {
                SetIoc();
            }
            else
            {
                var app = Resolver.Resolve <IXFormsApp>() as IXFormsApp <XFormsApplicationDroid>;
                app.AppContext = this;
            }

            Forms.Init(this, bundle);
            SvgImageRenderer.Init();

            App.Init();

            LoadApplication(new App());
        }
Example #18
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            JavaSystem.LoadLibrary("c++_shared");
            JavaSystem.LoadLibrary("indy");

            //Telemetry
            SentrySdk.Init("sentryKit");

            //User Dialogs
            UserDialogs.Init(this);

            //Xamarin Plugin Support
            CachedImageRenderer.Init(false);
            SvgImageRenderer.Init();
            Xamarin.Essentials.Platform.Init(Application);
            ZXing.Net.Mobile.Forms.Android.Platform.Init();
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            ZXing.Mobile.MobileBarcodeScanner.Initialize(Application);

            CheckAndRequestRequiredPermissions();

            // Initializing User Dialogs
            // Android requires that we set content root.
            var host = App
                       .BuildHost(typeof(PlatformModule).Assembly)
                       .UseContentRoot(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal)).Build();


            LoadApplication(host.Services.GetRequiredService <App>());
            CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);
        }
 private void PrepareSVGImageRenderer()
 {
     SvgImageRenderer.Init();
 }
 public MainPage()
 {
     this.InitializeComponent();
     SvgImageRenderer.Init();
     LoadApplication(new SampleApp.App());
 }