예제 #1
0
 public CallBacksPage()
 {
     InitializeComponent();
     NavigationPage.SetBackButtonTitle(this, "");
     HandleReceivedMessages();
     CallbackFooter.SetRewardLevelIcon(Global.GetrewardPoints());
 }
예제 #2
0
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     CallbackFooter.ActiveCallback(false);
     if (CallBacksListView.SelectedItem == null)
     {
         return;
     }
     CallBacksListView.SelectedItem = null;
 }
예제 #3
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            var notifList           = Global.GetAllTopic();
            var currentMessageCount = notifList.Where(e => e.Value == "new_message").Count();

            if (currentMessageCount <= 0)
            {
                CallbackFooter.BadgeVisibility = 0;
            }
            else
            {
                CallbackFooter.BadgeVisibility   = 1;
                CallbackFooter.BadgeCountMessage = currentMessageCount.ToString();
            }
            CallbackFooter.ActiveCallback(true);
            CallbackFooter.SetRewardLevelIcon(Global.GetrewardPoints());
        }