Пример #1
0
        public bool SaveBook()
        {
            //save to some db
            Dictionary <String, String> keyValuePairs = new Dictionary <string, string> {
                { "user", "jonchusGP" },
                { "network", "Cellular" }
            };

            AppCenterHelper.TrackEvent("book_saved", keyValuePairs);
            //Crashes.GenerateTestCrash();
            return(true);
        }
Пример #2
0
        async void Login_Clicked(object sender, System.EventArgs e)
        {
            try
            {
                Dictionary <String, String> keyValuePairs = new Dictionary <string, string> {
                    { "user", "jonchusGP" },
                    { "network", "Wifi" }
                };
                AppCenterHelper.TrackEvent("logged_in", keyValuePairs);
                await Navigation.PopModalAsync(true);

                //throw new Exception("An error occured. Check it out!");
            }
            catch (Exception ex) {
                Dictionary <String, String> keyValuePairs = new Dictionary <string, string> {
                    { "user", "jonchusGP" },
                    { "network", "Wifi" }
                };

                AppCenterHelper.TrackError(ex, keyValuePairs);
            }
        }
Пример #3
0
 async void AddNew_Book_Clicked(object sender, System.EventArgs e)
 {
     AppCenterHelper.TrackEvent("add_book_intent");
     await Navigation.PushAsync(new NewBookPage());
 }
Пример #4
0
 async void Login_Button_Clicked(object sender, System.EventArgs e)
 {
     AppCenterHelper.TrackEvent("login_intent");
     await Navigation.PushModalAsync(new LoginPage());
 }