3

is there anyway to control mobile LED Flashlight in Adobe Air Android.

using adobe air 14 on flash CC

1 Answers1

0

You can use a flashlight ANE or create your own. Here is one that I found: https://github.com/sewonist/FlashLight

With that ANE, you'll be able to control the LED flashlight like so:

if( Flashlight.getInstance().isSupported )
{
Flashlight.getInstance().on(); // turn on
Flashlight.getInstance().off(); // turn off
var mode:Boolean = Flashlight.getInstance().mode; // get torch mode
}
SirCapsLock
  • 175
  • 9