Frage

How do I remove all alarms from a ScheduledActionService?

ScheduledActionService.remove() method requires a name also does find()

War es hilfreich?

Lösung

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top