public virtual void OnBackPressed() { if (!Rg.Plugins.Popup.Popup.SendBackPressed(new Action(((MvxFormsAppCompatActivity)this).OnBackPressed))) { return; } PopupNavigation.get_Instance().PopAsync(true); }
private async Task RatingChooserMessageHandler(string message) { Profile activeProfile = this._profileDataService.GetActiveProfile(); Rating ratingByProfile = this._ratingDataService.GetRatingByProfile(activeProfile); if (message == this._textProvider.GetText((string)null, (string)null, "Rating_EvaulationDislikeTitle")) { await PopupNavigation.get_Instance().PushAsync((PopupPage) new RatingPopupPage(), true); } else { if (!(message == this._textProvider.GetText((string)null, (string)null, "Rating_EvaulationLikeTitle"))) { return; } ratingByProfile.Liked = true; ratingByProfile.Date = new DateTime?(DateTime.Now); this._ratingDataService.AddOrUpdate(activeProfile, ratingByProfile); CrossStoreReview.get_Current().OpenStoreReviewPage(this._packageInfo.PackageName); } }
public void InvokeRatingFlow(Profile profile) { if (!this._remoteConfigurationService.GetAsync <bool>("IsRatingEnabled").Result) { return; } if (profile != null) { Rating ratingByProfile = this._ratingDataService.GetRatingByProfile(profile); if (ratingByProfile != null && (!ratingByProfile.Show || !(ratingByProfile.LastSeenDate.AddDays((double)this._ratingDataService.CancelIdleDays) < DateTime.Now))) { return; } this._ratingDataService.IncreaseAttempts(profile); PopupNavigation.get_Instance().PushAsync((PopupPage) new RatingChooser(), true); } else { CrossMobileAnalytics.Current.TrackEvent(this._textProvider.GetText((string)null, (string)null, "Rating_NoProfileInvoke"), (IDictionary <string, string>)null); } }
public async Task ClosePopup() { await PopupNavigation.get_Instance().PopAsync(true); }