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 ?