Question

How do I remove all alarms from a ScheduledActionService?

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

Was it helpful?

Solution

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top