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
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700
Accepted Solution

system.brightness?

At the bottom of this page:

https://developer.blackberry.com/cascades/reference/propertybinding.html

Ctrl-F (find) for "bright"

 

It indicates there is access to system.brightness

 

However, when I search the docs, I can't find this API.  How would I access this in C++ as well as how to 'include' the appropriate include(s)?

 

 

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: system.brightness?

Those particular pages appear to be generic, from the Qt project, and showing simple examples of how things might be done, not how things *are* actually done with Cascades. The presence of the word "brightness" in there is not a sign that we have an API to control the brightness of a BB10 device programmatically, and we do not.

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!
Please use plain text.
Developer
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700

Re: system.brightness?

Thanks!

 

Is there any way to invoke the settings screen so that users can manually adjust the brightness (easily) if desired?

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: system.brightness?

Please use plain text.
Developer
javoid
Posts: 194
Registered: ‎11-24-2012
My Device: Dev Alpha B, Bold 9700

Re: system.brightness?

Awesome! Thanks again.

Please use plain text.