setText

open fun setText(code: String)

Sets the content of the barcode. The user is responsible for the correctness of the content.

The user is responsible for the correctness of the content, for example if you pass an EAN 13 code that does not matches the checksum an Exception will be thrown.

Throws

if no barcode format was set with setFormat.