How to turn on or off the mobile LED flashlight in Adobe Air Android?

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

using soot air 14 on CC flash

+3
air air-android


source to share


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







All Articles
Loading...
X
Show
Funny
Dev
Pics