How to turn on or off the mobile LED flashlight in Adobe Air Android?
1 answer
You can use ANE flashlight or create your own. Here's what I found: https://github.com/sewonist/FlashLight
With this ANE you will be able to control your LED flashlight as follows:
if( Flashlight.getInstance().isSupported )
{
Flashlight.getInstance().on(); // turn on
Flashlight.getInstance().off(); // turn off
var mode:Boolean = Flashlight.getInstance().mode; // get torch mode
}
0
source to share