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

Determine if hardware has camera flash?

I've searched through device, hardware and camera API's and can't seem to find a method to determine if a device has a camera flash or not.

 

The new BB 10 phone has one, but the Playbook does not.  I dont' want to present flash mode options to the user if there isn't a camera flash ont he device or worse, crash on the device when attempting to turn on the flash.

 

Is there any way to check if the device has a camera flash or not?