Esempio n. 1
0
 private void clearLocalNotifications()
 {
     if (App.Binder.NotificationRegister.Registered)
     {
         AndroidNotificationServices.CancelAllLocalNotifications();
         AndroidNotificationServices.ClearLocalNotifications();
     }
 }
Esempio n. 2
0
 private void scheduleLocalNotification(string id, string title, string description, long offsetTicks, int badgeNumber)
 {
     if (App.Binder.NotificationRegister.Registered)
     {
         AndroidLocalNotification notification = new AndroidLocalNotification();
         notification.fireDate = DateTime.Now + new TimeSpan(offsetTicks);
         notification.applicationIconBadgeNumber = badgeNumber;
         notification.hasAction   = true;
         notification.alertBody   = description;
         notification.alertAction = title;
         AndroidNotificationServices.ScheduleLocalNotification(notification);
     }
 }
Esempio n. 3
0
 private void clearRemoteNotifications()
 {
     AndroidNotificationServices.ClearRemoteNotifications();
 }