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