public ScanOptions setDesiredBarcodeFormats(String... desiredBarcodeFormats) {
        this.desiredBarcodeFormats = Arrays.asList(desiredBarcodeFormats);
        return this;
    }
Set the desired barcode formats to scan.

@param desiredBarcodeFormats names of {@code BarcodeFormat}s to scan for
@return this
zxing-android-embedded/src/com/journeyapps/barcodescanner/ScanOptions.java