Ejemplo n.º 1
0
        /// <summary>
        /// Cancels all pending scheduled notification messages and the ones registered in the notification manager.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnClickCancelAllNotifications(object sender, System.EventArgs e)
        {
            string Tag = "CancelAllNotifications";

            try
            {
                NotificationController.CancelAllNotifications(this);

                log.Info(Tag, "Success");
            }
            catch (ApiException exception)
            {
                log.Error(Tag, "Error/Exception: " + exception);
            }
        }
 public void CancelAllNotifications()
 {
     NotificationController.CancelAllNotifications(Application.Context);
 }