示例#1
0
    public void CancelAllPendingLocalNotifications()
    {
        if (!InitCheck())
        {
            return;
        }

        Notifications.CancelAllPendingLocalNotifications();
        NativeUI.Alert("Alert", "Canceled all pending local notifications of this app.");
    }
    public void RefreshNotifications(List <Quest> questList)
    {
        Notifications.CancelAllPendingLocalNotifications();

        foreach (Quest quest in questList)
        {
            if (quest.alarm.hasAlarm)
            {
                ScheduleLocalNotification(quest);
            }
        }
    }
 public override void OnEnter()
 {
     Notifications.CancelAllPendingLocalNotifications();
     Finish();
 }