Type: New Feature
Affects Version/s: None
Fix Version/s: None
Developers may sometimes require the ability to prevent a device
from powering off its display and/or CPU during certain periods
of time while their application performs some task.
Most of our native platforms provide an API for these use cases.
Android for example has WakeLock which provides various levels which
affect the device's power management. You may also set a flag at the View
which will keep the screen on (we already expose this in Titanium).
BlackBerry provides an "idle mode" flag on the main window which has
two modes: Normal and KeepAwake.
The goal of this ticket is to come up with some common API
that we may expose to our developers which is suitable for the
various platform which are capable of this feature.