create

abstract fun create(acceptedFormats: List<BarcodeDocumentFormat> = BarcodeDocumentFormats.all): Result<BarcodeDocumentParser>

Creates a new instance of BarcodeDocumentParser with the specified accepted formats.

Return

A new instance of BarcodeDocumentParser.

Parameters

acceptedFormats

List of BarcodeDocumentFormat that the parser should accept.