I work with Camera2API
and I need to disable the ability to take a photo if the outside is not enough light ...
I've thought about that, when user use standard camera he have setting to flash (auto mode).
If I understand correctly, the camera works with some sort of sensor that detects the amount of light, and if it is not enough that the flash works.
How to connect this sensor?