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,44 @@
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>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>BarkoderSDK.framework/BarkoderSDK</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
+ <key>LibraryPath</key>
13
+ <string>BarkoderSDK.framework</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ <string>x86_64</string>
18
+ </array>
19
+ <key>SupportedPlatform</key>
20
+ <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
23
+ </dict>
24
+ <dict>
25
+ <key>BinaryPath</key>
26
+ <string>BarkoderSDK.framework/BarkoderSDK</string>
27
+ <key>LibraryIdentifier</key>
28
+ <string>ios-arm64</string>
29
+ <key>LibraryPath</key>
30
+ <string>BarkoderSDK.framework</string>
31
+ <key>SupportedArchitectures</key>
32
+ <array>
33
+ <string>arm64</string>
34
+ </array>
35
+ <key>SupportedPlatform</key>
36
+ <string>ios</string>
37
+ </dict>
38
+ </array>
39
+ <key>CFBundlePackageType</key>
40
+ <string>XFWK</string>
41
+ <key>XCFrameworkFormatVersion</key>
42
+ <string>1.0</string>
43
+ </dict>
44
+ </plist>
@@ -0,0 +1,528 @@
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
+ #else
527
+ #error unsupported Swift architecture
528
+ #endif
@@ -0,0 +1,17 @@
1
+ //
2
+ // BarkoderView.h
3
+ // BarkoderView
4
+ //
5
+ // Created on 26/12/21.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <Barkoder/iBarkoder.h>
10
+
11
+ //! Project version number for BarkoderSDK.
12
+ FOUNDATION_EXPORT double BarkoderSDKVersionNumber;
13
+
14
+ //! Project version string for BarkoderSDK.
15
+ FOUNDATION_EXPORT const unsigned char BarkoderSDKVersionString[];
16
+
17
+