Welcome!

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

Reply
Contributor
xtravanta
Posts: 46
Registered: ‎03-25-2011
My Device: Blackberry Z10

SceneCover loop

Hi,

 

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?

 

Thx

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

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!