public virtual void OnBackPressed()
 {
     if (!Rg.Plugins.Popup.Popup.SendBackPressed(new Action(((MvxFormsAppCompatActivity)this).OnBackPressed)))
     {
         return;
     }
     PopupNavigation.get_Instance().PopAsync(true);
 }
示例#2
0
        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);
            }
        }
示例#3
0
 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);
     }
 }
示例#4
0
 public async Task ClosePopup()
 {
     await PopupNavigation.get_Instance().PopAsync(true);
 }