encode
fun encode(message: Gs1Message, domain: String = Gs1DigitalLink.CANONICAL_DOMAIN, errorCorrection: QrErrorCorrection = QrErrorCorrection.M, version: Int? = null): QrCodeSymbol(source)
Encodes the GS1 Digital Link URI of message (see Gs1DigitalLink.toUri).
Parameters
domain
scheme and domain, optionally with a path prefix; GS1's https://id.gs1.org by default.
Throws
if the message has no Digital Link primary key, contains AIs not allowed in a Digital Link URI, or is too long (Gs1ErrorCode.QR_CODE_TOO_LONG).