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

Companion

[common]
object Companion

Properties

Name Summary
DEFAULT_CELL_SIZE [common]
const val DEFAULT_CELL_SIZE: Int = 25
DEFAULT_MARGIN [common]
const val DEFAULT_MARGIN: Int = 0

Functions

Name Summary
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.