锁定屏幕在Windows 8 WinRT [英] Locked screen in windows 8 WinRT

查看:172
本文介绍了锁定屏幕在Windows 8 WinRT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的应用程序在Windows 8中运行时,WINRT可以阻止操作系统进入锁定屏幕/睡眠模式。

When my app is running in Windows 8 WINRT can I prevent the OS to go to locked screen/sleep mode?

推荐答案

您可以使用 DisplayRequest类表明您是忙于播放需要显示器保持活动和未调暗的东西。您可以在此处找到包含示例代码的操作说明文章。不要轻率地使用它,这是相当不利于功耗。如果您使用应用程式对使用者没有明显的好处,商店会拒绝您的应用程式,这很好。

You can use the DisplayRequest class to indicate that you are busy playing back something that requires the display to stay active and un-dimmed. A good how-to article with sample code is available here. Don't use it frivolously, it is quite detrimental to power consumption. Good odds that the Store will reject your app if you use it for no obvious benefit to the user.

这篇关于锁定屏幕在Windows 8 WinRT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆