Exemple #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);
        }
Exemple #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);
            }
        }
Exemple #3
0
 async void AddNew_Book_Clicked(object sender, System.EventArgs e)
 {
     AppCenterHelper.TrackEvent("add_book_intent");
     await Navigation.PushAsync(new NewBookPage());
 }
Exemple #4
0
 async void Login_Button_Clicked(object sender, System.EventArgs e)
 {
     AppCenterHelper.TrackEvent("login_intent");
     await Navigation.PushModalAsync(new LoginPage());
 }