barkoder-nativescript 1.3.0 → 1.5.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 +1098 -813
- package/barkoder-nativescript.common.ts +4 -1
- package/barkoder-nativescript.ios.ts +1146 -818
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- package/platforms/ios/Barkoder.xcframework/Info.plist +5 -5
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +103 -14
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +85 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +85 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrz.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/mrzfast.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +103 -14
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +137 -5
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +85 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +85 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/model.mil +753 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/weights/weight.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrz.traineddata +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/mrzfast.traineddata +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +49 -30
- 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 +1118 -377
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +3 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +203 -17
- 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 +98 -60
- 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 +1118 -377
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1118 -377
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +25 -85
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +203 -17
- package/typings/ios/objc!Barkoder.d.ts +11 -1
- package/README.md +0 -115
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|
|
@@ -442,6 +460,8 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
|
|
|
442
460
|
BarkoderConfigTemplateVin = 7,
|
|
443
461
|
BarkoderConfigTemplateDotcode = 8,
|
|
444
462
|
BarkoderConfigTemplateAll_1d = 9,
|
|
463
|
+
BarkoderConfigTemplateMrz = 10,
|
|
464
|
+
BarkoderConfigTemplateGallery_scan = 11,
|
|
445
465
|
};
|
|
446
466
|
|
|
447
467
|
|
|
@@ -479,24 +499,21 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
479
499
|
/// \param delegate Callback which return fps and dps as Float
|
|
480
500
|
///
|
|
481
501
|
- (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
|
|
485
|
-
/// \param enabled [true, false]. Default value is false
|
|
486
|
-
///
|
|
502
|
+
/// Initiates the barcode scanning process, allowing the application to detect and decode barcodes from the device’s camera feed
|
|
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;
|
|
@@ -510,7 +527,9 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
|
|
|
510
527
|
|
|
511
528
|
|
|
512
529
|
|
|
530
|
+
|
|
513
531
|
@interface iBarkoder (SWIFT_EXTENSION(BarkoderSDK))
|
|
532
|
+
/// Retrieves the version of the Barkoder library
|
|
514
533
|
+ (NSString * _Nonnull)GetVersion SWIFT_WARN_UNUSED_RESULT;
|
|
515
534
|
@end
|
|
516
535
|
|