barkoder-nativescript 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +9 -0
- package/package.json +81 -0
- package/platforms/android/README.md +9 -0
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/android/barkoder_nativescript.aar +0 -0
- package/platforms/android/include.gradle +11 -0
- package/platforms/ios/Barkoder.xcframework/Info.plist +44 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/Barkoder.h +13 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +494 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/Barkoder.h +13 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +494 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/Info.plist +44 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +528 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK.h +17 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +8416 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +141 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +141 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/module.modulemap +11 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.mp3 +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +671 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +1052 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK.h +17 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +8416 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +141 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +141 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +8416 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +141 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +141 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/module.modulemap +11 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +327 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.mp3 +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +671 -0
- package/platforms/ios/Info.plist +7 -0
- package/platforms/ios/README.md +9 -0
- package/platforms/ios/build.xcconfig +0 -0
- package/references.d.ts +2 -0
- package/typings/ios/objc!Barkoder.d.ts +662 -0
- package/typings/ios/objc!BarkoderSDK.d.ts +185 -0
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
|
|
2
|
+
declare class AztecCompactConfig extends SpecificConfig {
|
|
3
|
+
|
|
4
|
+
static alloc(): AztecCompactConfig; // inherited from NSObject
|
|
5
|
+
|
|
6
|
+
static new(): AztecCompactConfig; // inherited from NSObject
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class AztecConfig extends SpecificConfig {
|
|
10
|
+
|
|
11
|
+
static alloc(): AztecConfig; // inherited from NSObject
|
|
12
|
+
|
|
13
|
+
static new(): AztecConfig; // inherited from NSObject
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const enum BarcodeType {
|
|
17
|
+
|
|
18
|
+
T_Aztec = 0,
|
|
19
|
+
|
|
20
|
+
T_AztecCompact = 1,
|
|
21
|
+
|
|
22
|
+
T_QR = 2,
|
|
23
|
+
|
|
24
|
+
T_QRMicro = 3,
|
|
25
|
+
|
|
26
|
+
T_Code128 = 4,
|
|
27
|
+
|
|
28
|
+
T_Code93 = 5,
|
|
29
|
+
|
|
30
|
+
T_Code39 = 6,
|
|
31
|
+
|
|
32
|
+
T_Codabar = 7,
|
|
33
|
+
|
|
34
|
+
T_Code11 = 8,
|
|
35
|
+
|
|
36
|
+
T_Msi = 9,
|
|
37
|
+
|
|
38
|
+
T_UpcA = 10,
|
|
39
|
+
|
|
40
|
+
T_UpcE = 11,
|
|
41
|
+
|
|
42
|
+
T_UpcE1 = 12,
|
|
43
|
+
|
|
44
|
+
T_Ean13 = 13,
|
|
45
|
+
|
|
46
|
+
T_Ean8 = 14,
|
|
47
|
+
|
|
48
|
+
T_PDF417 = 15,
|
|
49
|
+
|
|
50
|
+
T_PDF417Micro = 16,
|
|
51
|
+
|
|
52
|
+
T_Datamatrix = 17,
|
|
53
|
+
|
|
54
|
+
T_Code25 = 18,
|
|
55
|
+
|
|
56
|
+
T_Interleaved25 = 19,
|
|
57
|
+
|
|
58
|
+
T_ITF14 = 20,
|
|
59
|
+
|
|
60
|
+
T_IATA25 = 21,
|
|
61
|
+
|
|
62
|
+
T_Matrix25 = 22,
|
|
63
|
+
|
|
64
|
+
T_Datalogic25 = 23,
|
|
65
|
+
|
|
66
|
+
T_COOP25 = 24,
|
|
67
|
+
|
|
68
|
+
T_Code32 = 25,
|
|
69
|
+
|
|
70
|
+
T_Telepen = 26,
|
|
71
|
+
|
|
72
|
+
T_Dotcode = 27
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare var BarkoderVersionNumber: number;
|
|
76
|
+
|
|
77
|
+
declare var BarkoderVersionString: interop.Reference<number>;
|
|
78
|
+
|
|
79
|
+
declare class COOP25Config extends SpecificConfig {
|
|
80
|
+
|
|
81
|
+
static alloc(): COOP25Config; // inherited from NSObject
|
|
82
|
+
|
|
83
|
+
static new(): COOP25Config; // inherited from NSObject
|
|
84
|
+
|
|
85
|
+
checksum: Code25Checksum;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class CodabarConfig extends SpecificConfig {
|
|
89
|
+
|
|
90
|
+
static alloc(): CodabarConfig; // inherited from NSObject
|
|
91
|
+
|
|
92
|
+
static new(): CodabarConfig; // inherited from NSObject
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare const enum Code11Checksum {
|
|
96
|
+
|
|
97
|
+
Code11_Checksum_Disabled = 0,
|
|
98
|
+
|
|
99
|
+
Code11_Checksum_Single = 1,
|
|
100
|
+
|
|
101
|
+
Code11_Checksum_Double = 2
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class Code11Config extends SpecificConfig {
|
|
105
|
+
|
|
106
|
+
static alloc(): Code11Config; // inherited from NSObject
|
|
107
|
+
|
|
108
|
+
static new(): Code11Config; // inherited from NSObject
|
|
109
|
+
|
|
110
|
+
checksum: Code11Checksum;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare class Code128Config extends SpecificConfig {
|
|
114
|
+
|
|
115
|
+
static alloc(): Code128Config; // inherited from NSObject
|
|
116
|
+
|
|
117
|
+
static new(): Code128Config; // inherited from NSObject
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare const enum Code25Checksum {
|
|
121
|
+
|
|
122
|
+
Code25_Checksum_Disabled = 0,
|
|
123
|
+
|
|
124
|
+
Code25_Checksum_Enabled = 1
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare class Code25Config extends SpecificConfig {
|
|
128
|
+
|
|
129
|
+
static alloc(): Code25Config; // inherited from NSObject
|
|
130
|
+
|
|
131
|
+
static new(): Code25Config; // inherited from NSObject
|
|
132
|
+
|
|
133
|
+
checksum: Code25Checksum;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class Code32Config extends SpecificConfig {
|
|
137
|
+
|
|
138
|
+
static alloc(): Code32Config; // inherited from NSObject
|
|
139
|
+
|
|
140
|
+
static new(): Code32Config; // inherited from NSObject
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
declare const enum Code39Checksum {
|
|
144
|
+
|
|
145
|
+
Code39_Checksum_Disabled = 0,
|
|
146
|
+
|
|
147
|
+
Code39_Checksum_Enabled = 1
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class Code39Config extends SpecificConfig {
|
|
151
|
+
|
|
152
|
+
static alloc(): Code39Config; // inherited from NSObject
|
|
153
|
+
|
|
154
|
+
static new(): Code39Config; // inherited from NSObject
|
|
155
|
+
|
|
156
|
+
checksum: Code39Checksum;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare class Code93Config extends SpecificConfig {
|
|
160
|
+
|
|
161
|
+
static alloc(): Code93Config; // inherited from NSObject
|
|
162
|
+
|
|
163
|
+
static new(): Code93Config; // inherited from NSObject
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare class Config extends NSObject {
|
|
167
|
+
|
|
168
|
+
static alloc(): Config; // inherited from NSObject
|
|
169
|
+
|
|
170
|
+
static configWithLicenseKeyLicenseCheckHandler(key: string, callback: (p1: LicenseCheckResult) => void): ConfigResponse;
|
|
171
|
+
|
|
172
|
+
static getGlobalOption(option: GlobalOption): number;
|
|
173
|
+
|
|
174
|
+
static new(): Config; // inherited from NSObject
|
|
175
|
+
|
|
176
|
+
static setGlobalOptionValue(option: GlobalOption, value: number): number;
|
|
177
|
+
|
|
178
|
+
readonly PDF417: PDF417Config;
|
|
179
|
+
|
|
180
|
+
readonly PDF417Micro: PDF417MicroConfig;
|
|
181
|
+
|
|
182
|
+
readonly aztec: AztecConfig;
|
|
183
|
+
|
|
184
|
+
readonly aztecCompact: AztecCompactConfig;
|
|
185
|
+
|
|
186
|
+
readonly codabar: CodabarConfig;
|
|
187
|
+
|
|
188
|
+
readonly code11: Code11Config;
|
|
189
|
+
|
|
190
|
+
readonly code128: Code128Config;
|
|
191
|
+
|
|
192
|
+
readonly code25: Code25Config;
|
|
193
|
+
|
|
194
|
+
readonly code32: Code32Config;
|
|
195
|
+
|
|
196
|
+
readonly code39: Code39Config;
|
|
197
|
+
|
|
198
|
+
readonly code93: Code93Config;
|
|
199
|
+
|
|
200
|
+
readonly coop25: COOP25Config;
|
|
201
|
+
|
|
202
|
+
readonly datalogic25: Datalogic25Config;
|
|
203
|
+
|
|
204
|
+
readonly datamatrix: DatamatrixConfig;
|
|
205
|
+
|
|
206
|
+
decodingSpeed: DecodingSpeed;
|
|
207
|
+
|
|
208
|
+
readonly dotcode: DotcodeConfig;
|
|
209
|
+
|
|
210
|
+
duplicatesDelayMs: number;
|
|
211
|
+
|
|
212
|
+
readonly ean13: Ean13Config;
|
|
213
|
+
|
|
214
|
+
readonly ean8: Ean8Config;
|
|
215
|
+
|
|
216
|
+
enableMisshaped1D: boolean;
|
|
217
|
+
|
|
218
|
+
enableVINRestrictions: boolean;
|
|
219
|
+
|
|
220
|
+
encodingCharacterSet: string;
|
|
221
|
+
|
|
222
|
+
formatting: Formatting;
|
|
223
|
+
|
|
224
|
+
readonly iata25: IATA25Config;
|
|
225
|
+
|
|
226
|
+
readonly interleaved25: Interleaved25Config;
|
|
227
|
+
|
|
228
|
+
readonly itf14: ITF14Config;
|
|
229
|
+
|
|
230
|
+
readonly matrix25: Matrix25Config;
|
|
231
|
+
|
|
232
|
+
maximumResultsCount: number;
|
|
233
|
+
|
|
234
|
+
readonly msi: MsiConfig;
|
|
235
|
+
|
|
236
|
+
readonly qr: QRConfig;
|
|
237
|
+
|
|
238
|
+
readonly qrMicro: QRMicroConfig;
|
|
239
|
+
|
|
240
|
+
readonly telepen: TelepenConfig;
|
|
241
|
+
|
|
242
|
+
readonly upcA: UpcAConfig;
|
|
243
|
+
|
|
244
|
+
readonly upcE: UpcEConfig;
|
|
245
|
+
|
|
246
|
+
readonly upcE1: UpcE1Config;
|
|
247
|
+
|
|
248
|
+
upcEanDeblur: boolean;
|
|
249
|
+
|
|
250
|
+
getAvailableDecoders(): NSArray<number>;
|
|
251
|
+
|
|
252
|
+
getConfigForDecoder(decoderType: DecoderType): SpecificConfig;
|
|
253
|
+
|
|
254
|
+
getDeviceId(): string;
|
|
255
|
+
|
|
256
|
+
getEnabledDecoders(): NSArray<number>;
|
|
257
|
+
|
|
258
|
+
getLicenseErrorMessage(): string;
|
|
259
|
+
|
|
260
|
+
getcustomOption(option: string): number;
|
|
261
|
+
|
|
262
|
+
regionOfInterest(): CGRect;
|
|
263
|
+
|
|
264
|
+
setEnabledDecoders(decoders: NSArray<any> | any[]): void;
|
|
265
|
+
|
|
266
|
+
setRegionOfInterestWithLeftTopWidthHeight(left: number, top: number, width: number, height: number): void;
|
|
267
|
+
|
|
268
|
+
setcustomOptionValue(option: string, value: number): void;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
declare class ConfigResponse extends NSObject {
|
|
272
|
+
|
|
273
|
+
static alloc(): ConfigResponse; // inherited from NSObject
|
|
274
|
+
|
|
275
|
+
static new(): ConfigResponse; // inherited from NSObject
|
|
276
|
+
|
|
277
|
+
config: Config;
|
|
278
|
+
|
|
279
|
+
readonly message: string;
|
|
280
|
+
|
|
281
|
+
result: Result;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
declare class Datalogic25Config extends SpecificConfig {
|
|
285
|
+
|
|
286
|
+
static alloc(): Datalogic25Config; // inherited from NSObject
|
|
287
|
+
|
|
288
|
+
static new(): Datalogic25Config; // inherited from NSObject
|
|
289
|
+
|
|
290
|
+
checksum: Code25Checksum;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare class DatamatrixConfig extends SpecificConfig {
|
|
294
|
+
|
|
295
|
+
static alloc(): DatamatrixConfig; // inherited from NSObject
|
|
296
|
+
|
|
297
|
+
static new(): DatamatrixConfig; // inherited from NSObject
|
|
298
|
+
|
|
299
|
+
dpmMode: number;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
declare class DecoderResult extends NSObject {
|
|
303
|
+
|
|
304
|
+
static alloc(): DecoderResult; // inherited from NSObject
|
|
305
|
+
|
|
306
|
+
static new(): DecoderResult; // inherited from NSObject
|
|
307
|
+
|
|
308
|
+
barcodeType: BarcodeType;
|
|
309
|
+
|
|
310
|
+
barcodeTypeName: string;
|
|
311
|
+
|
|
312
|
+
binaryData: NSData;
|
|
313
|
+
|
|
314
|
+
characterSet: string;
|
|
315
|
+
|
|
316
|
+
extra: NSDictionary<any, any>;
|
|
317
|
+
|
|
318
|
+
textualData: string;
|
|
319
|
+
|
|
320
|
+
getAllKeys(): NSArray<string>;
|
|
321
|
+
|
|
322
|
+
getLocationPoints(): interop.Pointer | interop.Reference<CGPoint>;
|
|
323
|
+
|
|
324
|
+
getStringForKey(key: string): string;
|
|
325
|
+
|
|
326
|
+
locationAt(index: number): CGPoint;
|
|
327
|
+
|
|
328
|
+
polygonPointAt(index: number): CGPoint;
|
|
329
|
+
|
|
330
|
+
polygonPointCount(): number;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
declare const enum DecoderType {
|
|
334
|
+
|
|
335
|
+
Aztec = 0,
|
|
336
|
+
|
|
337
|
+
AztecCompact = 1,
|
|
338
|
+
|
|
339
|
+
QR = 2,
|
|
340
|
+
|
|
341
|
+
QRMicro = 3,
|
|
342
|
+
|
|
343
|
+
Code128 = 4,
|
|
344
|
+
|
|
345
|
+
Code93 = 5,
|
|
346
|
+
|
|
347
|
+
Code39 = 6,
|
|
348
|
+
|
|
349
|
+
Codabar = 7,
|
|
350
|
+
|
|
351
|
+
Code11 = 8,
|
|
352
|
+
|
|
353
|
+
Msi = 9,
|
|
354
|
+
|
|
355
|
+
UpcA = 10,
|
|
356
|
+
|
|
357
|
+
UpcE = 11,
|
|
358
|
+
|
|
359
|
+
UpcE1 = 12,
|
|
360
|
+
|
|
361
|
+
Ean13 = 13,
|
|
362
|
+
|
|
363
|
+
Ean8 = 14,
|
|
364
|
+
|
|
365
|
+
PDF417 = 15,
|
|
366
|
+
|
|
367
|
+
PDF417Micro = 16,
|
|
368
|
+
|
|
369
|
+
Datamatrix = 17,
|
|
370
|
+
|
|
371
|
+
Code25 = 18,
|
|
372
|
+
|
|
373
|
+
Interleaved25 = 19,
|
|
374
|
+
|
|
375
|
+
ITF14 = 20,
|
|
376
|
+
|
|
377
|
+
IATA25 = 21,
|
|
378
|
+
|
|
379
|
+
Matrix25 = 22,
|
|
380
|
+
|
|
381
|
+
Datalogic25 = 23,
|
|
382
|
+
|
|
383
|
+
COOP25 = 24,
|
|
384
|
+
|
|
385
|
+
Code32 = 25,
|
|
386
|
+
|
|
387
|
+
Telepen = 26,
|
|
388
|
+
|
|
389
|
+
Dotcode = 27
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare const enum DecodingSpeed {
|
|
393
|
+
|
|
394
|
+
Fast = 0,
|
|
395
|
+
|
|
396
|
+
Normal = 1,
|
|
397
|
+
|
|
398
|
+
Slow = 2
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
declare class DotcodeConfig extends SpecificConfig {
|
|
402
|
+
|
|
403
|
+
static alloc(): DotcodeConfig; // inherited from NSObject
|
|
404
|
+
|
|
405
|
+
static new(): DotcodeConfig; // inherited from NSObject
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare class Ean13Config extends SpecificConfig {
|
|
409
|
+
|
|
410
|
+
static alloc(): Ean13Config; // inherited from NSObject
|
|
411
|
+
|
|
412
|
+
static new(): Ean13Config; // inherited from NSObject
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
declare class Ean8Config extends SpecificConfig {
|
|
416
|
+
|
|
417
|
+
static alloc(): Ean8Config; // inherited from NSObject
|
|
418
|
+
|
|
419
|
+
static new(): Ean8Config; // inherited from NSObject
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
declare const enum Formatting {
|
|
423
|
+
|
|
424
|
+
Disabled = 0,
|
|
425
|
+
|
|
426
|
+
Automatic = 1,
|
|
427
|
+
|
|
428
|
+
GS1 = 2,
|
|
429
|
+
|
|
430
|
+
AAMVA = 3
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
declare const enum GlobalOption {
|
|
434
|
+
|
|
435
|
+
SetMaximumThreads = 0,
|
|
436
|
+
|
|
437
|
+
UseGPU = 1,
|
|
438
|
+
|
|
439
|
+
MulticodeCachingEnabled = 2,
|
|
440
|
+
|
|
441
|
+
MulticodeCachingDuration = 3
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare class IATA25Config extends SpecificConfig {
|
|
445
|
+
|
|
446
|
+
static alloc(): IATA25Config; // inherited from NSObject
|
|
447
|
+
|
|
448
|
+
static new(): IATA25Config; // inherited from NSObject
|
|
449
|
+
|
|
450
|
+
checksum: Code25Checksum;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare class ITF14Config extends SpecificConfig {
|
|
454
|
+
|
|
455
|
+
static alloc(): ITF14Config; // inherited from NSObject
|
|
456
|
+
|
|
457
|
+
static new(): ITF14Config; // inherited from NSObject
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
declare class Image extends NSObject {
|
|
461
|
+
|
|
462
|
+
static alloc(): Image; // inherited from NSObject
|
|
463
|
+
|
|
464
|
+
static new(): Image; // inherited from NSObject
|
|
465
|
+
|
|
466
|
+
readonly height: number;
|
|
467
|
+
|
|
468
|
+
pixels: string;
|
|
469
|
+
|
|
470
|
+
readonly width: number;
|
|
471
|
+
|
|
472
|
+
constructor(o: { pixels: string | interop.Pointer | interop.Reference<any>; width: number; height: number; });
|
|
473
|
+
|
|
474
|
+
initWithPixelsWidthHeight(pixels: string | interop.Pointer | interop.Reference<any>, width: number, height: number): this;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare class Interleaved25Config extends SpecificConfig {
|
|
478
|
+
|
|
479
|
+
static alloc(): Interleaved25Config; // inherited from NSObject
|
|
480
|
+
|
|
481
|
+
static new(): Interleaved25Config; // inherited from NSObject
|
|
482
|
+
|
|
483
|
+
checksum: Code25Checksum;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
declare const enum LicenseCheckCode {
|
|
487
|
+
|
|
488
|
+
C_OK = 0,
|
|
489
|
+
|
|
490
|
+
C_OK_NeedServer = 1,
|
|
491
|
+
|
|
492
|
+
C_Error = 2
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
declare class LicenseCheckResult extends NSObject {
|
|
496
|
+
|
|
497
|
+
static alloc(): LicenseCheckResult; // inherited from NSObject
|
|
498
|
+
|
|
499
|
+
static new(): LicenseCheckResult; // inherited from NSObject
|
|
500
|
+
|
|
501
|
+
code: LicenseCheckCode;
|
|
502
|
+
|
|
503
|
+
message: string;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
declare class Matrix25Config extends SpecificConfig {
|
|
507
|
+
|
|
508
|
+
static alloc(): Matrix25Config; // inherited from NSObject
|
|
509
|
+
|
|
510
|
+
static new(): Matrix25Config; // inherited from NSObject
|
|
511
|
+
|
|
512
|
+
checksum: Code25Checksum;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare const enum MsiChecksum {
|
|
516
|
+
|
|
517
|
+
Msi_Checksum_Disabled = 0,
|
|
518
|
+
|
|
519
|
+
Msi_Checksum_Mod10 = 1,
|
|
520
|
+
|
|
521
|
+
Msi_Checksum_Mod11 = 2,
|
|
522
|
+
|
|
523
|
+
Msi_Checksum_Mod1010 = 3,
|
|
524
|
+
|
|
525
|
+
Msi_Checksum_Mod1110 = 4,
|
|
526
|
+
|
|
527
|
+
Msi_Checksum_Mod11IBM = 5,
|
|
528
|
+
|
|
529
|
+
Msi_Checksum_Mod1110IBM = 6
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
declare class MsiConfig extends SpecificConfig {
|
|
533
|
+
|
|
534
|
+
static alloc(): MsiConfig; // inherited from NSObject
|
|
535
|
+
|
|
536
|
+
static new(): MsiConfig; // inherited from NSObject
|
|
537
|
+
|
|
538
|
+
checksum: MsiChecksum;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
declare class PDF417Config extends SpecificConfig {
|
|
542
|
+
|
|
543
|
+
static alloc(): PDF417Config; // inherited from NSObject
|
|
544
|
+
|
|
545
|
+
static new(): PDF417Config; // inherited from NSObject
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class PDF417MicroConfig extends SpecificConfig {
|
|
549
|
+
|
|
550
|
+
static alloc(): PDF417MicroConfig; // inherited from NSObject
|
|
551
|
+
|
|
552
|
+
static new(): PDF417MicroConfig; // inherited from NSObject
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class QRConfig extends SpecificConfig {
|
|
556
|
+
|
|
557
|
+
static alloc(): QRConfig; // inherited from NSObject
|
|
558
|
+
|
|
559
|
+
static new(): QRConfig; // inherited from NSObject
|
|
560
|
+
|
|
561
|
+
multiPartMerge: boolean;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
declare class QRMicroConfig extends SpecificConfig {
|
|
565
|
+
|
|
566
|
+
static alloc(): QRMicroConfig; // inherited from NSObject
|
|
567
|
+
|
|
568
|
+
static new(): QRMicroConfig; // inherited from NSObject
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
declare const enum Result {
|
|
572
|
+
|
|
573
|
+
OK = 0,
|
|
574
|
+
|
|
575
|
+
Error = 1,
|
|
576
|
+
|
|
577
|
+
Warning = 2
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
declare class SpecificConfig extends NSObject {
|
|
581
|
+
|
|
582
|
+
static alloc(): SpecificConfig; // inherited from NSObject
|
|
583
|
+
|
|
584
|
+
static new(): SpecificConfig; // inherited from NSObject
|
|
585
|
+
|
|
586
|
+
enabled: boolean;
|
|
587
|
+
|
|
588
|
+
expectedCount: number;
|
|
589
|
+
|
|
590
|
+
readonly maximumLength: number;
|
|
591
|
+
|
|
592
|
+
readonly minimumLength: number;
|
|
593
|
+
|
|
594
|
+
constructor(o: { decoderType: DecoderType; });
|
|
595
|
+
|
|
596
|
+
decoderType(): DecoderType;
|
|
597
|
+
|
|
598
|
+
initWithDecoderType(decoderType: DecoderType): this;
|
|
599
|
+
|
|
600
|
+
isLicensed(): boolean;
|
|
601
|
+
|
|
602
|
+
setLengthRangeWithMinimumMaximum(minimumLength: number, maximumLength: number): number;
|
|
603
|
+
|
|
604
|
+
typeName(): string;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare class TelepenConfig extends SpecificConfig {
|
|
608
|
+
|
|
609
|
+
static alloc(): TelepenConfig; // inherited from NSObject
|
|
610
|
+
|
|
611
|
+
static new(): TelepenConfig; // inherited from NSObject
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
declare class UpcAConfig extends SpecificConfig {
|
|
615
|
+
|
|
616
|
+
static alloc(): UpcAConfig; // inherited from NSObject
|
|
617
|
+
|
|
618
|
+
static new(): UpcAConfig; // inherited from NSObject
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
declare class UpcE1Config extends SpecificConfig {
|
|
622
|
+
|
|
623
|
+
static alloc(): UpcE1Config; // inherited from NSObject
|
|
624
|
+
|
|
625
|
+
static new(): UpcE1Config; // inherited from NSObject
|
|
626
|
+
|
|
627
|
+
expandToUPCA: boolean;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
declare class UpcEConfig extends SpecificConfig {
|
|
631
|
+
|
|
632
|
+
static alloc(): UpcEConfig; // inherited from NSObject
|
|
633
|
+
|
|
634
|
+
static new(): UpcEConfig; // inherited from NSObject
|
|
635
|
+
|
|
636
|
+
expandToUPCA: boolean;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
declare class iBarkoder extends NSObject {
|
|
640
|
+
|
|
641
|
+
static CGImageFromPixelsWidthHeight(pixels: string | interop.Pointer | interop.Reference<any>, width: number, height: number): any;
|
|
642
|
+
|
|
643
|
+
static CGImageToPixels(image: any): string;
|
|
644
|
+
|
|
645
|
+
static GetLibVersion(): string;
|
|
646
|
+
|
|
647
|
+
static GetVersion(): string;
|
|
648
|
+
|
|
649
|
+
static IsDecoderBusy(): boolean;
|
|
650
|
+
|
|
651
|
+
static UIImageFromPixelsWidthHeight(pixels: string | interop.Pointer | interop.Reference<any>, width: number, height: number): UIImage;
|
|
652
|
+
|
|
653
|
+
static alloc(): iBarkoder; // inherited from NSObject
|
|
654
|
+
|
|
655
|
+
static decodeImageAsyncImageCallback(config: Config, image: Image, callback: (p1: NSArray<DecoderResult>, p2: Image) => void): number;
|
|
656
|
+
|
|
657
|
+
static decodeImageInMemoryImagePixelsImageWidthImageHeight(config: Config, pixels: string | interop.Pointer | interop.Reference<any>, width: number, height: number): NSArray<DecoderResult>;
|
|
658
|
+
|
|
659
|
+
static decodeSampleBufferAsyncSampleBufferCallback(config: Config, sampleBuffer: any, callback: (p1: NSArray<DecoderResult>, p2: any) => void): number;
|
|
660
|
+
|
|
661
|
+
static new(): iBarkoder; // inherited from NSObject
|
|
662
|
+
}
|