Вопрос

How do I remove all alarms from a ScheduledActionService?

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

Это было полезно?

Решение

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top