parseDocument

abstract fun parseDocument(input: String, acceptedFormats: List<BarcodeDocumentFormat> = BarcodeDocumentFormats.all): GenericDocument?

Parses the string into one of the supported document type or returns null if none of the supported document types was found.

Return

parsed barcode document or null

Parameters

input

input string

acceptedFormats

accepted document formats