Esempio n. 1
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();
            LoadApplication(new App());

            var _ = new TouchTracking.Forms.iOS.TouchEffect();

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 2
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();
            var _ = new TouchTracking.Forms.iOS.TouchEffect(); //force to load assembly to prevent touch issue on iOS

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 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)
        {
            var _ = new TouchTracking.Forms.iOS.TouchEffect();

            Xamarin.Forms.Forms.SetFlags("Shapes_Experimental");
            global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 4
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();

            Xamarin.FormsGoogleMaps.Init("your_google_maps_ios_api_key");

            SharpnadoInitializer.Initialize(true);
            var _ = new TouchTracking.Forms.iOS.TouchEffect();

            app.StatusBarStyle = UIStatusBarStyle.LightContent;

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 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 uiApplication, NSDictionary launchOptions)
        {
            Forms.SetFlags("CollectionView_Experimental");
            Forms.SetFlags("SwipeView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            //TouchTracking bug requires this line: https://github.com/OndrejKunc/SkiaScene#touchtrackingforms
            var _ = new TouchTracking.Forms.iOS.TouchEffect();

            //Ask for permission to Notifications.
            NotificationService.AskForNotificationPermission();

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Esempio n. 6
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();

            // Xamarin.FormsGoogleMaps.Init("AIzaSyB4b_bnQ-ygx90fmzLQmjC6z87iekGcd-0");
            // Xamarin.FormsGoogleMaps.Init("AIzaSyBqvs9lCvVEbk7sfuht7sKVOrXt3YBAglg");

            Xamarin.FormsMaps.Init();

            SharpnadoInitializer.Initialize(true);
            var _ = new TouchTracking.Forms.iOS.TouchEffect();

            app.StatusBarStyle = UIStatusBarStyle.LightContent;

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 7
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)
        {
            SQLitePCL.Batteries_V2.Init();
            // var libPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "..", "Library", "data");

            // if (!Directory.Exists(libPath))
            // {
            //     Directory.CreateDirectory(libPath);
            // }

            //var dbPath = Path.Combine(libPath, "database.sqlite");
#if DEBUG
            //Xamarin.Calabash.Start();
#endif
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());
            var _ = new TouchTracking.Forms.iOS.TouchEffect();
            Xamarin.Forms.DependencyService.Register <IOSLogging>();

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 8
0
 public static void Init()
 {
     var _ = new TouchTracking.Forms.iOS.TouchEffect();
 }