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.
Files changed (24) hide show
  1. package/barkoder-nativescript.android.ts +1092 -813
  2. package/barkoder-nativescript.ios.ts +1140 -818
  3. package/package.json +1 -1
  4. package/platforms/android/barkoder.aar +0 -0
  5. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
  6. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Headers/iBarkoder.h +1 -0
  7. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
  8. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Headers/iBarkoder.h +1 -0
  9. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +2 -2
  10. package/platforms/ios/BarkoderSDK.xcframework/Info.plist +5 -5
  11. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
  12. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +46 -28
  13. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
  14. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +111 -44
  15. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  16. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
  17. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +92 -56
  18. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
  19. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +111 -44
  20. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  21. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +111 -44
  22. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  23. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +22 -22
  24. package/README.md +0 -115
@@ -311,55 +311,68 @@ enum BarkoderResolution : NSInteger;
311
311
 
312
312
  SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
313
313
  @interface BarkoderConfig : NSObject
314
- /// Region of interest line color as UIColor
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 interest line width as float
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 interest background color as UIColor
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
- /// Check if ROI is visible on the preview screen
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
- /// Location line color as UIColor
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
- /// Get the location line width as float
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
- /// Check if the camera preview can be zoomed with pinch
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
- /// Check if device will beep on successful scan
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
- /// Check if device will vibrate on successful scan
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
- /// Check if camera preview session will be closed when barcode is scanned
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
- /// Check if the image result is enabled
342
- /// Image result is received in BarkoderResultDelegate as UIImage
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
- /// Check if barcode location in the image result is enabled
346
- /// If enabled, barcode in the result image will be marked
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
- /// Check if barcode location in preview is enabled
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
- /// Get the decoder config object. With this object you can enable/disable decoders (barcode types) or configure each one of them
360
+ /// Configures the Barkoder functionality based on the provided configuration
353
361
  @property (nonatomic, strong) Config * _Nullable decoderConfig;
354
- /// Get the active resolution. It can be Normal(HD), or HIGH(Full HD)
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
- /// Getting barcode thumbnail on result
366
+ /// Retrieve/Sets whether to enable barcode thumbnail on result
367
+ /// note:
368
+ /// Default value is true
358
369
  @property (nonatomic) BOOL barcodeThumbnailOnResult;
359
- /// Getting threshold between duplicates scans
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
- /// Get active region of interest
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
- /// 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
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
- /// Stop the scanning process and the camera preview
504
+ /// Halts the barcode scanning process, stopping the camera from capturing and processing barcode information
489
505
  - (void)stopScanning;
490
- /// Pause only the scanning process. Camera preview is still running
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
- /// 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
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
 
@@ -835,55 +853,68 @@ enum BarkoderResolution : NSInteger;
835
853
 
836
854
  SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
837
855
  @interface BarkoderConfig : NSObject
838
- /// Region of interest line color as UIColor
856
+ /// Retrieves/Sets the color of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed
839
857
  @property (nonatomic, strong) UIColor * _Nonnull roiLineColor;
840
- /// Region of interest line width as float
858
+ /// Retrieves/Sets the width of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed
859
+ /// note:
841
860
  /// Default value is 2.0
842
861
  @property (nonatomic) float roiLineWidth;
843
- /// Region of interest background color as UIColor
862
+ /// Retrieves/Sets the background color of the overlay within the Region of Interest (ROI) for barcode scanning on the camera feed
844
863
  @property (nonatomic, strong) UIColor * _Nonnull roiOverlayBackgroundColor;
845
- /// Check if ROI is visible on the preview screen
864
+ /// Retrieves/Sets the visibility of the Region of Interest (ROI) on the camera preview
865
+ /// note:
846
866
  /// Default value is true
847
867
  @property (nonatomic) BOOL regionOfInterestVisible;
848
- /// Location line color as UIColor
868
+ /// Retrieves/Sets the hexadecimal color code representing the line color used to indicate the location of detected barcodes
849
869
  @property (nonatomic, strong) UIColor * _Nonnull locationLineColor;
850
- /// Get the location line width as float
870
+ /// Retrieves/Sets the width of the lines indicating the location of detected barcodes on the camera feed
871
+ /// note:
851
872
  /// Default value is 2
852
873
  @property (nonatomic) float locationLineWidth;
853
- /// Check if the camera preview can be zoomed with pinch
874
+ /// Enables or disables the pinch-to-zoom feature for adjusting the zoom level during barcode scanning
875
+ /// note:
854
876
  /// Default value is false
855
877
  @property (nonatomic) BOOL pinchToZoomEnabled;
856
- /// Check if device will beep on successful scan
878
+ /// Enables or disables the audible beep sound upon successfully decoding a barcode
879
+ /// note:
857
880
  /// Default value is true
858
881
  @property (nonatomic) BOOL beepOnSuccessEnabled;
859
- /// Check if device will vibrate on successful scan
882
+ /// Enables or disables the device vibration upon successfully decoding a barcode.
883
+ /// note:
860
884
  /// Default value is true
861
885
  @property (nonatomic) BOOL vibrateOnSuccessEnabled;
862
- /// Check if camera preview session will be closed when barcode is scanned
886
+ /// Enables or disables the automatic closing of the scanning session upon detecting a barcode result
887
+ /// note:
863
888
  /// Default value is true
864
889
  @property (nonatomic) BOOL closeSessionOnResultEnabled;
865
- /// Check if the image result is enabled
866
- /// Image result is received in BarkoderResultDelegate as UIImage
890
+ /// Enables or disables the capturing and processing of image data when a barcode is successfully detected
891
+ /// note:
867
892
  /// Default value is false
868
893
  @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
894
+ /// Enables or disables the inclusion of barcode location information within the image data result
895
+ /// note:
871
896
  /// Default value is false
872
897
  @property (nonatomic) BOOL locationInImageResultEnabled;
873
- /// Check if barcode location in preview is enabled
898
+ /// Enables or disables the display of barcode location information on the camera preview
899
+ /// note:
874
900
  /// Default value is true
875
901
  @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
902
+ /// Configures the Barkoder functionality based on the provided configuration
877
903
  @property (nonatomic, strong) Config * _Nullable decoderConfig;
878
- /// Get the active resolution. It can be Normal(HD), or HIGH(Full HD)
904
+ /// Retrieve/Sets the resolution for barcode scanning
905
+ /// note:
879
906
  /// Default value is BarkoderView.BarkoderResolution.normal
880
907
  @property (nonatomic) enum BarkoderResolution barkoderResolution;
881
- /// Getting barcode thumbnail on result
908
+ /// Retrieve/Sets whether to enable barcode thumbnail on result
909
+ /// note:
910
+ /// Default value is true
882
911
  @property (nonatomic) BOOL barcodeThumbnailOnResult;
883
- /// Getting threshold between duplicates scans
912
+ /// Retrieve/Sets the threshold between duplicate scans
884
913
  @property (nonatomic) NSInteger thresholdBetweenDuplicatesScans;
914
+ /// Defines the Region of Interest (ROI) on the camera preview for barcode scanning, specifying an area where the application focuses on detecting barcodes
885
915
  - (BOOL)setRegionOfInterest:(CGRect)value error:(NSError * _Nullable * _Nullable)error;
886
- /// Get active region of interest
916
+ /// Retrieves the region of interest (ROI)
917
+ /// note:
887
918
  /// Default value is ‘CGRect(x: 3, y: 30, width: 94, height: 40)’
888
919
  - (CGRect)getRegionOfInterest SWIFT_WARN_UNUSED_RESULT;
889
920
  - (nonnull instancetype)initWithLicenseKey:(NSString * _Nonnull)licenseKey licenseCheckHandler:(void (^ _Nonnull)(LicenseCheckResult * _Nonnull))licenseCheckHandler;
@@ -896,10 +927,15 @@ SWIFT_CLASS("_TtC11BarkoderSDK14BarkoderConfig")
896
927
  /// \param value [1, max threads available]
897
928
  ///
898
929
  - (BOOL)setThreadsLimit:(NSInteger)value error:(NSError * _Nullable * _Nullable)error;
930
+ /// Get maximum threads that are used for the decoding process
899
931
  - (NSInteger)getThreadsLimit SWIFT_WARN_UNUSED_RESULT;
932
+ /// Sets whether multi-code caching is enabled
900
933
  - (void)setMulticodeCachingEnabled:(BOOL)boolean;
934
+ /// Retrieves whether multi-code caching is enabled
901
935
  - (BOOL)getMulticodeCachingEnabled SWIFT_WARN_UNUSED_RESULT;
936
+ /// Sets the caching duration (in milliseconds) for multi-code results
902
937
  - (void)setMulticodeCachingDuration:(NSInteger)value;
938
+ /// Retrieves the caching duration (in milliseconds) for multi-code results
903
939
  - (NSInteger)getMulticodeCachingDuration SWIFT_WARN_UNUSED_RESULT;
904
940
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
905
941
  @end
@@ -1003,24 +1039,23 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
1003
1039
  /// \param delegate Callback which return fps and dps as Float
1004
1040
  ///
1005
1041
  - (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
1042
+ /// Initiates the barcode scanning process, allowing the application to detect and decode barcodes from the device’s camera feed
1009
1043
  /// \param enabled [true, false]. Default value is false
1010
1044
  ///
1011
1045
  - (BOOL)startScanning:(id <BarkoderResultDelegate> _Nonnull)resultDelegate error:(NSError * _Nullable * _Nullable)error;
1012
- /// Stop the scanning process and the camera preview
1046
+ /// Halts the barcode scanning process, stopping the camera from capturing and processing barcode information
1013
1047
  - (void)stopScanning;
1014
- /// Pause only the scanning process. Camera preview is still running
1048
+ /// Temporarily suspends the barcode scanning process, pausing the camera feed without completely stopping the scanning session
1015
1049
  - (void)pauseScanning;
1050
+ /// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
1016
1051
  - (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
1052
+ /// Enables or disables the device’s flash (torch) for illumination during barcode scanning
1020
1053
  /// \param enabled [true, false]. Default value is false
1021
1054
  ///
1022
1055
  - (void)setFlash:(BOOL)enabled;
1056
+ /// Retrieves the maximum available zoom factor for the device’s camera
1023
1057
  - (void)getMaxZoomFactor:(void (^ _Nonnull)(float))completion;
1058
+ /// Checks whether the device has a built-in flash (torch) that can be used for illumination during barcode scanning
1024
1059
  - (void)isFlashAvailable:(void (^ _Nonnull)(BOOL))completion;
1025
1060
  - (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
1026
1061
  - (void)layoutSubviews;
@@ -1035,6 +1070,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
1035
1070
 
1036
1071
 
1037
1072
  @interface iBarkoder (SWIFT_EXTENSION(BarkoderSDK))
1073
+ /// Retrieves the version of the Barkoder library
1038
1074
  + (NSString * _Nonnull)GetVersion SWIFT_WARN_UNUSED_RESULT;
1039
1075
  @end
1040
1076