Gs1QrCodeBarcode

fun Gs1QrCodeBarcode(symbol: QrCodeSymbol, modifier: Modifier = Modifier, moduleSize: Dp = 4.dp, quietZone: Int = QrCode.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White)(source)

Shows a QR Code symbol, e.g. one made by Gs1QrCode.

Without a size from modifier, each module is moduleSize (rounded to whole pixels). With a fixed size, the symbol is drawn as large as fits, centred, with whole-pixel modules.


fun Gs1QrCodeBarcode(message: Gs1Message, modifier: Modifier = Modifier, domain: String = Gs1DigitalLink.CANONICAL_DOMAIN, errorCorrection: QrErrorCorrection = QrErrorCorrection.M, moduleSize: Dp = 4.dp, quietZone: Int = QrCode.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White)(source)

Shows message as a QR Code with its GS1 Digital Link URI, e.g. https://example.com/01/09501101020917/10/ABC123.

Parameters

domain

scheme and domain of the URI; GS1's https://id.gs1.org by default.

Throws

if the message cannot be a Digital Link URI (e.g. it has no GTIN, SSCC or other primary key) or does not fit; validate data beforehand.