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.
Files changed (54) hide show
  1. package/index.d.ts +9 -0
  2. package/package.json +81 -0
  3. package/platforms/android/README.md +9 -0
  4. package/platforms/android/barkoder.aar +0 -0
  5. package/platforms/android/barkoder_nativescript.aar +0 -0
  6. package/platforms/android/include.gradle +11 -0
  7. package/platforms/ios/Barkoder.xcframework/Info.plist +44 -0
  8. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
  9. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/Barkoder.h +13 -0
  10. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +494 -0
  11. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
  12. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +6 -0
  13. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +0 -0
  14. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
  15. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/Barkoder.h +13 -0
  16. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +494 -0
  17. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist +0 -0
  18. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Modules/module.modulemap +6 -0
  19. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +146 -0
  20. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
  21. package/platforms/ios/BarkoderSDK.xcframework/Info.plist +44 -0
  22. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
  23. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +528 -0
  24. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK.h +17 -0
  25. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
  26. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +8416 -0
  27. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +141 -0
  28. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  29. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +141 -0
  30. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/module.modulemap +11 -0
  31. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.mp3 +0 -0
  32. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +671 -0
  33. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
  34. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +1052 -0
  35. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK.h +17 -0
  36. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
  37. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +8416 -0
  38. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +141 -0
  39. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  40. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +141 -0
  41. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +8416 -0
  42. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +141 -0
  43. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  44. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +141 -0
  45. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/module.modulemap +11 -0
  46. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +327 -0
  47. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.mp3 +0 -0
  48. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +671 -0
  49. package/platforms/ios/Info.plist +7 -0
  50. package/platforms/ios/README.md +9 -0
  51. package/platforms/ios/build.xcconfig +0 -0
  52. package/references.d.ts +2 -0
  53. package/typings/ios/objc!Barkoder.d.ts +662 -0
  54. package/typings/ios/objc!BarkoderSDK.d.ts +185 -0
@@ -0,0 +1,1052 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
4
+ #ifndef BARKODERSDK_SWIFT_H
5
+ #define BARKODERSDK_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
38
+ #else
39
+ #include <stdint.h>
40
+ #include <stddef.h>
41
+ #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
+ # include <ptrauth.h>
47
+ #else
48
+ #pragma clang diagnostic push
49
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
50
+ # ifndef __ptrauth_swift_value_witness_function_pointer
51
+ # define __ptrauth_swift_value_witness_function_pointer(x)
52
+ # endif
53
+ # ifndef __ptrauth_swift_class_method_pointer
54
+ # define __ptrauth_swift_class_method_pointer(x)
55
+ # endif
56
+ #pragma clang diagnostic pop
57
+ #endif
58
+ #endif
59
+
60
+ #if !defined(SWIFT_TYPEDEFS)
61
+ # define SWIFT_TYPEDEFS 1
62
+ # if __has_include(<uchar.h>)
63
+ # include <uchar.h>
64
+ # elif !defined(__cplusplus)
65
+ typedef uint_least16_t char16_t;
66
+ typedef uint_least32_t char32_t;
67
+ # endif
68
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
69
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
70
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
71
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
72
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
73
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
74
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
75
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
76
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
77
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
78
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
79
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
80
+ #endif
81
+
82
+ #if !defined(SWIFT_PASTE)
83
+ # define SWIFT_PASTE_HELPER(x, y) x##y
84
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
85
+ #endif
86
+ #if !defined(SWIFT_METATYPE)
87
+ # define SWIFT_METATYPE(X) Class
88
+ #endif
89
+ #if !defined(SWIFT_CLASS_PROPERTY)
90
+ # if __has_feature(objc_class_property)
91
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
92
+ # else
93
+ # define SWIFT_CLASS_PROPERTY(...)
94
+ # endif
95
+ #endif
96
+ #if !defined(SWIFT_RUNTIME_NAME)
97
+ # if __has_attribute(objc_runtime_name)
98
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
99
+ # else
100
+ # define SWIFT_RUNTIME_NAME(X)
101
+ # endif
102
+ #endif
103
+ #if !defined(SWIFT_COMPILE_NAME)
104
+ # if __has_attribute(swift_name)
105
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
106
+ # else
107
+ # define SWIFT_COMPILE_NAME(X)
108
+ # endif
109
+ #endif
110
+ #if !defined(SWIFT_METHOD_FAMILY)
111
+ # if __has_attribute(objc_method_family)
112
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
113
+ # else
114
+ # define SWIFT_METHOD_FAMILY(X)
115
+ # endif
116
+ #endif
117
+ #if !defined(SWIFT_NOESCAPE)
118
+ # if __has_attribute(noescape)
119
+ # define SWIFT_NOESCAPE __attribute__((noescape))
120
+ # else
121
+ # define SWIFT_NOESCAPE
122
+ # endif
123
+ #endif
124
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
125
+ # if __has_attribute(ns_consumed)
126
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
127
+ # else
128
+ # define SWIFT_RELEASES_ARGUMENT
129
+ # endif
130
+ #endif
131
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
132
+ # if __has_attribute(warn_unused_result)
133
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
134
+ # else
135
+ # define SWIFT_WARN_UNUSED_RESULT
136
+ # endif
137
+ #endif
138
+ #if !defined(SWIFT_NORETURN)
139
+ # if __has_attribute(noreturn)
140
+ # define SWIFT_NORETURN __attribute__((noreturn))
141
+ # else
142
+ # define SWIFT_NORETURN
143
+ # endif
144
+ #endif
145
+ #if !defined(SWIFT_CLASS_EXTRA)
146
+ # define SWIFT_CLASS_EXTRA
147
+ #endif
148
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
149
+ # define SWIFT_PROTOCOL_EXTRA
150
+ #endif
151
+ #if !defined(SWIFT_ENUM_EXTRA)
152
+ # define SWIFT_ENUM_EXTRA
153
+ #endif
154
+ #if !defined(SWIFT_CLASS)
155
+ # if __has_attribute(objc_subclassing_restricted)
156
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
157
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
158
+ # else
159
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
160
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
161
+ # endif
162
+ #endif
163
+ #if !defined(SWIFT_RESILIENT_CLASS)
164
+ # if __has_attribute(objc_class_stub)
165
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
166
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
167
+ # else
168
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
169
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
170
+ # endif
171
+ #endif
172
+ #if !defined(SWIFT_PROTOCOL)
173
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
174
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
175
+ #endif
176
+ #if !defined(SWIFT_EXTENSION)
177
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
178
+ #endif
179
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
180
+ # if __has_attribute(objc_designated_initializer)
181
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
182
+ # else
183
+ # define OBJC_DESIGNATED_INITIALIZER
184
+ # endif
185
+ #endif
186
+ #if !defined(SWIFT_ENUM_ATTR)
187
+ # if __has_attribute(enum_extensibility)
188
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
189
+ # else
190
+ # define SWIFT_ENUM_ATTR(_extensibility)
191
+ # endif
192
+ #endif
193
+ #if !defined(SWIFT_ENUM)
194
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
195
+ # if __has_feature(generalized_swift_name)
196
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
197
+ # else
198
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
199
+ # endif
200
+ #endif
201
+ #if !defined(SWIFT_UNAVAILABLE)
202
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
203
+ #endif
204
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
205
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
206
+ #endif
207
+ #if !defined(SWIFT_AVAILABILITY)
208
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
209
+ #endif
210
+ #if !defined(SWIFT_WEAK_IMPORT)
211
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
212
+ #endif
213
+ #if !defined(SWIFT_DEPRECATED)
214
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
215
+ #endif
216
+ #if !defined(SWIFT_DEPRECATED_MSG)
217
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
218
+ #endif
219
+ #if !defined(SWIFT_DEPRECATED_OBJC)
220
+ # if __has_feature(attribute_diagnose_if_objc)
221
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
222
+ # else
223
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
224
+ # endif
225
+ #endif
226
+ #if defined(__OBJC__)
227
+ #if !defined(IBSegueAction)
228
+ # define IBSegueAction
229
+ #endif
230
+ #endif
231
+ #if !defined(SWIFT_EXTERN)
232
+ # if defined(__cplusplus)
233
+ # define SWIFT_EXTERN extern "C"
234
+ # else
235
+ # define SWIFT_EXTERN extern
236
+ # endif
237
+ #endif
238
+ #if !defined(SWIFT_CALL)
239
+ # define SWIFT_CALL __attribute__((swiftcall))
240
+ #endif
241
+ #if !defined(SWIFT_INDIRECT_RESULT)
242
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
243
+ #endif
244
+ #if !defined(SWIFT_CONTEXT)
245
+ # define SWIFT_CONTEXT __attribute__((swift_context))
246
+ #endif
247
+ #if !defined(SWIFT_ERROR_RESULT)
248
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
249
+ #endif
250
+ #if defined(__cplusplus)
251
+ # define SWIFT_NOEXCEPT noexcept
252
+ #else
253
+ # define SWIFT_NOEXCEPT
254
+ #endif
255
+ #if !defined(SWIFT_C_INLINE_THUNK)
256
+ # if __has_attribute(always_inline)
257
+ # if __has_attribute(nodebug)
258
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
259
+ # else
260
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
261
+ # endif
262
+ # else
263
+ # define SWIFT_C_INLINE_THUNK inline
264
+ # endif
265
+ #endif
266
+ #if defined(_WIN32)
267
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
268
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
269
+ #endif
270
+ #else
271
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
272
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
273
+ #endif
274
+ #endif
275
+ #if defined(__OBJC__)
276
+ #if __has_feature(objc_modules)
277
+ #if __has_warning("-Watimport-in-framework-header")
278
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
279
+ #endif
280
+ @import Barkoder;
281
+ @import CoreFoundation;
282
+ @import CoreMedia;
283
+ @import Foundation;
284
+ @import ObjectiveC;
285
+ @import UIKit;
286
+ #endif
287
+
288
+ #endif
289
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
290
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
291
+ #if __has_warning("-Wpragma-clang-attribute")
292
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
293
+ #endif
294
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
295
+ #pragma clang diagnostic ignored "-Wnullability"
296
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
297
+
298
+ #if __has_attribute(external_source_symbol)
299
+ # pragma push_macro("any")
300
+ # undef any
301
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="BarkoderSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
302
+ # pragma pop_macro("any")
303
+ #endif
304
+
305
+ #if defined(__OBJC__)
306
+ @class UIColor;
307
+ @class Config;
308
+ enum BarkoderResolution : NSInteger;
309
+ @class NSString;
310
+ @class LicenseCheckResult;
311
+
312
+ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
313
+ @interface BarkoderConfig : NSObject
314
+ /// Region of interest line color as UIColor
315
+ @property (nonatomic, strong) UIColor * _Nonnull roiLineColor;
316
+ /// Region of interest line width as float
317
+ /// Default value is 2.0
318
+ @property (nonatomic) float roiLineWidth;
319
+ /// Region of interest background color as UIColor
320
+ @property (nonatomic, strong) UIColor * _Nonnull roiOverlayBackgroundColor;
321
+ /// Check if ROI is visible on the preview screen
322
+ /// Default value is true
323
+ @property (nonatomic) BOOL regionOfInterestVisible;
324
+ /// Location line color as UIColor
325
+ @property (nonatomic, strong) UIColor * _Nonnull locationLineColor;
326
+ /// Get the location line width as float
327
+ /// Default value is 2
328
+ @property (nonatomic) float locationLineWidth;
329
+ /// Check if the camera preview can be zoomed with pinch
330
+ /// Default value is false
331
+ @property (nonatomic) BOOL pinchToZoomEnabled;
332
+ /// Check if device will beep on successful scan
333
+ /// Default value is true
334
+ @property (nonatomic) BOOL beepOnSuccessEnabled;
335
+ /// Check if device will vibrate on successful scan
336
+ /// Default value is true
337
+ @property (nonatomic) BOOL vibrateOnSuccessEnabled;
338
+ /// Check if camera preview session will be closed when barcode is scanned
339
+ /// Default value is true
340
+ @property (nonatomic) BOOL closeSessionOnResultEnabled;
341
+ /// Check if the image result is enabled
342
+ /// Image result is received in BarkoderResultDelegate as UIImage
343
+ /// Default value is false
344
+ @property (nonatomic) BOOL imageResultEnabled;
345
+ /// Check if barcode location in the image result is enabled
346
+ /// If enabled, barcode in the result image will be marked
347
+ /// Default value is false
348
+ @property (nonatomic) BOOL locationInImageResultEnabled;
349
+ /// Check if barcode location in preview is enabled
350
+ /// Default value is true
351
+ @property (nonatomic) BOOL locationInPreviewEnabled;
352
+ /// Get the decoder config object. With this object you can enable/disable decoders (barcode types) or configure each one of them
353
+ @property (nonatomic, strong) Config * _Nullable decoderConfig;
354
+ /// Get the active resolution. It can be Normal(HD), or HIGH(Full HD)
355
+ /// Default value is BarkoderView.BarkoderResolution.normal
356
+ @property (nonatomic) enum BarkoderResolution barkoderResolution;
357
+ /// Getting barcode thumbnail on result
358
+ @property (nonatomic) BOOL barcodeThumbnailOnResult;
359
+ /// Getting threshold between duplicates scans
360
+ @property (nonatomic) NSInteger thresholdBetweenDuplicatesScans;
361
+ - (BOOL)setRegionOfInterest:(CGRect)value error:(NSError * _Nullable * _Nullable)error;
362
+ /// Get active region of interest
363
+ /// Default value is ‘CGRect(x: 3, y: 30, width: 94, height: 40)’
364
+ - (CGRect)getRegionOfInterest SWIFT_WARN_UNUSED_RESULT;
365
+ - (nonnull instancetype)initWithLicenseKey:(NSString * _Nonnull)licenseKey licenseCheckHandler:(void (^ _Nonnull)(LicenseCheckResult * _Nonnull))licenseCheckHandler;
366
+ /// Set maximum threads that will be used for the decoding process
367
+ /// <ul>
368
+ /// <li>
369
+ /// Throws Error if input param is greater than maximum threads available on that device
370
+ /// </li>
371
+ /// </ul>
372
+ /// \param value [1, max threads available]
373
+ ///
374
+ - (BOOL)setThreadsLimit:(NSInteger)value error:(NSError * _Nullable * _Nullable)error;
375
+ - (NSInteger)getThreadsLimit SWIFT_WARN_UNUSED_RESULT;
376
+ - (void)setMulticodeCachingEnabled:(BOOL)boolean;
377
+ - (BOOL)getMulticodeCachingEnabled SWIFT_WARN_UNUSED_RESULT;
378
+ - (void)setMulticodeCachingDuration:(NSInteger)value;
379
+ - (NSInteger)getMulticodeCachingDuration SWIFT_WARN_UNUSED_RESULT;
380
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
381
+ @end
382
+
383
+ @class UIImage;
384
+ @protocol BarkoderResultDelegate;
385
+ enum BarkoderConfigTemplate : NSInteger;
386
+ @class NSURL;
387
+ @class NSData;
388
+
389
+ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderHelper")
390
+ @interface BarkoderHelper : NSObject
391
+ /// Scan barcode from bitmap image
392
+ /// \param image Image that you want to be scanned as UIImage
393
+ ///
394
+ /// \param bkdConfig config that will be used for scanning process
395
+ ///
396
+ /// \param resultDelegate where you will receive scanned result
397
+ ///
398
+ + (void)scanImage:(UIImage * _Nonnull)image bkdConfig:(BarkoderConfig * _Nonnull)bkdConfig resultDelegate:(id <BarkoderResultDelegate> _Nonnull)resultDelegate;
399
+ /// Apply config params from predefined template
400
+ /// \param config that will be configured
401
+ ///
402
+ /// \param template that will be applied on config
403
+ ///
404
+ /// \param finished that will be executed when this function is finished
405
+ ///
406
+ + (void)applyConfigSettingsFromTemplate:(BarkoderConfig * _Nonnull)config template:(enum BarkoderConfigTemplate)template_ finished:(void (^ _Nonnull)(BarkoderConfig * _Nonnull))finished;
407
+ /// Retrieve config properties from the URL and apply them in the config that is send as input param
408
+ /// \param config that will be configured
409
+ ///
410
+ /// \param url URL to the JSON file
411
+ ///
412
+ /// \param finished callback that will be executed when this function is finished
413
+ ///
414
+ + (void)applyConfigSettingsFromURL:(BarkoderConfig * _Nonnull)config url:(NSURL * _Nonnull)url finished:(void (^ _Nonnull)(BarkoderConfig * _Nullable, NSError * _Nullable))finished;
415
+ /// Retrieve config properties from the URL and apply them in the config that is send as input param
416
+ /// \param config that will be configured
417
+ ///
418
+ /// \param url filePath to the JSON file
419
+ ///
420
+ /// \param finished callback that will be executed when this function is finished
421
+ ///
422
+ + (void)applyConfigSettingsFromFile:(BarkoderConfig * _Nonnull)config url:(NSString * _Nonnull)url finished:(void (^ _Nonnull)(BarkoderConfig * _Nullable, NSError * _Nullable))finished;
423
+ + (void)applyConfigSettingsFromJson:(BarkoderConfig * _Nonnull)config jsonData:(NSData * _Nonnull)jsonData finished:(void (^ _Nonnull)(BarkoderConfig * _Nullable, NSError * _Nullable))finished;
424
+ /// Export config that is send as input param to JSON string
425
+ /// \param barkoderConfig config that will be exported
426
+ ///
427
+ ///
428
+ /// returns:
429
+ /// JSON string
430
+ + (NSString * _Nullable)configToJSON:(BarkoderConfig * _Nonnull)barkoderConfig SWIFT_WARN_UNUSED_RESULT;
431
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
432
+ @end
433
+
434
+ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
435
+ BarkoderConfigTemplateAll = 0,
436
+ BarkoderConfigTemplatePdf_optimized = 1,
437
+ BarkoderConfigTemplateQr = 2,
438
+ BarkoderConfigTemplateRetail_1d = 3,
439
+ BarkoderConfigTemplateIndustrial_1d = 4,
440
+ BarkoderConfigTemplateAll_2d = 5,
441
+ BarkoderConfigTemplateDpm = 6,
442
+ BarkoderConfigTemplateVin = 7,
443
+ BarkoderConfigTemplateDotcode = 8,
444
+ BarkoderConfigTemplateAll_1d = 9,
445
+ };
446
+
447
+
448
+ SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
449
+ @protocol BarkoderPerformanceDelegate
450
+ @optional
451
+ - (void)performanceReceivedWithFps:(float)fps dps:(float)dps;
452
+ @end
453
+
454
+
455
+ SWIFT_PROTOCOL("_TtP11BarkoderSDK29BarkoderPreviewFramesDelegate_")
456
+ @protocol BarkoderPreviewFramesDelegate
457
+ @optional
458
+ - (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
459
+ @end
460
+
461
+ @class DecoderResult;
462
+
463
+ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
464
+ @protocol BarkoderResultDelegate
465
+ - (void)scanningFinished:(NSArray<DecoderResult *> * _Nonnull)decoderResults thumbnails:(NSArray<UIImage *> * _Nullable)thumbnails image:(UIImage * _Nullable)image;
466
+ @end
467
+
468
+ @class NSCoder;
469
+
470
+ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
471
+ @interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
472
+ @property (nonatomic, strong) BarkoderConfig * _Nullable config;
473
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
474
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
475
+ /// Start the camera preview only, without decoding
476
+ - (void)startCamera;
477
+ - (void)setPreviewFramesDelegate:(id <BarkoderPreviewFramesDelegate> _Nullable)delegate;
478
+ /// Set callback for getting fps and dps for checking performance
479
+ /// \param delegate Callback which return fps and dps as Float
480
+ ///
481
+ - (void)setBarkoderPerformanceDelegate:(id <BarkoderPerformanceDelegate> _Nullable)delegate;
482
+ /// Turn flash ON/OFF
483
+ /// If preview session is already active this state be set only for active session
484
+ /// otherwise the initial flash state is set. Every next preview session will be started with this state
485
+ /// \param enabled [true, false]. Default value is false
486
+ ///
487
+ - (BOOL)startScanning:(id <BarkoderResultDelegate> _Nonnull)resultDelegate error:(NSError * _Nullable * _Nullable)error;
488
+ /// Stop the scanning process and the camera preview
489
+ - (void)stopScanning;
490
+ /// Pause only the scanning process. Camera preview is still running
491
+ - (void)pauseScanning;
492
+ - (void)setZoomFactor:(float)zoomFactor;
493
+ /// Turn flash ON/OFF
494
+ /// If preview session is already active this state be set only for active session
495
+ /// otherwise the initial flash state is set. Every next preview session will be started with this state
496
+ /// \param enabled [true, false]. Default value is false
497
+ ///
498
+ - (void)setFlash:(BOOL)enabled;
499
+ - (void)getMaxZoomFactor:(void (^ _Nonnull)(float))completion;
500
+ - (void)isFlashAvailable:(void (^ _Nonnull)(BOOL))completion;
501
+ - (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
502
+ - (void)layoutSubviews;
503
+ @end
504
+
505
+ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
506
+ BarkoderResolutionNormal = 0,
507
+ BarkoderResolutionHigh = 1,
508
+ };
509
+
510
+
511
+
512
+
513
+ @interface iBarkoder (SWIFT_EXTENSION(BarkoderSDK))
514
+ + (NSString * _Nonnull)GetVersion SWIFT_WARN_UNUSED_RESULT;
515
+ @end
516
+
517
+ #endif
518
+ #if __has_attribute(external_source_symbol)
519
+ # pragma clang attribute pop
520
+ #endif
521
+ #if defined(__cplusplus)
522
+ #endif
523
+ #pragma clang diagnostic pop
524
+ #endif
525
+
526
+ #elif defined(__x86_64__) && __x86_64__
527
+ // Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
528
+ #ifndef BARKODERSDK_SWIFT_H
529
+ #define BARKODERSDK_SWIFT_H
530
+ #pragma clang diagnostic push
531
+ #pragma clang diagnostic ignored "-Wgcc-compat"
532
+
533
+ #if !defined(__has_include)
534
+ # define __has_include(x) 0
535
+ #endif
536
+ #if !defined(__has_attribute)
537
+ # define __has_attribute(x) 0
538
+ #endif
539
+ #if !defined(__has_feature)
540
+ # define __has_feature(x) 0
541
+ #endif
542
+ #if !defined(__has_warning)
543
+ # define __has_warning(x) 0
544
+ #endif
545
+
546
+ #if __has_include(<swift/objc-prologue.h>)
547
+ # include <swift/objc-prologue.h>
548
+ #endif
549
+
550
+ #pragma clang diagnostic ignored "-Wauto-import"
551
+ #if defined(__OBJC__)
552
+ #include <Foundation/Foundation.h>
553
+ #endif
554
+ #if defined(__cplusplus)
555
+ #include <cstdint>
556
+ #include <cstddef>
557
+ #include <cstdbool>
558
+ #include <cstring>
559
+ #include <stdlib.h>
560
+ #include <new>
561
+ #include <type_traits>
562
+ #else
563
+ #include <stdint.h>
564
+ #include <stddef.h>
565
+ #include <stdbool.h>
566
+ #include <string.h>
567
+ #endif
568
+ #if defined(__cplusplus)
569
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
570
+ # include <ptrauth.h>
571
+ #else
572
+ #pragma clang diagnostic push
573
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
574
+ # ifndef __ptrauth_swift_value_witness_function_pointer
575
+ # define __ptrauth_swift_value_witness_function_pointer(x)
576
+ # endif
577
+ # ifndef __ptrauth_swift_class_method_pointer
578
+ # define __ptrauth_swift_class_method_pointer(x)
579
+ # endif
580
+ #pragma clang diagnostic pop
581
+ #endif
582
+ #endif
583
+
584
+ #if !defined(SWIFT_TYPEDEFS)
585
+ # define SWIFT_TYPEDEFS 1
586
+ # if __has_include(<uchar.h>)
587
+ # include <uchar.h>
588
+ # elif !defined(__cplusplus)
589
+ typedef uint_least16_t char16_t;
590
+ typedef uint_least32_t char32_t;
591
+ # endif
592
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
593
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
594
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
595
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
596
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
597
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
598
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
599
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
600
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
601
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
602
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
603
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
604
+ #endif
605
+
606
+ #if !defined(SWIFT_PASTE)
607
+ # define SWIFT_PASTE_HELPER(x, y) x##y
608
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
609
+ #endif
610
+ #if !defined(SWIFT_METATYPE)
611
+ # define SWIFT_METATYPE(X) Class
612
+ #endif
613
+ #if !defined(SWIFT_CLASS_PROPERTY)
614
+ # if __has_feature(objc_class_property)
615
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
616
+ # else
617
+ # define SWIFT_CLASS_PROPERTY(...)
618
+ # endif
619
+ #endif
620
+ #if !defined(SWIFT_RUNTIME_NAME)
621
+ # if __has_attribute(objc_runtime_name)
622
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
623
+ # else
624
+ # define SWIFT_RUNTIME_NAME(X)
625
+ # endif
626
+ #endif
627
+ #if !defined(SWIFT_COMPILE_NAME)
628
+ # if __has_attribute(swift_name)
629
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
630
+ # else
631
+ # define SWIFT_COMPILE_NAME(X)
632
+ # endif
633
+ #endif
634
+ #if !defined(SWIFT_METHOD_FAMILY)
635
+ # if __has_attribute(objc_method_family)
636
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
637
+ # else
638
+ # define SWIFT_METHOD_FAMILY(X)
639
+ # endif
640
+ #endif
641
+ #if !defined(SWIFT_NOESCAPE)
642
+ # if __has_attribute(noescape)
643
+ # define SWIFT_NOESCAPE __attribute__((noescape))
644
+ # else
645
+ # define SWIFT_NOESCAPE
646
+ # endif
647
+ #endif
648
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
649
+ # if __has_attribute(ns_consumed)
650
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
651
+ # else
652
+ # define SWIFT_RELEASES_ARGUMENT
653
+ # endif
654
+ #endif
655
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
656
+ # if __has_attribute(warn_unused_result)
657
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
658
+ # else
659
+ # define SWIFT_WARN_UNUSED_RESULT
660
+ # endif
661
+ #endif
662
+ #if !defined(SWIFT_NORETURN)
663
+ # if __has_attribute(noreturn)
664
+ # define SWIFT_NORETURN __attribute__((noreturn))
665
+ # else
666
+ # define SWIFT_NORETURN
667
+ # endif
668
+ #endif
669
+ #if !defined(SWIFT_CLASS_EXTRA)
670
+ # define SWIFT_CLASS_EXTRA
671
+ #endif
672
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
673
+ # define SWIFT_PROTOCOL_EXTRA
674
+ #endif
675
+ #if !defined(SWIFT_ENUM_EXTRA)
676
+ # define SWIFT_ENUM_EXTRA
677
+ #endif
678
+ #if !defined(SWIFT_CLASS)
679
+ # if __has_attribute(objc_subclassing_restricted)
680
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
681
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
682
+ # else
683
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
684
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
685
+ # endif
686
+ #endif
687
+ #if !defined(SWIFT_RESILIENT_CLASS)
688
+ # if __has_attribute(objc_class_stub)
689
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
690
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
691
+ # else
692
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
693
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
694
+ # endif
695
+ #endif
696
+ #if !defined(SWIFT_PROTOCOL)
697
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
698
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
699
+ #endif
700
+ #if !defined(SWIFT_EXTENSION)
701
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
702
+ #endif
703
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
704
+ # if __has_attribute(objc_designated_initializer)
705
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
706
+ # else
707
+ # define OBJC_DESIGNATED_INITIALIZER
708
+ # endif
709
+ #endif
710
+ #if !defined(SWIFT_ENUM_ATTR)
711
+ # if __has_attribute(enum_extensibility)
712
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
713
+ # else
714
+ # define SWIFT_ENUM_ATTR(_extensibility)
715
+ # endif
716
+ #endif
717
+ #if !defined(SWIFT_ENUM)
718
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
719
+ # if __has_feature(generalized_swift_name)
720
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
721
+ # else
722
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
723
+ # endif
724
+ #endif
725
+ #if !defined(SWIFT_UNAVAILABLE)
726
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
727
+ #endif
728
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
729
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
730
+ #endif
731
+ #if !defined(SWIFT_AVAILABILITY)
732
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
733
+ #endif
734
+ #if !defined(SWIFT_WEAK_IMPORT)
735
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
736
+ #endif
737
+ #if !defined(SWIFT_DEPRECATED)
738
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
739
+ #endif
740
+ #if !defined(SWIFT_DEPRECATED_MSG)
741
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
742
+ #endif
743
+ #if !defined(SWIFT_DEPRECATED_OBJC)
744
+ # if __has_feature(attribute_diagnose_if_objc)
745
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
746
+ # else
747
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
748
+ # endif
749
+ #endif
750
+ #if defined(__OBJC__)
751
+ #if !defined(IBSegueAction)
752
+ # define IBSegueAction
753
+ #endif
754
+ #endif
755
+ #if !defined(SWIFT_EXTERN)
756
+ # if defined(__cplusplus)
757
+ # define SWIFT_EXTERN extern "C"
758
+ # else
759
+ # define SWIFT_EXTERN extern
760
+ # endif
761
+ #endif
762
+ #if !defined(SWIFT_CALL)
763
+ # define SWIFT_CALL __attribute__((swiftcall))
764
+ #endif
765
+ #if !defined(SWIFT_INDIRECT_RESULT)
766
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
767
+ #endif
768
+ #if !defined(SWIFT_CONTEXT)
769
+ # define SWIFT_CONTEXT __attribute__((swift_context))
770
+ #endif
771
+ #if !defined(SWIFT_ERROR_RESULT)
772
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
773
+ #endif
774
+ #if defined(__cplusplus)
775
+ # define SWIFT_NOEXCEPT noexcept
776
+ #else
777
+ # define SWIFT_NOEXCEPT
778
+ #endif
779
+ #if !defined(SWIFT_C_INLINE_THUNK)
780
+ # if __has_attribute(always_inline)
781
+ # if __has_attribute(nodebug)
782
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
783
+ # else
784
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
785
+ # endif
786
+ # else
787
+ # define SWIFT_C_INLINE_THUNK inline
788
+ # endif
789
+ #endif
790
+ #if defined(_WIN32)
791
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
792
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
793
+ #endif
794
+ #else
795
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
796
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
797
+ #endif
798
+ #endif
799
+ #if defined(__OBJC__)
800
+ #if __has_feature(objc_modules)
801
+ #if __has_warning("-Watimport-in-framework-header")
802
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
803
+ #endif
804
+ @import Barkoder;
805
+ @import CoreFoundation;
806
+ @import CoreMedia;
807
+ @import Foundation;
808
+ @import ObjectiveC;
809
+ @import UIKit;
810
+ #endif
811
+
812
+ #endif
813
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
814
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
815
+ #if __has_warning("-Wpragma-clang-attribute")
816
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
817
+ #endif
818
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
819
+ #pragma clang diagnostic ignored "-Wnullability"
820
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
821
+
822
+ #if __has_attribute(external_source_symbol)
823
+ # pragma push_macro("any")
824
+ # undef any
825
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="BarkoderSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
826
+ # pragma pop_macro("any")
827
+ #endif
828
+
829
+ #if defined(__OBJC__)
830
+ @class UIColor;
831
+ @class Config;
832
+ enum BarkoderResolution : NSInteger;
833
+ @class NSString;
834
+ @class LicenseCheckResult;
835
+
836
+ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
837
+ @interface BarkoderConfig : NSObject
838
+ /// Region of interest line color as UIColor
839
+ @property (nonatomic, strong) UIColor * _Nonnull roiLineColor;
840
+ /// Region of interest line width as float
841
+ /// Default value is 2.0
842
+ @property (nonatomic) float roiLineWidth;
843
+ /// Region of interest background color as UIColor
844
+ @property (nonatomic, strong) UIColor * _Nonnull roiOverlayBackgroundColor;
845
+ /// Check if ROI is visible on the preview screen
846
+ /// Default value is true
847
+ @property (nonatomic) BOOL regionOfInterestVisible;
848
+ /// Location line color as UIColor
849
+ @property (nonatomic, strong) UIColor * _Nonnull locationLineColor;
850
+ /// Get the location line width as float
851
+ /// Default value is 2
852
+ @property (nonatomic) float locationLineWidth;
853
+ /// Check if the camera preview can be zoomed with pinch
854
+ /// Default value is false
855
+ @property (nonatomic) BOOL pinchToZoomEnabled;
856
+ /// Check if device will beep on successful scan
857
+ /// Default value is true
858
+ @property (nonatomic) BOOL beepOnSuccessEnabled;
859
+ /// Check if device will vibrate on successful scan
860
+ /// Default value is true
861
+ @property (nonatomic) BOOL vibrateOnSuccessEnabled;
862
+ /// Check if camera preview session will be closed when barcode is scanned
863
+ /// Default value is true
864
+ @property (nonatomic) BOOL closeSessionOnResultEnabled;
865
+ /// Check if the image result is enabled
866
+ /// Image result is received in BarkoderResultDelegate as UIImage
867
+ /// Default value is false
868
+ @property (nonatomic) BOOL imageResultEnabled;
869
+ /// Check if barcode location in the image result is enabled
870
+ /// If enabled, barcode in the result image will be marked
871
+ /// Default value is false
872
+ @property (nonatomic) BOOL locationInImageResultEnabled;
873
+ /// Check if barcode location in preview is enabled
874
+ /// Default value is true
875
+ @property (nonatomic) BOOL locationInPreviewEnabled;
876
+ /// Get the decoder config object. With this object you can enable/disable decoders (barcode types) or configure each one of them
877
+ @property (nonatomic, strong) Config * _Nullable decoderConfig;
878
+ /// Get the active resolution. It can be Normal(HD), or HIGH(Full HD)
879
+ /// Default value is BarkoderView.BarkoderResolution.normal
880
+ @property (nonatomic) enum BarkoderResolution barkoderResolution;
881
+ /// Getting barcode thumbnail on result
882
+ @property (nonatomic) BOOL barcodeThumbnailOnResult;
883
+ /// Getting threshold between duplicates scans
884
+ @property (nonatomic) NSInteger thresholdBetweenDuplicatesScans;
885
+ - (BOOL)setRegionOfInterest:(CGRect)value error:(NSError * _Nullable * _Nullable)error;
886
+ /// Get active region of interest
887
+ /// Default value is ‘CGRect(x: 3, y: 30, width: 94, height: 40)’
888
+ - (CGRect)getRegionOfInterest SWIFT_WARN_UNUSED_RESULT;
889
+ - (nonnull instancetype)initWithLicenseKey:(NSString * _Nonnull)licenseKey licenseCheckHandler:(void (^ _Nonnull)(LicenseCheckResult * _Nonnull))licenseCheckHandler;
890
+ /// Set maximum threads that will be used for the decoding process
891
+ /// <ul>
892
+ /// <li>
893
+ /// Throws Error if input param is greater than maximum threads available on that device
894
+ /// </li>
895
+ /// </ul>
896
+ /// \param value [1, max threads available]
897
+ ///
898
+ - (BOOL)setThreadsLimit:(NSInteger)value error:(NSError * _Nullable * _Nullable)error;
899
+ - (NSInteger)getThreadsLimit SWIFT_WARN_UNUSED_RESULT;
900
+ - (void)setMulticodeCachingEnabled:(BOOL)boolean;
901
+ - (BOOL)getMulticodeCachingEnabled SWIFT_WARN_UNUSED_RESULT;
902
+ - (void)setMulticodeCachingDuration:(NSInteger)value;
903
+ - (NSInteger)getMulticodeCachingDuration SWIFT_WARN_UNUSED_RESULT;
904
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
905
+ @end
906
+
907
+ @class UIImage;
908
+ @protocol BarkoderResultDelegate;
909
+ enum BarkoderConfigTemplate : NSInteger;
910
+ @class NSURL;
911
+ @class NSData;
912
+
913
+ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderHelper")
914
+ @interface BarkoderHelper : NSObject
915
+ /// Scan barcode from bitmap image
916
+ /// \param image Image that you want to be scanned as UIImage
917
+ ///
918
+ /// \param bkdConfig config that will be used for scanning process
919
+ ///
920
+ /// \param resultDelegate where you will receive scanned result
921
+ ///
922
+ + (void)scanImage:(UIImage * _Nonnull)image bkdConfig:(BarkoderConfig * _Nonnull)bkdConfig resultDelegate:(id <BarkoderResultDelegate> _Nonnull)resultDelegate;
923
+ /// Apply config params from predefined template
924
+ /// \param config that will be configured
925
+ ///
926
+ /// \param template that will be applied on config
927
+ ///
928
+ /// \param finished that will be executed when this function is finished
929
+ ///
930
+ + (void)applyConfigSettingsFromTemplate:(BarkoderConfig * _Nonnull)config template:(enum BarkoderConfigTemplate)template_ finished:(void (^ _Nonnull)(BarkoderConfig * _Nonnull))finished;
931
+ /// Retrieve config properties from the URL and apply them in the config that is send as input param
932
+ /// \param config that will be configured
933
+ ///
934
+ /// \param url URL to the JSON file
935
+ ///
936
+ /// \param finished callback that will be executed when this function is finished
937
+ ///
938
+ + (void)applyConfigSettingsFromURL:(BarkoderConfig * _Nonnull)config url:(NSURL * _Nonnull)url finished:(void (^ _Nonnull)(BarkoderConfig * _Nullable, NSError * _Nullable))finished;
939
+ /// Retrieve config properties from the URL and apply them in the config that is send as input param
940
+ /// \param config that will be configured
941
+ ///
942
+ /// \param url filePath to the JSON file
943
+ ///
944
+ /// \param finished callback that will be executed when this function is finished
945
+ ///
946
+ + (void)applyConfigSettingsFromFile:(BarkoderConfig * _Nonnull)config url:(NSString * _Nonnull)url finished:(void (^ _Nonnull)(BarkoderConfig * _Nullable, NSError * _Nullable))finished;
947
+ + (void)applyConfigSettingsFromJson:(BarkoderConfig * _Nonnull)config jsonData:(NSData * _Nonnull)jsonData finished:(void (^ _Nonnull)(BarkoderConfig * _Nullable, NSError * _Nullable))finished;
948
+ /// Export config that is send as input param to JSON string
949
+ /// \param barkoderConfig config that will be exported
950
+ ///
951
+ ///
952
+ /// returns:
953
+ /// JSON string
954
+ + (NSString * _Nullable)configToJSON:(BarkoderConfig * _Nonnull)barkoderConfig SWIFT_WARN_UNUSED_RESULT;
955
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
956
+ @end
957
+
958
+ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
959
+ BarkoderConfigTemplateAll = 0,
960
+ BarkoderConfigTemplatePdf_optimized = 1,
961
+ BarkoderConfigTemplateQr = 2,
962
+ BarkoderConfigTemplateRetail_1d = 3,
963
+ BarkoderConfigTemplateIndustrial_1d = 4,
964
+ BarkoderConfigTemplateAll_2d = 5,
965
+ BarkoderConfigTemplateDpm = 6,
966
+ BarkoderConfigTemplateVin = 7,
967
+ BarkoderConfigTemplateDotcode = 8,
968
+ BarkoderConfigTemplateAll_1d = 9,
969
+ };
970
+
971
+
972
+ SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
973
+ @protocol BarkoderPerformanceDelegate
974
+ @optional
975
+ - (void)performanceReceivedWithFps:(float)fps dps:(float)dps;
976
+ @end
977
+
978
+
979
+ SWIFT_PROTOCOL("_TtP11BarkoderSDK29BarkoderPreviewFramesDelegate_")
980
+ @protocol BarkoderPreviewFramesDelegate
981
+ @optional
982
+ - (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
983
+ @end
984
+
985
+ @class DecoderResult;
986
+
987
+ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
988
+ @protocol BarkoderResultDelegate
989
+ - (void)scanningFinished:(NSArray<DecoderResult *> * _Nonnull)decoderResults thumbnails:(NSArray<UIImage *> * _Nullable)thumbnails image:(UIImage * _Nullable)image;
990
+ @end
991
+
992
+ @class NSCoder;
993
+
994
+ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
995
+ @interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
996
+ @property (nonatomic, strong) BarkoderConfig * _Nullable config;
997
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
998
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
999
+ /// Start the camera preview only, without decoding
1000
+ - (void)startCamera;
1001
+ - (void)setPreviewFramesDelegate:(id <BarkoderPreviewFramesDelegate> _Nullable)delegate;
1002
+ /// Set callback for getting fps and dps for checking performance
1003
+ /// \param delegate Callback which return fps and dps as Float
1004
+ ///
1005
+ - (void)setBarkoderPerformanceDelegate:(id <BarkoderPerformanceDelegate> _Nullable)delegate;
1006
+ /// Turn flash ON/OFF
1007
+ /// If preview session is already active this state be set only for active session
1008
+ /// otherwise the initial flash state is set. Every next preview session will be started with this state
1009
+ /// \param enabled [true, false]. Default value is false
1010
+ ///
1011
+ - (BOOL)startScanning:(id <BarkoderResultDelegate> _Nonnull)resultDelegate error:(NSError * _Nullable * _Nullable)error;
1012
+ /// Stop the scanning process and the camera preview
1013
+ - (void)stopScanning;
1014
+ /// Pause only the scanning process. Camera preview is still running
1015
+ - (void)pauseScanning;
1016
+ - (void)setZoomFactor:(float)zoomFactor;
1017
+ /// Turn flash ON/OFF
1018
+ /// If preview session is already active this state be set only for active session
1019
+ /// otherwise the initial flash state is set. Every next preview session will be started with this state
1020
+ /// \param enabled [true, false]. Default value is false
1021
+ ///
1022
+ - (void)setFlash:(BOOL)enabled;
1023
+ - (void)getMaxZoomFactor:(void (^ _Nonnull)(float))completion;
1024
+ - (void)isFlashAvailable:(void (^ _Nonnull)(BOOL))completion;
1025
+ - (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
1026
+ - (void)layoutSubviews;
1027
+ @end
1028
+
1029
+ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
1030
+ BarkoderResolutionNormal = 0,
1031
+ BarkoderResolutionHigh = 1,
1032
+ };
1033
+
1034
+
1035
+
1036
+
1037
+ @interface iBarkoder (SWIFT_EXTENSION(BarkoderSDK))
1038
+ + (NSString * _Nonnull)GetVersion SWIFT_WARN_UNUSED_RESULT;
1039
+ @end
1040
+
1041
+ #endif
1042
+ #if __has_attribute(external_source_symbol)
1043
+ # pragma clang attribute pop
1044
+ #endif
1045
+ #if defined(__cplusplus)
1046
+ #endif
1047
+ #pragma clang diagnostic pop
1048
+ #endif
1049
+
1050
+ #else
1051
+ #error unsupported Swift architecture
1052
+ #endif