Exemple #1
0
        public override void OnCreate()
        {
            base.OnCreate();

            //Intercom.Initialize(this, intercomApiKey, intercomToken);
            new Instabug
            .Builder(this, CustomVariables.INSTABUG_TOKEN)
            .SetInvocationEvents(InstabugInvocationEvent.Shake, InstabugInvocationEvent.TwoFingerSwipeLeft, InstabugInvocationEvent.Screenshot)
            .Build();
            Instabug.SetViewHierarchyState(Feature.State.Enabled);
            InstabugCore.SetRepliesState(Feature.State.Disabled);
            Instabug.PrimaryColor = Color.ParseColor("#5A28D6");
            Instabug.SetLocale(Locale.French);
            Instabug.SetWelcomeMessageState(WelcomeMessage.State.Disabled);
        }
Exemple #2
0
        /// <summary>
        /// Called when [create].
        /// </summary>
        /// <param name="savedInstanceState">State of the saved instance.</param>
        protected override void OnCreate(Bundle savedInstanceState)
        {
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabbar;
            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;

            this.Device = new AndroidDevice();

            new Instabug.Builder(this.Application, "3ac80e1f493e5c7daf51d3b79e117104")
            .SetInvocationEvents(InstabugInvocationEvent.FloatingButton, InstabugInvocationEvent.Shake)
            .Build();

            Instabug.SetWelcomeMessageState(WelcomeMessage.State.Disabled);

            base.OnCreate(savedInstanceState);

            Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");
            Platform.Init(this, savedInstanceState);
            Forms.Init(this, savedInstanceState);
            this.LoadApplication(new App(this.Device));
        }