encode

fun encode(content: String, ecLevel: ErrorCorrectionLevel, hints: HashMap<EncodeHintType, Any?>? = null): QRCode

Return

QRCode representing the encoded QR code

Parameters

content

text to encode

ecLevel

error correction level to use

Throws

if encoding can't succeed, because of for example invalid content or configuration