//qrcode-kotlin/io.github.g0dkar.qrcode/QRCode/Companion/typeForDataAndECL

typeForDataAndECL

[common]\

@JvmStatic

@JvmOverloads

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

Calculates a suitable value for the dataType field for you.