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,13 @@
|
|
|
1
|
+
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
|
|
4
|
+
//! Project version number for Barkoder.
|
|
5
|
+
FOUNDATION_EXPORT double BarkoderVersionNumber;
|
|
6
|
+
|
|
7
|
+
//! Project version string for Barkoder.
|
|
8
|
+
FOUNDATION_EXPORT const unsigned char BarkoderVersionString[];
|
|
9
|
+
|
|
10
|
+
// In this header, you should import all the public headers of your framework using statements like #import <Barkoder/PublicHeader.h>
|
|
11
|
+
#import <Barkoder/iBarkoder.h>
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
#ifndef iBarkoder_h
|
|
2
|
+
#define iBarkoder_h
|
|
3
|
+
|
|
4
|
+
#import <Foundation/Foundation.h>
|
|
5
|
+
#import <CoreImage/CoreImage.h>
|
|
6
|
+
#import <CoreMedia/CoreMedia.h>
|
|
7
|
+
#import <UIKit/UIKit.h>
|
|
8
|
+
|
|
9
|
+
typedef enum {
|
|
10
|
+
GlobalOption_SetMaximumThreads = 0,
|
|
11
|
+
GlobalOption_UseGPU,
|
|
12
|
+
GlobalOption_MulticodeCachingEnabled,
|
|
13
|
+
GlobalOption_MulticodeCachingDuration,
|
|
14
|
+
} GlobalOption;
|
|
15
|
+
|
|
16
|
+
typedef enum {
|
|
17
|
+
Fast = 0,
|
|
18
|
+
Normal,
|
|
19
|
+
Slow
|
|
20
|
+
} DecodingSpeed;
|
|
21
|
+
|
|
22
|
+
typedef enum {
|
|
23
|
+
Aztec,
|
|
24
|
+
AztecCompact,
|
|
25
|
+
QR,
|
|
26
|
+
QRMicro,
|
|
27
|
+
Code128,
|
|
28
|
+
Code93,
|
|
29
|
+
Code39,
|
|
30
|
+
Codabar,
|
|
31
|
+
Code11,
|
|
32
|
+
Msi,
|
|
33
|
+
UpcA,
|
|
34
|
+
UpcE,
|
|
35
|
+
UpcE1,
|
|
36
|
+
Ean13,
|
|
37
|
+
Ean8,
|
|
38
|
+
PDF417,
|
|
39
|
+
PDF417Micro,
|
|
40
|
+
Datamatrix,
|
|
41
|
+
Code25,
|
|
42
|
+
Interleaved25,
|
|
43
|
+
ITF14,
|
|
44
|
+
IATA25,
|
|
45
|
+
Matrix25,
|
|
46
|
+
Datalogic25,
|
|
47
|
+
COOP25,
|
|
48
|
+
Code32,
|
|
49
|
+
Telepen,
|
|
50
|
+
Dotcode
|
|
51
|
+
} DecoderType;
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
typedef enum {
|
|
55
|
+
Disabled = 0,
|
|
56
|
+
Automatic,
|
|
57
|
+
GS1,
|
|
58
|
+
AAMVA
|
|
59
|
+
} Formatting;
|
|
60
|
+
|
|
61
|
+
//==========================================================================
|
|
62
|
+
// BKImage
|
|
63
|
+
//==========================================================================
|
|
64
|
+
@interface Image : NSObject
|
|
65
|
+
- (id)initWithPixels:(uint8_t *)pixels width: (int) width height: (int) height;
|
|
66
|
+
|
|
67
|
+
@property (nonatomic, readwrite) uint8_t* pixels;
|
|
68
|
+
@property (nonatomic, readonly) int width;
|
|
69
|
+
@property (nonatomic, readonly) int height;
|
|
70
|
+
@end
|
|
71
|
+
|
|
72
|
+
//==========================================================================
|
|
73
|
+
// Specific Config
|
|
74
|
+
//==========================================================================
|
|
75
|
+
@interface SpecificConfig : NSObject
|
|
76
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
77
|
+
- (int)setLengthRangeWithMinimum:(int)minimumLength maximum: (int) maximumLength;
|
|
78
|
+
- (DecoderType)decoderType;
|
|
79
|
+
- (bool)isLicensed;
|
|
80
|
+
- (NSString *) typeName;
|
|
81
|
+
|
|
82
|
+
@property (nonatomic, readwrite) bool enabled;
|
|
83
|
+
@property (nonatomic, readwrite) int expectedCount;
|
|
84
|
+
@property (nonatomic, readonly) int minimumLength;
|
|
85
|
+
@property (nonatomic, readonly) int maximumLength;
|
|
86
|
+
@end
|
|
87
|
+
|
|
88
|
+
//==========================================================================
|
|
89
|
+
// Code 11 Config
|
|
90
|
+
//==========================================================================
|
|
91
|
+
@interface Code11Config : SpecificConfig
|
|
92
|
+
typedef enum {
|
|
93
|
+
Code11_Checksum_Disabled,
|
|
94
|
+
Code11_Checksum_Single,
|
|
95
|
+
Code11_Checksum_Double
|
|
96
|
+
} Code11Checksum;
|
|
97
|
+
|
|
98
|
+
@property (nonatomic, readwrite) Code11Checksum checksum;
|
|
99
|
+
|
|
100
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
101
|
+
@end
|
|
102
|
+
|
|
103
|
+
//==========================================================================
|
|
104
|
+
// Code 25 Config
|
|
105
|
+
//==========================================================================
|
|
106
|
+
@interface Code25Config : SpecificConfig
|
|
107
|
+
typedef enum {
|
|
108
|
+
Code25_Checksum_Disabled,
|
|
109
|
+
Code25_Checksum_Enabled
|
|
110
|
+
} Code25Checksum;
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@property (nonatomic, readwrite) Code25Checksum checksum;
|
|
114
|
+
|
|
115
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
116
|
+
@end
|
|
117
|
+
|
|
118
|
+
//==========================================================================
|
|
119
|
+
// IATA 25 Config
|
|
120
|
+
//==========================================================================
|
|
121
|
+
@interface IATA25Config : SpecificConfig
|
|
122
|
+
@property (nonatomic, readwrite) Code25Checksum checksum;
|
|
123
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
124
|
+
@end
|
|
125
|
+
|
|
126
|
+
//==========================================================================
|
|
127
|
+
// Matrix 25 Config
|
|
128
|
+
//==========================================================================
|
|
129
|
+
@interface Matrix25Config : SpecificConfig
|
|
130
|
+
@property (nonatomic, readwrite) Code25Checksum checksum;
|
|
131
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
132
|
+
@end
|
|
133
|
+
|
|
134
|
+
//==========================================================================
|
|
135
|
+
// Datalogic 25 Config
|
|
136
|
+
//==========================================================================
|
|
137
|
+
@interface Datalogic25Config : SpecificConfig
|
|
138
|
+
@property (nonatomic, readwrite) Code25Checksum checksum;
|
|
139
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
140
|
+
@end
|
|
141
|
+
|
|
142
|
+
//==========================================================================
|
|
143
|
+
// COOP 25 Config
|
|
144
|
+
//==========================================================================
|
|
145
|
+
@interface COOP25Config : SpecificConfig
|
|
146
|
+
@property (nonatomic, readwrite) Code25Checksum checksum;
|
|
147
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
148
|
+
@end
|
|
149
|
+
|
|
150
|
+
//==========================================================================
|
|
151
|
+
// Interleaved 2 of 5 Config
|
|
152
|
+
//==========================================================================
|
|
153
|
+
@interface Interleaved25Config : SpecificConfig
|
|
154
|
+
|
|
155
|
+
@property (nonatomic, readwrite) Code25Checksum checksum;
|
|
156
|
+
|
|
157
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
158
|
+
@end
|
|
159
|
+
|
|
160
|
+
//==========================================================================
|
|
161
|
+
// ITF14 Config
|
|
162
|
+
//==========================================================================
|
|
163
|
+
@interface ITF14Config : SpecificConfig
|
|
164
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
165
|
+
@end
|
|
166
|
+
|
|
167
|
+
//==========================================================================
|
|
168
|
+
// Code 39 Config
|
|
169
|
+
//==========================================================================
|
|
170
|
+
@interface Code39Config : SpecificConfig
|
|
171
|
+
typedef enum {
|
|
172
|
+
Code39_Checksum_Disabled,
|
|
173
|
+
Code39_Checksum_Enabled
|
|
174
|
+
} Code39Checksum;
|
|
175
|
+
|
|
176
|
+
@property (nonatomic, readwrite) Code39Checksum checksum;
|
|
177
|
+
|
|
178
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
179
|
+
@end
|
|
180
|
+
|
|
181
|
+
//==========================================================================
|
|
182
|
+
// Telepen Config
|
|
183
|
+
//==========================================================================
|
|
184
|
+
@interface TelepenConfig : SpecificConfig
|
|
185
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
186
|
+
@end
|
|
187
|
+
|
|
188
|
+
//==========================================================================
|
|
189
|
+
// Dotcode Config
|
|
190
|
+
//==========================================================================
|
|
191
|
+
@interface DotcodeConfig : SpecificConfig
|
|
192
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
193
|
+
@end
|
|
194
|
+
|
|
195
|
+
//==========================================================================
|
|
196
|
+
// Code32 Config
|
|
197
|
+
//==========================================================================
|
|
198
|
+
@interface Code32Config : SpecificConfig
|
|
199
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
200
|
+
@end
|
|
201
|
+
|
|
202
|
+
//==========================================================================
|
|
203
|
+
// Msi Config
|
|
204
|
+
//==========================================================================
|
|
205
|
+
@interface MsiConfig : SpecificConfig
|
|
206
|
+
typedef enum {
|
|
207
|
+
Msi_Checksum_Disabled,
|
|
208
|
+
Msi_Checksum_Mod10,
|
|
209
|
+
Msi_Checksum_Mod11,
|
|
210
|
+
Msi_Checksum_Mod1010,
|
|
211
|
+
Msi_Checksum_Mod1110,
|
|
212
|
+
Msi_Checksum_Mod11IBM,
|
|
213
|
+
Msi_Checksum_Mod1110IBM
|
|
214
|
+
} MsiChecksum;
|
|
215
|
+
|
|
216
|
+
@property (nonatomic, readwrite) MsiChecksum checksum;
|
|
217
|
+
|
|
218
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
219
|
+
@end
|
|
220
|
+
|
|
221
|
+
//==========================================================================
|
|
222
|
+
// Aztec Config
|
|
223
|
+
//==========================================================================
|
|
224
|
+
@interface AztecConfig : SpecificConfig
|
|
225
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
226
|
+
@end
|
|
227
|
+
|
|
228
|
+
//==========================================================================
|
|
229
|
+
// Datamatrix Config
|
|
230
|
+
//==========================================================================
|
|
231
|
+
@interface DatamatrixConfig : SpecificConfig
|
|
232
|
+
@property (nonatomic, readwrite) int dpmMode;
|
|
233
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
234
|
+
@end
|
|
235
|
+
|
|
236
|
+
//==========================================================================
|
|
237
|
+
// AztecCompact Config
|
|
238
|
+
//==========================================================================
|
|
239
|
+
@interface AztecCompactConfig : SpecificConfig
|
|
240
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
241
|
+
@end
|
|
242
|
+
|
|
243
|
+
//==========================================================================
|
|
244
|
+
// QR Config
|
|
245
|
+
//==========================================================================
|
|
246
|
+
@interface QRConfig : SpecificConfig
|
|
247
|
+
@property (nonatomic, readwrite) bool multiPartMerge;
|
|
248
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
249
|
+
@end
|
|
250
|
+
|
|
251
|
+
//==========================================================================
|
|
252
|
+
// QRMicro Config
|
|
253
|
+
//==========================================================================
|
|
254
|
+
@interface QRMicroConfig : SpecificConfig
|
|
255
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
256
|
+
@end
|
|
257
|
+
|
|
258
|
+
//==========================================================================
|
|
259
|
+
// Code128 Config
|
|
260
|
+
//==========================================================================
|
|
261
|
+
@interface Code128Config : SpecificConfig
|
|
262
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
263
|
+
@end
|
|
264
|
+
|
|
265
|
+
//==========================================================================
|
|
266
|
+
// Code93 Config
|
|
267
|
+
//==========================================================================
|
|
268
|
+
@interface Code93Config : SpecificConfig
|
|
269
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
270
|
+
@end
|
|
271
|
+
|
|
272
|
+
//==========================================================================
|
|
273
|
+
// Codabar Config
|
|
274
|
+
//==========================================================================
|
|
275
|
+
@interface CodabarConfig : SpecificConfig
|
|
276
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
277
|
+
@end
|
|
278
|
+
|
|
279
|
+
//==========================================================================
|
|
280
|
+
// UpcA Config
|
|
281
|
+
//==========================================================================
|
|
282
|
+
@interface UpcAConfig : SpecificConfig
|
|
283
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
284
|
+
@end
|
|
285
|
+
|
|
286
|
+
//==========================================================================
|
|
287
|
+
// UpcE Config
|
|
288
|
+
//==========================================================================
|
|
289
|
+
@interface UpcEConfig : SpecificConfig
|
|
290
|
+
@property (nonatomic, readwrite) bool expandToUPCA;
|
|
291
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
292
|
+
@end
|
|
293
|
+
|
|
294
|
+
//==========================================================================
|
|
295
|
+
// UpcE1 Config
|
|
296
|
+
//==========================================================================
|
|
297
|
+
@interface UpcE1Config : SpecificConfig
|
|
298
|
+
@property (nonatomic, readwrite) bool expandToUPCA;
|
|
299
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
300
|
+
@end
|
|
301
|
+
|
|
302
|
+
//==========================================================================
|
|
303
|
+
// Ean13 Config
|
|
304
|
+
//==========================================================================
|
|
305
|
+
@interface Ean13Config : SpecificConfig
|
|
306
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
307
|
+
@end
|
|
308
|
+
|
|
309
|
+
//==========================================================================
|
|
310
|
+
// Ean8 Config
|
|
311
|
+
//==========================================================================
|
|
312
|
+
@interface Ean8Config : SpecificConfig
|
|
313
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
314
|
+
@end
|
|
315
|
+
|
|
316
|
+
//==========================================================================
|
|
317
|
+
// PDF417 Config
|
|
318
|
+
//==========================================================================
|
|
319
|
+
@interface PDF417Config : SpecificConfig
|
|
320
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
321
|
+
@end
|
|
322
|
+
|
|
323
|
+
//==========================================================================
|
|
324
|
+
// PDF417Micro Config
|
|
325
|
+
//==========================================================================
|
|
326
|
+
@interface PDF417MicroConfig : SpecificConfig
|
|
327
|
+
- (id)initWithDecoderType:(DecoderType)decoderType;
|
|
328
|
+
@end
|
|
329
|
+
|
|
330
|
+
//==========================================================================
|
|
331
|
+
// Config
|
|
332
|
+
//==========================================================================
|
|
333
|
+
@class Config;
|
|
334
|
+
|
|
335
|
+
@interface ConfigResponse : NSObject
|
|
336
|
+
typedef enum {
|
|
337
|
+
Result_OK,
|
|
338
|
+
Result_Error,
|
|
339
|
+
Result_Warning,
|
|
340
|
+
} Result;
|
|
341
|
+
|
|
342
|
+
@property (nonatomic, readwrite, retain) Config* config;
|
|
343
|
+
@property (nonatomic, readwrite) Result result;
|
|
344
|
+
@property (nonatomic, readonly, retain) NSString* message;
|
|
345
|
+
@end
|
|
346
|
+
|
|
347
|
+
//==========================================================================
|
|
348
|
+
// LicenseCheckResult
|
|
349
|
+
//==========================================================================
|
|
350
|
+
@interface LicenseCheckResult : NSObject
|
|
351
|
+
typedef enum {
|
|
352
|
+
LC_OK = 0,
|
|
353
|
+
LC_OK_NeedServer,
|
|
354
|
+
LC_Error,
|
|
355
|
+
} LicenseCheckCode;
|
|
356
|
+
|
|
357
|
+
@property (nonatomic, readwrite) LicenseCheckCode code;
|
|
358
|
+
@property (nonatomic, readwrite, retain) NSString* message;
|
|
359
|
+
@end
|
|
360
|
+
|
|
361
|
+
//==========================================================================
|
|
362
|
+
// Config
|
|
363
|
+
//==========================================================================
|
|
364
|
+
@interface Config : NSObject
|
|
365
|
+
+(ConfigResponse*)configWithLicenseKey:(NSString*)key licenseCheckHandler:(void (^_Nullable)(LicenseCheckResult * _Nonnull result))callback;
|
|
366
|
+
|
|
367
|
+
+(int) setGlobalOption: (GlobalOption) option value: (int) value;
|
|
368
|
+
+(int) getGlobalOption: (GlobalOption) option;
|
|
369
|
+
|
|
370
|
+
@property (nonatomic, readonly, retain) AztecConfig* _Nonnull aztec;
|
|
371
|
+
@property (nonatomic, readonly, retain) AztecCompactConfig* _Nonnull aztecCompact;
|
|
372
|
+
@property (nonatomic, readonly, retain) QRConfig* _Nonnull qr;
|
|
373
|
+
@property (nonatomic, readonly, retain) QRMicroConfig* _Nonnull qrMicro;
|
|
374
|
+
@property (nonatomic, readonly, retain) Code128Config* _Nonnull code128;
|
|
375
|
+
@property (nonatomic, readonly, retain) Code93Config* _Nonnull code93;
|
|
376
|
+
@property (nonatomic, readonly, retain) Code39Config* _Nonnull code39;
|
|
377
|
+
@property (nonatomic, readonly, retain) TelepenConfig* _Nonnull telepen;
|
|
378
|
+
@property (nonatomic, readonly, retain) DotcodeConfig* _Nonnull dotcode;
|
|
379
|
+
@property (nonatomic, readonly, retain) Code32Config* _Nonnull code32;
|
|
380
|
+
@property (nonatomic, readonly, retain) CodabarConfig* _Nonnull codabar;
|
|
381
|
+
@property (nonatomic, readonly, retain) Code11Config* _Nonnull code11;
|
|
382
|
+
@property (nonatomic, readonly, retain) MsiConfig* _Nonnull msi;
|
|
383
|
+
@property (nonatomic, readonly, retain) Code25Config* _Nonnull code25;
|
|
384
|
+
@property (nonatomic, readonly, retain) IATA25Config* _Nonnull iata25;
|
|
385
|
+
@property (nonatomic, readonly, retain) Matrix25Config* _Nonnull matrix25;
|
|
386
|
+
@property (nonatomic, readonly, retain) Datalogic25Config* _Nonnull datalogic25;
|
|
387
|
+
@property (nonatomic, readonly, retain) COOP25Config* _Nonnull coop25;
|
|
388
|
+
@property (nonatomic, readonly, retain) Interleaved25Config* _Nonnull interleaved25;
|
|
389
|
+
@property (nonatomic, readonly, retain) ITF14Config* _Nonnull itf14;
|
|
390
|
+
@property (nonatomic, readonly, retain) UpcAConfig* _Nonnull upcA;
|
|
391
|
+
@property (nonatomic, readonly, retain) UpcEConfig* _Nonnull upcE;
|
|
392
|
+
@property (nonatomic, readonly, retain) UpcE1Config* _Nonnull upcE1;
|
|
393
|
+
@property (nonatomic, readonly, retain) Ean13Config* _Nonnull ean13;
|
|
394
|
+
@property (nonatomic, readonly, retain) Ean8Config* _Nonnull ean8;
|
|
395
|
+
@property (nonatomic, readonly, retain) PDF417Config* _Nonnull PDF417;
|
|
396
|
+
@property (nonatomic, readonly, retain) PDF417MicroConfig* _Nonnull PDF417Micro;
|
|
397
|
+
@property (nonatomic, readonly, retain) DatamatrixConfig* _Nonnull datamatrix;
|
|
398
|
+
|
|
399
|
+
@property (nonatomic, readwrite) DecodingSpeed decodingSpeed;
|
|
400
|
+
@property (nonatomic, readwrite) NSString * _Nonnull encodingCharacterSet;
|
|
401
|
+
@property (nonatomic, readwrite) Formatting formatting;
|
|
402
|
+
@property (nonatomic, readwrite) int maximumResultsCount;
|
|
403
|
+
@property (nonatomic, readwrite) int duplicatesDelayMs;
|
|
404
|
+
@property (nonatomic, readwrite) bool upcEanDeblur;
|
|
405
|
+
@property (nonatomic, readwrite) bool enableMisshaped1D;
|
|
406
|
+
@property (nonatomic, readwrite) bool enableVINRestrictions;
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
-(void)setEnabledDecoders:(NSArray* _Nonnull)decoders;
|
|
410
|
+
-(NSArray<NSNumber*>* _Nonnull)getEnabledDecoders; // returns array of NSNumbers, getIntValue and cast to DecoderType
|
|
411
|
+
-(NSArray<NSNumber*>* _Nonnull)getAvailableDecoders; // returns array of NSNumbers, getIntValue and cast to DecoderType
|
|
412
|
+
-(SpecificConfig* _Nonnull)getConfigForDecoder:(DecoderType)decoderType;
|
|
413
|
+
-(void)setRegionOfInterestWithLeft:(float)left top:(float)top width:(float)width height:(float)height;
|
|
414
|
+
-(CGRect)regionOfInterest;
|
|
415
|
+
-(NSString * _Nonnull )getDeviceId;
|
|
416
|
+
-(NSString * _Nonnull )getLicenseErrorMessage;
|
|
417
|
+
-(int )getcustomOption: (NSString *_Nonnull)option;
|
|
418
|
+
-(void)setcustomOption: (NSString *_Nonnull)option value:(int) value;
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
@end
|
|
422
|
+
|
|
423
|
+
//==========================================================================
|
|
424
|
+
// DecoderResult
|
|
425
|
+
//==========================================================================
|
|
426
|
+
typedef enum {
|
|
427
|
+
BT_Aztec = 0,
|
|
428
|
+
BT_AztecCompact,
|
|
429
|
+
BT_QR,
|
|
430
|
+
BT_QRMicro,
|
|
431
|
+
BT_Code128,
|
|
432
|
+
BT_Code93,
|
|
433
|
+
BT_Code39,
|
|
434
|
+
BT_Codabar,
|
|
435
|
+
BT_Code11,
|
|
436
|
+
BT_Msi,
|
|
437
|
+
BT_UpcA,
|
|
438
|
+
BT_UpcE,
|
|
439
|
+
BT_UpcE1,
|
|
440
|
+
BT_Ean13,
|
|
441
|
+
BT_Ean8,
|
|
442
|
+
BT_PDF417,
|
|
443
|
+
BT_PDF417Micro,
|
|
444
|
+
BT_Datamatrix,
|
|
445
|
+
BT_Code25,
|
|
446
|
+
BT_Interleaved25,
|
|
447
|
+
BT_ITF14,
|
|
448
|
+
BT_IATA25,
|
|
449
|
+
BT_Matrix25,
|
|
450
|
+
BT_Datalogic25,
|
|
451
|
+
BT_COOP25,
|
|
452
|
+
BT_Code32,
|
|
453
|
+
BT_Telepen,
|
|
454
|
+
BT_Dotcode
|
|
455
|
+
} BarcodeType;
|
|
456
|
+
|
|
457
|
+
@interface DecoderResult : NSObject {
|
|
458
|
+
CGPoint location[4];
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
@property (nonatomic, readwrite) BarcodeType barcodeType;
|
|
462
|
+
@property (nonatomic, readwrite, retain) NSString* barcodeTypeName;
|
|
463
|
+
@property (nonatomic, readwrite, retain) NSData* binaryData;
|
|
464
|
+
@property (nonatomic, readwrite, retain) NSString* textualData;
|
|
465
|
+
@property (nonatomic, readwrite, retain) NSString* characterSet;
|
|
466
|
+
@property (nonatomic, readwrite, retain) NSDictionary* extra;
|
|
467
|
+
|
|
468
|
+
-(int)polygonPointCount;
|
|
469
|
+
-(CGPoint)polygonPointAt:(int)index;
|
|
470
|
+
-(NSString*)getStringForKey:(NSString*)key;
|
|
471
|
+
-(NSArray<NSString*>*)getAllKeys;
|
|
472
|
+
-(CGPoint)locationAt:(int)index;
|
|
473
|
+
-(CGPoint*) getLocationPoints;
|
|
474
|
+
|
|
475
|
+
@end
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
//==========================================================================
|
|
479
|
+
// iBarkoder
|
|
480
|
+
//==========================================================================
|
|
481
|
+
@interface iBarkoder : NSObject
|
|
482
|
+
+(NSString *) GetLibVersion;
|
|
483
|
+
+(bool) IsDecoderBusy;
|
|
484
|
+
+(NSArray<DecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height;
|
|
485
|
+
+(int) decodeImageAsync:(Config*)config image: (Image*) image callback:(void (^)(NSArray<DecoderResult*>*, Image*)) callback;
|
|
486
|
+
+(int) decodeSampleBufferAsync:(Config*)config sampleBuffer:(CMSampleBufferRef)sampleBuffer callback:(void (^)(NSArray<DecoderResult*>*, CMSampleBufferRef)) callback;
|
|
487
|
+
+ (unsigned char*)CGImageToPixels:(CGImageRef) image;
|
|
488
|
+
+ (CGImageRef) CGImageFromPixels:(const char*)pixels width:(int)width height:(int)height;
|
|
489
|
+
+ (UIImage *) UIImageFromPixels:(uint8_t*)pixels width:(int)width height:(int)height;
|
|
490
|
+
|
|
491
|
+
@end
|
|
492
|
+
|
|
493
|
+
#endif /* iBarkoder */
|
|
494
|
+
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist
ADDED
|
Binary file
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Headers/Barkoder.h</key>
|
|
8
|
+
<data>
|
|
9
|
+
9tBmdiEM3Piw6SdXbESop6X7Zac=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/iBarkoder.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
z1AMjObupHU8uy+97C9xehsCWis=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
oj8H9z2gjsXQ/28o6nGTUm56vio=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/module.modulemap</key>
|
|
20
|
+
<data>
|
|
21
|
+
AR9UuWsitRjmz9jQFg/aWWzUbXM=
|
|
22
|
+
</data>
|
|
23
|
+
<key>default.metallib</key>
|
|
24
|
+
<data>
|
|
25
|
+
xgXnZEy9X52PuVPCpVGMH2d0k6w=
|
|
26
|
+
</data>
|
|
27
|
+
</dict>
|
|
28
|
+
<key>files2</key>
|
|
29
|
+
<dict>
|
|
30
|
+
<key>Headers/Barkoder.h</key>
|
|
31
|
+
<dict>
|
|
32
|
+
<key>hash2</key>
|
|
33
|
+
<data>
|
|
34
|
+
GlwDlR4ZXGSuIEGAj0VwxucXuB4qtUkoo9HAgLSbQ3k=
|
|
35
|
+
</data>
|
|
36
|
+
</dict>
|
|
37
|
+
<key>Headers/iBarkoder.h</key>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>hash2</key>
|
|
40
|
+
<data>
|
|
41
|
+
5uRC7KVHq/F13GpnWDkDDrGaJ1Jn6eV0GRrhNFXVobc=
|
|
42
|
+
</data>
|
|
43
|
+
</dict>
|
|
44
|
+
<key>Modules/module.modulemap</key>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>hash2</key>
|
|
47
|
+
<data>
|
|
48
|
+
hAN9dH0zjUR8kFnFBQlkaxw2Rekc7mlT4bgs+bLY2tc=
|
|
49
|
+
</data>
|
|
50
|
+
</dict>
|
|
51
|
+
<key>default.metallib</key>
|
|
52
|
+
<dict>
|
|
53
|
+
<key>hash2</key>
|
|
54
|
+
<data>
|
|
55
|
+
lo+9ZfoQCoBOtfWec4m9LPfvf0ilbEG/bBCCNMqPyfs=
|
|
56
|
+
</data>
|
|
57
|
+
</dict>
|
|
58
|
+
</dict>
|
|
59
|
+
<key>rules</key>
|
|
60
|
+
<dict>
|
|
61
|
+
<key>^.*</key>
|
|
62
|
+
<true/>
|
|
63
|
+
<key>^.*\.lproj/</key>
|
|
64
|
+
<dict>
|
|
65
|
+
<key>optional</key>
|
|
66
|
+
<true/>
|
|
67
|
+
<key>weight</key>
|
|
68
|
+
<real>1000</real>
|
|
69
|
+
</dict>
|
|
70
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>omit</key>
|
|
73
|
+
<true/>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>1100</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^Base\.lproj/</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>weight</key>
|
|
80
|
+
<real>1010</real>
|
|
81
|
+
</dict>
|
|
82
|
+
<key>^version.plist$</key>
|
|
83
|
+
<true/>
|
|
84
|
+
</dict>
|
|
85
|
+
<key>rules2</key>
|
|
86
|
+
<dict>
|
|
87
|
+
<key>.*\.dSYM($|/)</key>
|
|
88
|
+
<dict>
|
|
89
|
+
<key>weight</key>
|
|
90
|
+
<real>11</real>
|
|
91
|
+
</dict>
|
|
92
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
93
|
+
<dict>
|
|
94
|
+
<key>omit</key>
|
|
95
|
+
<true/>
|
|
96
|
+
<key>weight</key>
|
|
97
|
+
<real>2000</real>
|
|
98
|
+
</dict>
|
|
99
|
+
<key>^.*</key>
|
|
100
|
+
<true/>
|
|
101
|
+
<key>^.*\.lproj/</key>
|
|
102
|
+
<dict>
|
|
103
|
+
<key>optional</key>
|
|
104
|
+
<true/>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>1000</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>omit</key>
|
|
111
|
+
<true/>
|
|
112
|
+
<key>weight</key>
|
|
113
|
+
<real>1100</real>
|
|
114
|
+
</dict>
|
|
115
|
+
<key>^Base\.lproj/</key>
|
|
116
|
+
<dict>
|
|
117
|
+
<key>weight</key>
|
|
118
|
+
<real>1010</real>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>^Info\.plist$</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>omit</key>
|
|
123
|
+
<true/>
|
|
124
|
+
<key>weight</key>
|
|
125
|
+
<real>20</real>
|
|
126
|
+
</dict>
|
|
127
|
+
<key>^PkgInfo$</key>
|
|
128
|
+
<dict>
|
|
129
|
+
<key>omit</key>
|
|
130
|
+
<true/>
|
|
131
|
+
<key>weight</key>
|
|
132
|
+
<real>20</real>
|
|
133
|
+
</dict>
|
|
134
|
+
<key>^embedded\.provisionprofile$</key>
|
|
135
|
+
<dict>
|
|
136
|
+
<key>weight</key>
|
|
137
|
+
<real>20</real>
|
|
138
|
+
</dict>
|
|
139
|
+
<key>^version\.plist$</key>
|
|
140
|
+
<dict>
|
|
141
|
+
<key>weight</key>
|
|
142
|
+
<real>20</real>
|
|
143
|
+
</dict>
|
|
144
|
+
</dict>
|
|
145
|
+
</dict>
|
|
146
|
+
</plist>
|