Android : How to turn flashlight on/off programmly using Camera Source Builder?

Viewed 798

i made Camera Preview using CameraSource in Android Studio

new CameraSource.Builder(this , detector).setAutoFocusEnabled(true).build();

as you can see i easliy set the Auto Focus Enabled.

i was just wondering if there is an easy way to enable/disable flashlight ?

1 Answers
Related