本文介绍了Windows 10上的[UWP] TimeTrigger的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如果Windows 10操作系统使用TimeTrigger进行报警/提醒,是否有人知道?

Does any one have any idea, if Windows 10 OS uses the TimeTrigger for Alarm/Reminders?

我发现TimeTrigger的解析时间是15分钟,但是,即使我们计划在接下来的2或3分钟(即小于15分钟),Windows 10警报/提醒也能正常工作。这是如何工作的?

I found that the TimeTrigger resolution time is 15 minutes, however, Windows 10 Alarm/Reminders are working just fine even if we schedule this for next 2 or 3 minutes (i.e less than 15). How is that working?

我有一个类似的要求,根据用户选择的时间在后台任务上执行一些代码,可能包括不到15分钟。

I have a similar requirement to execute some code on a background task based on the user chosen time and that may include less than 15 minutes.

非常感谢任何帮助或见解!

Any help or insights would be much appreciated!

推荐答案

看来你的描述是使用了sheduled toast通知,请参阅Jeffery的帖子:

It seems your description is using sheduled toast notification, see Jeffery's post on here:

http://stackoverflow.com/questions/32899713/timetrigger-scheduler-in-windows-10 -uwp-for-15分钟

http://stackoverflow.com/questions/32899713/timetrigger-scheduler-in-windows-10-uwp-for-less-than-15-minutes

这就是它的工作原理。

当你使用TimeTrigger时,https:// msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.timetrigger.timetrigger.aspx

When you use the TimeTrigger, https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.timetrigger.timetrigger.aspx

您是否设置了
 
OneShot    属性
为true以及如何设置时间?你的结果是什么?

Have you set the  OneShot  property to true and how you set the time? What's your result?

祝你好运,

Barry


这篇关于Windows 10上的[UWP] TimeTrigger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 23:08