Lantern / FlashLight sample

Could you some of you provide me a help on this topic?

I need your help in order to develop an application that emulates a lantern. I mean, I need to understand if there is a sample/code/command in order to check if the device has a back flashlight and then how to turn on/off that light (for Android/Ios).

I do appreciate your help on this topic.

I do apologize if that topic doesn’t belong to that category

Hi @FAVIO007,

At this time, there is not a built-in function to Corona SDK to access and operate the device’s “lantern”. However, you could do this using Corona Enterprise if you wish. The following tutorials are an introduction to Enterprise and illustrate how this could be done:

http://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/

http://coronalabs.com/blog/2014/04/01/tutorial-corona-enterprise-quickstart-android/

Best regards,

Brent

Hi @FAVIO007,

At this time, there is not a built-in function to Corona SDK to access and operate the device’s “lantern”. However, you could do this using Corona Enterprise if you wish. The following tutorials are an introduction to Enterprise and illustrate how this could be done:

http://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/

http://coronalabs.com/blog/2014/04/01/tutorial-corona-enterprise-quickstart-android/

Best regards,

Brent