encodeUri

fun encodeUri(uri: String, errorCorrection: QrErrorCorrection = QrErrorCorrection.M, version: Int? = null): QrCodeSymbol(source)

Encodes an existing GS1 Digital Link URI exactly as given, after checking that it is valid.

Throws

if uri is not a valid GS1 Digital Link URI or is too long.