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