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
Developer
StevenKader
Posts: 635
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers
Accepted Solution

How to know if backlight is on or off?

Is there a way to know if the backlight is on or off.....couldn't find an API or event that would let me know.  Thanks.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Please use plain text.
Developer
dishooom
Posts: 103
Registered: ‎12-31-2012
My Device: Blackberry 9810
My Carrier: Verizon

Re: How to know if backlight is on or off?

Have you tried the invisible() signal in bb::Application.  The  Fundamentals of Cascades doc says :

 

invisible() This signal is emitted when the app (and its active frame) are no longer visible. The app might enter this state if the device backlight is off or if another app is brought to the foreground.

 

- Dishooom

Please use plain text.
Developer
helex
Posts: 274
Registered: ‎02-14-2012
My Device: Nokia N950 / BB Playbook
My Carrier: -

Re: How to know if backlight is on or off?

Apart from the Application state, is there a way to check the Backlight state and maybe the Level at a global state?  (even if my App is in the Background)

 

Please use plain text.