Barcode Generator Builder
Defined in framework ScanditBarcodeCapture
- SDCBarcodeGeneratorBuilder
@interface SDCBarcodeGeneratorBuilder : NSObject
Added in version 6.21.0
- backgroundColor
@property (nonatomic, strong, nonnull) UIColor *backgroundColor
Added in version 6.21.0
Sets the background color for the generated codes. Default is Color.WHITE.
- foregroundColor
@property (nonatomic, strong, nonnull) UIColor *foregroundColor
Added in version 6.21.0
Sets the foreground color for the generated codes. Default is Color.BLACK.
- - buildWithError:
- (nullable SDCBarcodeGenerator *)buildWithError:(NSError **)error
Added in version 6.21.0
Constructs a SDCBarcodeGenerator with the properties set on the builder.
- SDCQRCodeBarcodeGeneratorBuilder
@interface SDCQRCodeBarcodeGeneratorBuilder : SDCBarcodeGeneratorBuilder
Added in version 6.21.0
- errorCorrectionLevel
@property (nonatomic, assign) SDCQRCodeErrorCorrectionLevel errorCorrectionLevel
Added in version 6.21.0
Configure how much error correction to use in the generated code.
- versionNumber
@property (nonatomic, assign) NSInteger versionNumber
Added in version 6.21.0
The version number for the QR code. Version number determines the size of the QR code, with a larger size allowing more data to be stored. The value must be greater than 0, and if the value is too small for the data being encoded, code generation will fail.
Maximum number of encodable characters (abbreviated) |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Version |
Numeric |
Alphanumeric |
8-bit Binary |
Kanji |
||||||||||||
Low |
Med. |
Quart. |
High |
Low |
Med. |
Quart. |
High |
Low |
Med. |
Quart. |
High |
Low |
Med. |
Quart. |
High |
|
1 |
41 |
34 |
27 |
17 |
25 |
20 |
16 |
10 |
17 |
14 |
11 |
7 |
10 |
8 |
7 |
4 |
2 |
77 |
63 |
48 |
34 |
47 |
38 |
29 |
20 |
32 |
26 |
20 |
14 |
20 |
16 |
12 |
8 |
3 |
127 |
101 |
77 |
58 |
77 |
61 |
47 |
35 |
53 |
42 |
32 |
24 |
32 |
26 |
20 |
15 |
4 |
187 |
149 |
111 |
82 |
114 |
90 |
67 |
50 |
78 |
62 |
46 |
34 |
48 |
38 |
28 |
21 |
5 |
255 |
202 |
144 |
106 |
154 |
122 |
87 |
64 |
106 |
84 |
60 |
44 |
65 |
52 |
37 |
27 |
10 |
652 |
513 |
364 |
288 |
395 |
311 |
221 |
174 |
271 |
213 |
151 |
119 |
167 |
131 |
93 |
74 |
15 |
1250 |
991 |
703 |
530 |
758 |
600 |
426 |
321 |
520 |
412 |
292 |
220 |
320 |
254 |
180 |
136 |
20 |
2061 |
1600 |
1159 |
919 |
1249 |
970 |
702 |
557 |
858 |
666 |
482 |
382 |
528 |
410 |
297 |
235 |
25 |
3057 |
2395 |
1718 |
1286 |
1853 |
1451 |
1041 |
779 |
1273 |
997 |
715 |
535 |
784 |
614 |
440 |
330 |
30 |
4158 |
3289 |
2358 |
1782 |
2520 |
1994 |
1429 |
1080 |
1732 |
1370 |
982 |
742 |
1066 |
843 |
604 |
457 |
35 |
5529 |
4343 |
3081 |
2361 |
3351 |
2632 |
1867 |
1431 |
2303 |
1809 |
1283 |
983 |
1417 |
1113 |
790 |
605 |
40 |
7089 |
5596 |
3993 |
3057 |
4296 |
3391 |
2420 |
1852 |
2953 |
2331 |
1663 |
1273 |
1817 |
1435 |
1024 |
784 |
- SDCAztecBarcodeGeneratorBuilder
@interface SDCAztecBarcodeGeneratorBuilder : SDCBarcodeGeneratorBuilder
Added in version 6.28.0