Domanda

How do I remove all alarms from a ScheduledActionService?

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

È stato utile?

Soluzione

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top