barkoder-nativescript 1.2.9 → 1.3.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/barkoder-nativescript.android.ts +1092 -813
- package/barkoder-nativescript.ios.ts +1140 -818
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +1 -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/iBarkoder.h +1 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +2 -2
- package/platforms/ios/BarkoderSDK.xcframework/Info.plist +5 -5
- 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 +46 -28
- 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 +111 -44
- 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_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +92 -56
- 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 +111 -44
- 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/x86_64-apple-ios-simulator.abi.json +111 -44
- 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/_CodeSignature/CodeResources +22 -22
- package/README.md +0 -115
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -480,6 +480,7 @@ typedef enum {
|
|
|
480
480
|
//==========================================================================
|
|
481
481
|
@interface iBarkoder : NSObject
|
|
482
482
|
+(NSString *) GetLibVersion;
|
|
483
|
+
+(bool) IsStringVINCompliant: (NSString *) VINString checkLevel: (int) checkLevel;
|
|
483
484
|
+(bool) IsDecoderBusy;
|
|
484
485
|
+(NSArray<DecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height;
|
|
485
486
|
+(int) decodeImageAsync:(Config*)config image: (Image*) image callback:(void (^)(NSArray<DecoderResult*>*, Image*)) callback;
|
package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder
CHANGED
|
Binary file
|
|
@@ -480,6 +480,7 @@ typedef enum {
|
|
|
480
480
|
//==========================================================================
|
|
481
481
|
@interface iBarkoder : NSObject
|
|
482
482
|
+(NSString *) GetLibVersion;
|
|
483
|
+
+(bool) IsStringVINCompliant: (NSString *) VINString checkLevel: (int) checkLevel;
|
|
483
484
|
+(bool) IsDecoderBusy;
|
|
484
485
|
+(NSArray<DecoderResult*>*)decodeImageInMemory:(Config*)config imagePixels:(uint8_t*)pixels imageWidth:(int)width imageHeight:(int) height;
|
|
485
486
|
+(int) decodeImageAsync:(Config*)config image: (Image*) image callback:(void (^)(NSArray<DecoderResult*>*, Image*)) callback;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/iBarkoder.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
OLGM5weIsJ5xC4MpQ8aDsU3HIfQ=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Info.plist</key>
|
|
16
16
|
<data>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<dict>
|
|
39
39
|
<key>hash2</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
i1B3U4Hx7Ct0xUWzGgZrm2w6DInEbvHAWi9RaAySS7s=
|
|
42
42
|
</data>
|
|
43
43
|
</dict>
|
|
44
44
|
<key>Modules/module.modulemap</key>
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>BarkoderSDK.framework/BarkoderSDK</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>BarkoderSDK.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>BarkoderSDK.framework/BarkoderSDK</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>BarkoderSDK.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -311,55 +311,68 @@ enum BarkoderResolution : NSInteger;
|
|
|
311
311
|
|
|
312
312
|
SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
|
|
313
313
|
@interface BarkoderConfig : NSObject
|
|
314
|
-
/// Region of
|
|
314
|
+
/// Retrieves/Sets the color of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed
|
|
315
315
|
@property (nonatomic, strong) UIColor * _Nonnull roiLineColor;
|
|
316
|
-
/// Region of
|
|
316
|
+
/// Retrieves/Sets the width of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed
|
|
317
|
+
/// note:
|
|
317
318
|
/// Default value is 2.0
|
|
318
319
|
@property (nonatomic) float roiLineWidth;
|
|
319
|
-
/// Region of
|
|
320
|
+
/// Retrieves/Sets the background color of the overlay within the Region of Interest (ROI) for barcode scanning on the camera feed
|
|
320
321
|
@property (nonatomic, strong) UIColor * _Nonnull roiOverlayBackgroundColor;
|
|
321
|
-
///
|
|
322
|
+
/// Retrieves/Sets the visibility of the Region of Interest (ROI) on the camera preview
|
|
323
|
+
/// note:
|
|
322
324
|
/// Default value is true
|
|
323
325
|
@property (nonatomic) BOOL regionOfInterestVisible;
|
|
324
|
-
///
|
|
326
|
+
/// Retrieves/Sets the hexadecimal color code representing the line color used to indicate the location of detected barcodes
|
|
325
327
|
@property (nonatomic, strong) UIColor * _Nonnull locationLineColor;
|
|
326
|
-
///
|
|
328
|
+
/// Retrieves/Sets the width of the lines indicating the location of detected barcodes on the camera feed
|
|
329
|
+
/// note:
|
|
327
330
|
/// Default value is 2
|
|
328
331
|
@property (nonatomic) float locationLineWidth;
|
|
329
|
-
///
|
|
332
|
+
/// Enables or disables the pinch-to-zoom feature for adjusting the zoom level during barcode scanning
|
|
333
|
+
/// note:
|
|
330
334
|
/// Default value is false
|
|
331
335
|
@property (nonatomic) BOOL pinchToZoomEnabled;
|
|
332
|
-
///
|
|
336
|
+
/// Enables or disables the audible beep sound upon successfully decoding a barcode
|
|
337
|
+
/// note:
|
|
333
338
|
/// Default value is true
|
|
334
339
|
@property (nonatomic) BOOL beepOnSuccessEnabled;
|
|
335
|
-
///
|
|
340
|
+
/// Enables or disables the device vibration upon successfully decoding a barcode.
|
|
341
|
+
/// note:
|
|
336
342
|
/// Default value is true
|
|
337
343
|
@property (nonatomic) BOOL vibrateOnSuccessEnabled;
|
|
338
|
-
///
|
|
344
|
+
/// Enables or disables the automatic closing of the scanning session upon detecting a barcode result
|
|
345
|
+
/// note:
|
|
339
346
|
/// Default value is true
|
|
340
347
|
@property (nonatomic) BOOL closeSessionOnResultEnabled;
|
|
341
|
-
///
|
|
342
|
-
///
|
|
348
|
+
/// Enables or disables the capturing and processing of image data when a barcode is successfully detected
|
|
349
|
+
/// note:
|
|
343
350
|
/// Default value is false
|
|
344
351
|
@property (nonatomic) BOOL imageResultEnabled;
|
|
345
|
-
///
|
|
346
|
-
///
|
|
352
|
+
/// Enables or disables the inclusion of barcode location information within the image data result
|
|
353
|
+
/// note:
|
|
347
354
|
/// Default value is false
|
|
348
355
|
@property (nonatomic) BOOL locationInImageResultEnabled;
|
|
349
|
-
///
|
|
356
|
+
/// Enables or disables the display of barcode location information on the camera preview
|
|
357
|
+
/// note:
|
|
350
358
|
/// Default value is true
|
|
351
359
|
@property (nonatomic) BOOL locationInPreviewEnabled;
|
|
352
|
-
///
|
|
360
|
+
/// Configures the Barkoder functionality based on the provided configuration
|
|
353
361
|
@property (nonatomic, strong) Config * _Nullable decoderConfig;
|
|
354
|
-
///
|
|
362
|
+
/// Retrieve/Sets the resolution for barcode scanning
|
|
363
|
+
/// note:
|
|
355
364
|
/// Default value is BarkoderView.BarkoderResolution.normal
|
|
356
365
|
@property (nonatomic) enum BarkoderResolution barkoderResolution;
|
|
357
|
-
///
|
|
366
|
+
/// Retrieve/Sets whether to enable barcode thumbnail on result
|
|
367
|
+
/// note:
|
|
368
|
+
/// Default value is true
|
|
358
369
|
@property (nonatomic) BOOL barcodeThumbnailOnResult;
|
|
359
|
-
///
|
|
370
|
+
/// Retrieve/Sets the threshold between duplicate scans
|
|
360
371
|
@property (nonatomic) NSInteger thresholdBetweenDuplicatesScans;
|
|
372
|
+
/// Defines the Region of Interest (ROI) on the camera preview for barcode scanning, specifying an area where the application focuses on detecting barcodes
|
|
361
373
|
- (BOOL)setRegionOfInterest:(CGRect)value error:(NSError * _Nullable * _Nullable)error;
|
|
362
|
-
///
|
|
374
|
+
/// Retrieves the region of interest (ROI)
|
|
375
|
+
/// note:
|
|
363
376
|
/// Default value is ‘CGRect(x: 3, y: 30, width: 94, height: 40)’
|
|
364
377
|
- (CGRect)getRegionOfInterest SWIFT_WARN_UNUSED_RESULT;
|
|
365
378
|
- (nonnull instancetype)initWithLicenseKey:(NSString * _Nonnull)licenseKey licenseCheckHandler:(void (^ _Nonnull)(LicenseCheckResult * _Nonnull))licenseCheckHandler;
|
|
@@ -372,10 +385,15 @@ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
|
|
|
372
385
|
/// \param value [1, max threads available]
|
|
373
386
|
///
|
|
374
387
|
- (BOOL)setThreadsLimit:(NSInteger)value error:(NSError * _Nullable * _Nullable)error;
|
|
388
|
+
/// Get maximum threads that are used for the decoding process
|
|
375
389
|
- (NSInteger)getThreadsLimit SWIFT_WARN_UNUSED_RESULT;
|
|
390
|
+
/// Sets whether multi-code caching is enabled
|
|
376
391
|
- (void)setMulticodeCachingEnabled:(BOOL)boolean;
|
|
392
|
+
/// Retrieves whether multi-code caching is enabled
|
|
377
393
|
- (BOOL)getMulticodeCachingEnabled SWIFT_WARN_UNUSED_RESULT;
|
|
394
|
+
/// Sets the caching duration (in milliseconds) for multi-code results
|
|
378
395
|
- (void)setMulticodeCachingDuration:(NSInteger)value;
|
|
396
|
+
/// Retrieves the caching duration (in milliseconds) for multi-code results
|
|
379
397
|
- (NSInteger)getMulticodeCachingDuration SWIFT_WARN_UNUSED_RESULT;
|
|
380
398
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
381
399
|
@end
|
|
@@ -479,24 +497,23 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
479
497
|
/// \param delegate Callback which return fps and dps as Float
|
|
480
498
|
///
|
|
481
499
|
- (void)setBarkoderPerformanceDelegate:(id <BarkoderPerformanceDelegate> _Nullable)delegate;
|
|
482
|
-
///
|
|
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
|
|
500
|
+
/// Initiates the barcode scanning process, allowing the application to detect and decode barcodes from the device’s camera feed
|
|
485
501
|
/// \param enabled [true, false]. Default value is false
|
|
486
502
|
///
|
|
487
503
|
- (BOOL)startScanning:(id <BarkoderResultDelegate> _Nonnull)resultDelegate error:(NSError * _Nullable * _Nullable)error;
|
|
488
|
-
///
|
|
504
|
+
/// Halts the barcode scanning process, stopping the camera from capturing and processing barcode information
|
|
489
505
|
- (void)stopScanning;
|
|
490
|
-
///
|
|
506
|
+
/// Temporarily suspends the barcode scanning process, pausing the camera feed without completely stopping the scanning session
|
|
491
507
|
- (void)pauseScanning;
|
|
508
|
+
/// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
|
|
492
509
|
- (void)setZoomFactor:(float)zoomFactor;
|
|
493
|
-
///
|
|
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
|
|
510
|
+
/// Enables or disables the device’s flash (torch) for illumination during barcode scanning
|
|
496
511
|
/// \param enabled [true, false]. Default value is false
|
|
497
512
|
///
|
|
498
513
|
- (void)setFlash:(BOOL)enabled;
|
|
514
|
+
/// Retrieves the maximum available zoom factor for the device’s camera
|
|
499
515
|
- (void)getMaxZoomFactor:(void (^ _Nonnull)(float))completion;
|
|
516
|
+
/// Checks whether the device has a built-in flash (torch) that can be used for illumination during barcode scanning
|
|
500
517
|
- (void)isFlashAvailable:(void (^ _Nonnull)(BOOL))completion;
|
|
501
518
|
- (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
|
|
502
519
|
- (void)layoutSubviews;
|
|
@@ -511,6 +528,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
|
|
|
511
528
|
|
|
512
529
|
|
|
513
530
|
@interface iBarkoder (SWIFT_EXTENSION(BarkoderSDK))
|
|
531
|
+
/// Retrieves the version of the Barkoder library
|
|
514
532
|
+ (NSString * _Nonnull)GetVersion SWIFT_WARN_UNUSED_RESULT;
|
|
515
533
|
@end
|
|
516
534
|
|