//qrcode-kotlin/qrcode/QRCodeBuilder/withCustomShapeFunction

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.

See also

 
QRCodeShapeFunction
DefaultShapeFunction
RoundSquaresShapeFunction
CircleShapeFunction