Module: Toybox.ScanCode
Overview
The ScanCode module provides functionality to for generating machine readable code images.
Constant Summary
-
QrCodeEcc
-
QrCodeMask
| Name | Value | Since | Description |
|---|---|---|---|
| QR_CODE_ECC_LOW | 0 | API Level 6.0.0 |
Tolerate up to 7% error |
| QR_CODE_ECC_MEDIUM | 1 | API Level 6.0.0 |
Tolerate up to 15% error |
| QR_CODE_ECC_QUARTILE | 2 | API Level 6.0.0 |
Tolerate up to 25% error |
| QR_CODE_ECC_HIGH | 3 | API Level 6.0.0 |
Tolerate up to 30% error |
| Name | Value | Since | Description |
|---|---|---|---|
| QR_CODE_MASK_AUTO | -1 | API Level 6.0.0 |
|
| QR_CODE_MASK_0 | 0 | API Level 6.0.0 |
|
| QR_CODE_MASK_1 | 1 | API Level 6.0.0 |
|
| QR_CODE_MASK_2 | 2 | API Level 6.0.0 |
|
| QR_CODE_MASK_3 | 3 | API Level 6.0.0 |
|
| QR_CODE_MASK_4 | 4 | API Level 6.0.0 |
|
| QR_CODE_MASK_5 | 5 | API Level 6.0.0 |
|
| QR_CODE_MASK_6 | 6 | API Level 6.0.0 |
|
| QR_CODE_MASK_7 | 7 | API Level 6.0.0 |
Typedef Summary collapse
- QrCodeOptions as { :minVersion as Lang.Number, :maxVersion as Lang.Number, :maskValue as ScanCode.QrCodeMask, :color as Graphics.ColorType, :backgroundColor as Graphics.ColorType }
- QrCodeValue as Lang.ByteArray or Lang.String or Lang.Array<Lang.ByteArray or Lang.String>
Instance Method Summary collapse
-
createQrCodeImage(value as ScanCode.QrCodeValue, ecc as ScanCode.QrCodeEcc, imageSize as Lang.Number, options as ScanCode.QrCodeOptions or Null) as Graphics.BufferedBitmap
Create a Quick Response Code image.
Typedef Details
QrCodeOptions as { :minVersion as Lang.Number, :maxVersion as Lang.Number, :maskValue as ScanCode.QrCodeMask, :color as Graphics.ColorType, :backgroundColor as Graphics.ColorType }
QrCodeValue as Lang.ByteArray or Lang.String or Lang.Array<Lang.ByteArray or Lang.String>
Instance Method Details
createQrCodeImage(value as ScanCode.QrCodeValue, ecc as ScanCode.QrCodeEcc, imageSize as Lang.Number, options as ScanCode.QrCodeOptions or Null) as Graphics.BufferedBitmap
Create a Quick Response Code image