Updated on 2026-08-14
This commit is contained in:
parent
8c4495cb28
commit
adb1aa178a
14 changed files with 165 additions and 168 deletions
|
|
@ -13,8 +13,9 @@ object UtilHelper {
|
|||
|
||||
@Throws(WriterException::class)
|
||||
fun generateQrCode(myCodeText: String): Bitmap {
|
||||
val hintMap = Hashtable<EncodeHintType, ErrorCorrectionLevel>()
|
||||
hintMap[EncodeHintType.ERROR_CORRECTION] = ErrorCorrectionLevel.H // H = 30% damage
|
||||
val hintMap = Hashtable<EncodeHintType, Any>()
|
||||
hintMap[EncodeHintType.ERROR_CORRECTION] = ErrorCorrectionLevel.M // H = 30% damage
|
||||
hintMap[EncodeHintType.MARGIN] = 2
|
||||
|
||||
val qrCodeWriter = QRCodeWriter()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue