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
Highlighted
Developer
Posts: 44
Registered: ‎03-17-2012
My Device: Blackberry playbook
My Carrier: none

How to set the brightness?

[ Edited ]

Hi, 

What´s the code in native BB10 to set the brightness in device (not only in my app)?

I´ve used screen_set_window_property_pv(screen_event,SCREEN_PROPERTY_BRIGHTNESS,255);

But it doesn´t work.

 

Thank you.

Developer
Posts: 44
Registered: ‎03-17-2012
My Device: Blackberry playbook
My Carrier: none

Re: How to set the brightness?

Could someone show me an example?

Thank you.