Hi,

the ScreenSaver function from QML SystemInformation should allow to keep
the screen alive, BUT: this is not allowed for import in harbour
applications at the moment. Due to the fact it's possibly not API stable.
It was included in QtMobility in Qt4.x, but is now split up and got maybe
some changes in Qt5. It worked in Harmattan and is also in SDK, if you
don't want to release at harbour give it a try.


For charger - no idea, how to get this info at all, maybe also with
SystemInformation, you could check the old Qt4 Docs.


Cheers, Gabriel.



--



Von meinem Nokia N9 gesendet



Samuli Järvinen schrieb am 23.12.13 00:33:
Hi,

I know this is something that more often than not should not happen.
However I could not be more annoyed when the screen goes blank and I’m
watching for example my position on screen and waiting for a gps fix. So
short question. Is there a way to prevent application from going background
and to prevent the screen from blanking via qml?

Another question, is it possible to detect if a charger is plugged in from
QML or does it need .js or cpp code?

Thanks in advance,

-Samuli
_______________________________________________
SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to