DecoderResult

class DecoderResult(rawBytes: ByteArray?, text: String?, byteSegments: List<ByteArray>?, ecLevel: String?, saSequence: Int, saParity: Int, symbologyModifier: Int)

Encapsulates the result of decoding a matrix of bits. This typically applies to 2D barcode formats. For now it contains the raw bytes obtained, as well as a String interpretation of those bytes, if applicable.

Constructors

Link copied to clipboard
constructor(rawBytes: ByteArray?, text: String?, byteSegments: List<ByteArray>?, ecLevel: String?, saSequence: Int, saParity: Int, symbologyModifier: Int)
constructor(rawBytes: ByteArray?, text: String?, byteSegments: List<ByteArray>?, ecLevel: String?)
constructor(rawBytes: ByteArray?, text: String?, byteSegments: List<ByteArray>?, ecLevel: String?, symbologyModifier: Int)
constructor(rawBytes: ByteArray?, text: String?, byteSegments: List<ByteArray>?, ecLevel: String?, saSequence: Int, saParity: Int)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getOther(): Any?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getText(): String?
Link copied to clipboard
Link copied to clipboard
fun setErasures(erasures: Int?)
Link copied to clipboard
fun setErrorsCorrected(errorsCorrected: Int?)
Link copied to clipboard
fun setNumBits(numBits: Int)
Link copied to clipboard
fun setOther(other: Any?)
Link copied to clipboard
fun setReaderInit(readerInit: Boolean?)