Pregunta

How do I remove all alarms from a ScheduledActionService?

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

¿Fue útil?

Solución

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top