I think this is not only keeping screen from turning off. It can be keeping wifi, audio, or bluetooth handset from turning off. We should consider scenarios for various peripherals, and try to figure out a generic solution (keep something from turning off API) if possible.
For example, as I know, we also need to keep audio from turning off for music players. Maybe, we also need to keep wifi (networking) and audio from turning off for skype or SIP clients. We had better to consider more scenario.
I think this is not only keeping screen from turning off. It can be keeping wifi, audio, or bluetooth handset from turning off. We should consider scenarios for various peripherals, and try to figure out a generic solution (keep something from turning off API) if possible.
For example, as I know, we also need to keep audio from turning off for music players. Maybe, we also need to keep wifi (networking) and audio from turning off for skype or SIP clients. We had better to consider more scenario.