QRCode

object QRCode

Types

Link copied to clipboard
data class QRColor @JvmOverloads constructor(@ColorInt val color_black: Int = Color.BLACK, @ColorInt val color_white: Int = Color.WHITE)

QR code color.

Functions

Link copied to clipboard
fun createQRCodeBitmap(content: String, @IntRange(from = 0) width: Int, @IntRange(from = 0) height: Int, characterSet: String = "UTF-8", errorCorrection: ErrorCorrectionLevel = ErrorCorrectionLevel.H, @IntRange(from = 0) margin: Int = 2, qrColor: QRCode.QRColor = QRColor()): Bitmap

Create QR code bitmap (support custom configuration and custom style).