Gs1QrCode
QR Code with a GS1 Digital Link URI, e.g. https://example.com/01/09501101020917/10/ABC123.
Phones open the URI as a web address and GS1-aware scanners read the GS1 data from it.
val message = Gs1Message.parse("(01)09501101020917(10)ABC123(17)261231")
val symbol = Gs1QrCode.encode(message, domain = "https://example.com")
symbol.text // https://example.com/01/09501101020917/10/ABC123?17=261231
symbol[row, column]Content copied to clipboard
Functions
Link copied to clipboard
fun encode(message: Gs1Message, domain: String = Gs1DigitalLink.CANONICAL_DOMAIN, errorCorrection: QrErrorCorrection = QrErrorCorrection.M, version: Int? = null): QrCodeSymbol
Encodes the GS1 Digital Link URI of message (see Gs1DigitalLink.toUri).
Link copied to clipboard
fun encodeUri(uri: String, errorCorrection: QrErrorCorrection = QrErrorCorrection.M, version: Int? = null): QrCodeSymbol
Encodes an existing GS1 Digital Link URI exactly as given, after checking that it is valid.