简体   繁体   English

Windows Phone-根据条件激活/执行应用

[英]Windows Phone - Activate/Execute app based off of conditions

I am trying to write a Windows Phone app that executes and runs code based off of certain phone conditions. 我正在尝试编写Windows Phone应用程序,该应用程序根据某些电话条件执行和运行代码。 Similarly to how the If this then that(IFTTT) app works on Android/iOS, I'd like to perform an action when certain conditions are met. 与If if then that(IFTTT)应用在Android / iOS上的工作方式类似,我希望在满足某些条件时执行操作。 Unfortunately, I have not been able to find any example or documentation on something like this. 不幸的是,我无法找到有关此类内容的任何示例或文档。

Any help would be appreciated. 任何帮助,将不胜感激。

Thanks! 谢谢!

Windows Phone 8.1 supports triggering background tasks based on certain conditions. Windows Phone 8.1支持根据某些条件触发后台任务。 If the conditions you're interested are included in the supported triggers then you'll be able to use this approach. 如果您感兴趣的条件包含在受支持的触发器中,那么您将能够使用此方法。

More documentation at: 更多文档,请访问:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh977056(v=win.10).aspx and http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977058.aspx http://msdn.microsoft.com/zh-CN/library/windows/apps/xaml/Hh977056(v=win.10).aspxhttp://msdn.microsoft.com/zh-CN/library/windows /apps/xaml/hh977058.aspx

An example at http://www.jayway.com/2014/04/23/windows-phone-8-1-for-developers-multitasking-and-background-tasks/ http://www.jayway.com/2014/04/23/windows-phone-8-1-for-developers-multitasking-and-background-tasks/

and more information from this //Build/ talk: http://channel9.msdn.com/Events/Build/2014/2-518 以及来自// Build /谈话的更多信息: http : //channel9.msdn.com/Events/Build/2014/2-518

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM