@Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
        capture.onRequestPermissionsResult(requestCode, permissions, grantResults);
    }
Check if the device's camera has a Flashlight.
@return true if there is Flashlight, otherwise false.
sample/src/main/java/example/zxing/CustomScannerActivity.java