public override async void Login(string userName, string passWord) { base.Login(userName, passWord); var success = await DependencyService.Get <ILogin>().CheckLogin(userName, passWord); if (success) { App.IsLoggedIn = true; await Navigation.PopAsync(); } else { var signUp = await DisplayAlert("Invalid Login", "Sorry, we didn't recoginize the username or password. Feel free to sign up for free if you haven't!", "Sign up", "Try again"); if (signUp) { await Navigation.PushModalAsync(new NewUserSignUpPage()); MobileCenterHelpers.TrackEvent("NewUserSignUp", new Dictionary <string, string> { { "ActionPoint", "System Prompt" }, }); } } }
protected override void OnAppearing() { base.OnAppearing(); MobileCenterHelpers.TrackEvent(MobileCenterConstants.ListViewPageAppeared); Device.BeginInvokeOnMainThread(_listView.BeginRefresh); }
async void HandleListViewItemTapped(object sender, ItemTappedEventArgs e) { var listView = sender as ListView; var tappedListPageDataModel = e.Item as ListPageDataModel; MobileCenterHelpers.TrackEvent(MobileCenterConstants.ListViewItemTapped, new Dictionary <string, string> { { MobileCenterConstants.ListViewItemNumber, tappedListPageDataModel.DetailProperty } } ); await DisplayAlert("Number Tapped", $"You Selected Number {tappedListPageDataModel.DetailProperty}", "OK"); listView.SelectedItem = null; }
protected override void OnStart() { MobileCenterHelpers.Start(); RegisterAppLinks(); }
protected override void OnAppearing() { base.OnAppearing(); MobileCenterHelpers.TrackEvent(MobileCenterConstants.FirstPageOnAppeared); }