infoDensityForDataAndECL

fun infoDensityForDataAndECL(data: String, errorCorrectionLevel: ErrorCorrectionLevel, dataType: QRCodeDataType = QRUtil.getDataType(data)): Int(source)

Infer what is the least amount of the QRCode.informationDensity parameter to fit the specified data at the given errorCorrectionLevel.

If it cannot determine the value, the maximum value for it will be returned: 40.

See also