I work with Camera2API and I need to turn off the ability to take photos if there is not enough light outside ...
I've thought that when using a standard camera, then there is an opportunity to set the auto mode to flash.
If I understand correctly, the camera works with some kind of sensor that determines the amount of light and if it is not enough then the flash works.
How to connect to this sensor?