在 Windows Phone 7 上禁用屏幕自动锁定 [英] Disable screen from autolocking on Windows Phone 7

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

问题描述

如果用户有一段时间不与设备交互,我需要防止屏幕自动锁定.

I need to prevent the screen from automatically locking itself if the user dont interact with the device for a while.

是否可以请求某种锁定以在运行我的应用程序时保持屏幕开启?

Is it possible to request some kind of lock to keep the screen on while running my application?

推荐答案

是的,您可以通过禁用 UserIdleDetection 来实现.

Yes, you can do this by disabling UserIdleDetection.

此处提供示例和更多背景信息.

Samples and more background info here.

PhoneApplicationService.UserIdleDetectionMode 属性(Microsoft.Phone.Shell)

Windows Phone 空闲检测

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

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