Hello, how do I use a boolean block to return whether the flashlight is turned on or off. In case if the user starts the app while it is was already turned on, then I can turn it off.
Any extension?
I was asking for a boolean that I could return the flashlight's state.
Taifun's extension only has it in an event block.
For that you may need to build your own extension:
or
will turn flashlight off if it is on
1 Like