Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 46
Registered: ‎03-25-2011
My Device: Blackberry Z10
My Carrier: KPN

SceneCover loop



I use a SceneCover to create a ActiveFrame and i'm looping over some items to change the cover each x seconds.

That works but.. i wan't to prevent battery drain when then cover is not visible..


what should be the best way to prevent this?



Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: SceneCover loop

The Application class has several signals for the window state: thumbnail, invisible and fullscreen. You should be able to trigger some state changes based on those to avoid too-frequent updates.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!