Flashlight
by Spiral Code Studio
View and activate on the Corona Store
The Flashlight plugin provides access to the flash LED light source, which can be used as a torch. This works on Android and iOS.
Flashlight
by Spiral Code Studio
View and activate on the Corona Store
The Flashlight plugin provides access to the flash LED light source, which can be used as a torch. This works on Android and iOS.
This plugin is unable to download (using 2015.2701)
Sorry about that. Give it a try now.
Works now. Thanks!
Can I afford to say that I find this plugin quite slow?
In a simple project where to use a checkbox as a widget on off switch for the flashlight, the execution is slower than other programs.
Unable to download plugin =(
i downloaded this and it says activated but its not in my plugins directory
Are you using the same account in Corona Simulator and on the website?
Are you using a “supportedPlatforms” line in your build.settings? If so, comment it on, reload the sim, the error should go away and then you can re-enable the line and the simulator will be happy. This has been resolved as of daily build 2811 (today’s build).
Rob
Updated this plugin to support Android 6, starting from daily build 2016.2828.
Nice work
I just have a problem to make it work with your other plugin qrcode on Android (didn’t test on iOs).
Oh, you can’t do that. Flashlight occupies the camera and it becomes unavailable for the QR Scanner. I should make a flashlight option in the QR plugin.
Thank you Sergey.
yes it would be great
z.
I have a question. I already activated the plugin from corona store. Now how do i enable it on my SDK? Does it automatically downloaded to my SDK? Im getting error while building it. It cant find the plugin in my SDK plugin directory. Thank you
To use plugins, you need to add it to your build.settings file. Then you need to require the plugin in the module/scene where you plan to use it and then you call the API calls at the appropriate time.
See the plugin documentation on how to use it:
http://spiralcodestudio.com/plugin-flashlight/
Rob
Hi there,
I’ve been testing the flashlight plugin from the Corona Marketplace. I’m seeing a 0.5 second delay/hang when running flashlight.off(). You can see this in the sample app; when hitting the the “Flashlight OFF” button there is a delay in the button animation completing.
I’m seeing the same in my own app with a single “power” button. A 0.5 second delay in changing images when turning the light off.
Any suggestions for how to avoid this hang/delay would be appreciated.
Flashlight initialises entire camera, it takes time to close it properly. It’s better on iPhones.
I am not sure I can do anything about that delay.