gpt4 book ai didi

windows-phone-7 - UserIdleDetectionMode 与 ApplicationIdleDetectionMode

转载 作者:行者123 更新时间:2023-12-01 10:08:12 24 4
gpt4 key购买 nike

如何在 UserIdleDetectionModeApplicationIdleDetectionMode 之间进行选择?

MSDN:UserIdleDetectionMode

When user idle detection is enabled, the operating system will go into a low power usage state when the user is idle. Disabling this property requests that the operating system not perform this service. Use this property to disable user idle detection if your application needs to continue running even when the user is not physically interacting with the screen or hardware buttons. Example scenarios include turn-by-turn navigation applications and games that use the accelerometer for input.

This feature should be used with caution. Applications that disable user idle detection will continue to run and consume battery power when the user is not using the phone. It is recommended that applications that disable user idle detection implement their own form of idle detection and enable UserIdleDetectionMode when appropriate. For example, an accelerometer-based game could enable user idle detection if the accelerometer shows no activity for a period of time.

In the current release, the operating system considers the user to be idle when they have not touched the screen or the hardware buttons within the device lock timeout window, specified in the device’s Settings page. The conditions for detecting user idle status may change in future releases.

MSDN:ApplicationIdleDetectionMode

When application idle detection is enabled, the operating system will deactivate idle applications. Disabling application idle detection requests that the operating system not perform this service. This feature should be used with caution because applications that run while the phone is locked continue to drain the device’s battery. In this case, the user may not realize that the application is running because the screen is off and the phone looks idle.

In the current release, an application is considered to be idle if the user has allowed the phone to lock. In future releases, the conditions that qualify an application as idle may change. Even if application idle detection is disabled, the operating system may deactivate an application for other reasons, such as a depleted battery.

最佳答案

明白了:

  • UserIdleDetectionMode 防止锁定屏幕
  • ApplicationIdleDetectionMode 允许在锁定屏幕下执行

(顺便说一句,ApplicationIdleDetectionMode 一旦禁用就无法重新启用)。

关于windows-phone-7 - UserIdleDetectionMode 与 ApplicationIdleDetectionMode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8302508/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com