//qrcode-kotlin/qrcode/QRCodeBuilder/withCustomShapeFunction
[common]
fun withCustomShapeFunction(shapeFn: QRCodeShapeFunction?): QRCodeBuilder
Sets the QRCode.shapeFn value to a custom one. If set, the builder will ignore the shape parameter.
Default is null
, meaning a QRCodeShapeFunction will be created for the selected shape.
If shape is CUSTOM but customShapeFunction is not set, a DefaultShapeFunction will be used.
QRCodeShapeFunction |
DefaultShapeFunction |
RoundSquaresShapeFunction |
CircleShapeFunction |