QrOptions

@Stable
class QrOptions(val shapes: QrShapes = QrShapes(), val colors: QrColors = QrColors(), val logo: QrLogo = QrLogo(), val background: QrBackground = QrBackground(), val errorCorrectionLevel: QrErrorCorrectionLevel = QrErrorCorrectionLevel.Auto, val fourEyed: Boolean = false, val scale: Float = 1.0f)

Styling options of the QR code

Parameters

shapes

shapes of the QR code pattern and its parts

colors

colors of the QR code parts

logo

middle image

errorCorrectionLevel

level of error correction

fourEyed

enable fourth eye

scale

qr code scale inside the painter. Can be used to add a padding from the image sides

Constructors

Link copied to clipboard
constructor(shapes: QrShapes = QrShapes(), colors: QrColors = QrColors(), logo: QrLogo = QrLogo(), background: QrBackground = QrBackground(), errorCorrectionLevel: QrErrorCorrectionLevel = QrErrorCorrectionLevel.Auto, fourEyed: Boolean = false, scale: Float = 1.0f)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(shapes: QrShapes = this.shapes, colors: QrColors = this.colors, logo: QrLogo = this.logo, errorCorrectionLevel: QrErrorCorrectionLevel = this.errorCorrectionLevel, fourthEyeEnabled: Boolean = this.fourEyed, background: QrBackground = this.background): QrOptions
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int