예제 #1
0
        // This is the main entry point of the application.
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException +=
                (sender, arg) => { AppStart.OnUnhandledException(arg.ExceptionObject as Exception, arg.IsTerminating); };

            Xamarin.Insights.Initialize(Settings.Default.XamarinInsights);

            UIApplication.Main(args, null, "AppDelegate");
        }
예제 #2
0
        public override void OnCreate()
        {
            base.OnCreate();

            AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
                                                          AppStart.OnUnhandledException(args.ExceptionObject as Exception, args.IsTerminating);

            Insights.Initialize(Settings.Default.XamarinInsights, this);

            RegisterActivityLifecycleCallbacks(MvxFormsActivityLifecycleCallbacks.Instance);
        }