setFormats

Sets the barcode formats to scan for.

Parameters

formats

The set of barcode formats. Must not be empty.