Exemple #1
0
        private static void InitializeLibs()
        {
            try
            {
                // For linker only
                MultiGestureViewRenderer multiGestureViewRenderer = new MultiGestureViewRenderer();

                ImageCircleRenderer.Init();
                FormsMaterial.Init();
                SharpnadoInitializer.Initialize(enableInternalLogger: true);

                Instabug.StartWithToken(instabugToken, IBGInvocationEvent.Shake | IBGInvocationEvent.TwoFingersSwipeLeft | IBGInvocationEvent.Screenshot);

                Instabug.ShouldCaptureViewHierarchy = true;
                Instabug.TintColor = UIColor.FromHSB(257, 81, 84);
                Instabug.SetLocale(IBGLocale.French);
                Instabug.SetWelcomeMessageMode(IBGWelcomeMessageMode.WelcomeMessageModeDisabled); // Disable welcome message
                // Disable the Replies. If disabled, the chats list button is removed from Instabug's prompt, the in-app notifications are disabled, and manually showing the chats list doesn't have an effect.
                IBGReplies.Enabled = false;

                // Intercom
                Intercom.SetApiKey(intercomApiKey, intercomToken);
            }
            catch (Exception exception)
            {
                Console.WriteLine($"Exception while initializing app: {exception.Message}");
                throw;
            }
        }
Exemple #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.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");
            Forms.SetFlags("CarouselView_Experimental", "IndicatorView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            Core.Init();
            SfMapsRenderer.Init();
            SfGradientViewRenderer.Init();
            SfBorderRenderer.Init();
            SfButtonRenderer.Init();
            AnimationViewRenderer.Init();

            new SfBusyIndicatorRenderer();

            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
            Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer.Init();
            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();

            SfListViewRenderer.Init();

            LoadApplication(new App());

            Instabug.StartWithToken("de0e8acfa86980fd8b252abd14d086fc", IBGInvocationEvent.Shake);
            IBGBugReporting.InvocationEvents = IBGInvocationEvent.FloatingButton;


            return(base.FinishedLaunching(app, options));
        }
Exemple #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)
        {
            Instabug.StartWithToken("86fae965aa72b45f6ce0f173e79c3357", IBGInvocationEvent.Shake);

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

            LoadApplication(new App());

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

            if (Keys.IsInstabugEnabled)
            {
                Instabug.StartWithToken(Keys.InstabugToken, IBGInvocationEvent.FloatingButton | IBGInvocationEvent.Shake | IBGInvocationEvent.Screenshot);
            }

            return(base.FinishedLaunching(app, options));
        }