[TIMOB-12464] BlackBerry: Window.keepScreenOn
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-02-11T21:25:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | n/a |
Reporter | Josh Roesslein |
Assignee | Josh Roesslein |
Created | 2013-01-29T01:38:10.000+0000 |
Updated | 2017-03-13T18:31:06.000+0000 |
Description
Allow developers to keep the device's screen from going idle
and powering off by setting the "keepScreenOn" property to true.
Acceptance Test
var win = Ti.UI.createWindow({keepScreenOn: true});
win.open();
1. A window should appear on the screen.
2. The screen on the device should not dim or power off while window is open.
On BlackBerry keeping the screen on is a flag on the main window, not on each control. We may need a different API than what is implemented for Android. We may want to get input at the architectural meeting before settling on an API.
Pushing this up a few sprints until an API can be approved to support this feature. Using a "keepScreenOn" property on a View isn't trivial to implement on other platforms besides Android. Right now Android is the only one that supports this API.
Android only API and does not map well to other platforms. There is an open API issue to introduce a better API for keeping screen on.
Closing ticket as the issue will not fix.