문제

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