Exemplo n.º 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;
            }
        }