码迷,mamicode.com
首页 > 移动开发 > 详细

App lifecycle(UWP深入学习一)

时间:2015-12-04 18:25:50      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:

Launching, resuming, and background tasks : https://msdn.microsoft.com/en-us/library/windows/apps/Mt227652.aspx

 

App lifecycle: https://msdn.microsoft.com/en-us/library/windows/apps/mt243287.aspx

当应用处于 NotRunning 状态并且用户点击开始屏幕或应用程序列表上的应用磁贴时,将启动应用。应用可能处于 NotRunning 状态,原因有:它从未启动、它运行后出现了故障,或者它被暂停后无法保留在内存中而被系统终止。启动与激活不同。激活是指通过合约或扩展(例如“搜索”合约)激活你的应用。

当启动应用时(包括当应用当前在内存中暂停时),调用 OnLaunched 方法。LaunchActivatedEventArgs 参数包含你的应用之前的状态和激活参数。

Handle app prelaunch: https://msdn.microsoft.com/en-us/library/windows/apps/mt593297.aspx

Handle app activation:https://msdn.microsoft.com/en-us/library/windows/apps/mt574274.aspx

Handle app suspend:https://msdn.microsoft.com/en-us/library/windows/apps/mt574277.aspx

Handle app resume:https://msdn.microsoft.com/en-us/library/windows/apps/mt574276.aspx

 

 Support your app with background tasks: https://msdn.microsoft.com/en-us/library/windows/apps/mt299103.aspx

Guidelines for background tasks: https://msdn.microsoft.com/en-us/library/windows/apps/mt187310.aspx

Create and register a background task:https://msdn.microsoft.com/en-us/library/windows/apps/mt299100.aspx

 

App lifecycle(UWP深入学习一)

标签:

原文地址:http://www.cnblogs.com/qianblue/p/5019198.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!