private Decoder createDecoder() {
        if (decoderFactory == null) {
            decoderFactory = createDefaultDecoderFactory();
        }
        DecoderResultPointCallback callback = new DecoderResultPointCallback();
        Map<DecodeHintType, Object> hints = new HashMap<>();
        hints.put(DecodeHintType.NEED_RESULT_POINT_CALLBACK, callback);
        Decoder decoder = this.decoderFactory.createDecoder(hints);
        callback.setDecoder(decoder);
        return decoder;
    }
Set the DecoderFactory to use. Use this to specify the formats to decode.

Call this from UI thread only.

@param decoderFactory the DecoderFactory creating Decoders.
@see DefaultDecoderFactory
zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeView.java