[maemo-developers] Re: Optimal battery life considerations in apps

From: daniel wilms daniel.wilms at nokia.com
Date: Fri Jul 24 09:55:07 EEST 2009
Hi,

there is an API to detect if the window is in the foreground or not (thx to Kimmo for pointing me to this) [1]. If this property is true, then the window is visible on the screen. You can use this parameter directly from your root window. And here [2] you find the method to get the value of the parameter.


[1] http://maemo.org/api_refs/5.0/beta/hildon/HildonWindow.html#HildonWindow--is-topmost

[2] http://maemo.org/api_refs/5.0/beta/hildon/HildonWindow.html#hildon-window-get-is-topmost

Cheers Daniel
More information about the maemo-developers mailing list