barkoder-nativescript 1.6.5 → 1.6.7
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 +307 -3
- package/barkoder-nativescript.common.ts +6 -2
- package/barkoder-nativescript.ios.ts +304 -15
- 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 +25 -3
- 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/n2_384x256_int8.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_384x256_int8.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/metadata.json +18 -29
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/model.espresso.net +1960 -2558
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/model.espresso.shape +775 -950
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_384x256_int8.mlmodelc/model.espresso.weights +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc/metadata.json +77 -0
- package/platforms/ios/Barkoder.xcframework/{ios-arm64_x86_64-simulator/Barkoder.framework/int8_384x256_small2.mlmodelc → ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc}/model.espresso.net +1960 -2558
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc/model.espresso.shape +1740 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc/model.espresso.weights +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 +25 -3
- 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 +98 -65
- 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/n2_384x256_int8.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_384x256_int8.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/metadata.json +18 -29
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_384x256_int8.mlmodelc/model/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_384x256_int8.mlmodelc/model.espresso.net +5331 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/model.espresso.shape +775 -950
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_384x256_int8.mlmodelc/model.espresso.weights +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_384x256_int8.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/metadata.json +77 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/model/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/model.espresso.net +5331 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/model.espresso.shape +1740 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/model.espresso.weights +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/n2_512x384_int8.mlmodelc/neural_network_optionals/coremldata.bin +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 +105 -1
- 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 +1847 -646
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +49 -2
- 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 +49 -2
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +19 -16
- 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 +210 -2
- 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 +1847 -646
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +49 -2
- 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 +49 -2
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1847 -646
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +49 -2
- 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 +49 -2
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +25 -25
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +19 -16
- 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 +0 -88
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/model.mil +0 -753
- 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/int8_384x256_small2.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/int8_384x256_small2.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/int8_384x256_small2.mlmodelc/model.espresso.weights +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 +0 -88
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/model.mil +0 -753
- 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/int8_384x256_small2.mlmodelc/analytics/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/int8_384x256_small2.mlmodelc/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/int8_384x256_small2.mlmodelc/model.espresso.weights +0 -0
- /package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/model/coremldata.bin +0 -0
- /package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/{int8_384x256_small2.mlmodelc → n2_384x256_int8.mlmodelc}/neural_network_optionals/coremldata.bin +0 -0
- /package/platforms/ios/Barkoder.xcframework/{ios-arm64_x86_64-simulator/Barkoder.framework/int8_384x256_small2.mlmodelc → ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc}/model/coremldata.bin +0 -0
- /package/platforms/ios/Barkoder.xcframework/{ios-arm64_x86_64-simulator/Barkoder.framework/int8_384x256_small2.mlmodelc → ios-arm64/Barkoder.framework/n2_512x384_int8.mlmodelc}/neural_network_optionals/coremldata.bin +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.1
|
|
3
|
+
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
|
4
4
|
#ifndef BARKODERSDK_SWIFT_H
|
|
5
5
|
#define BARKODERSDK_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -364,6 +364,22 @@ SWIFT_CLASS("_TtC11BarkoderSDK16BarkoderARConfig")
|
|
|
364
364
|
/// note:
|
|
365
365
|
/// Default value is false
|
|
366
366
|
@property (nonatomic) BOOL barcodeThumbnailOnResult;
|
|
367
|
+
/// Maximum number of results allowed in a single AR scanning session.
|
|
368
|
+
/// Set to <code>0</code> for unlimited.
|
|
369
|
+
/// note:
|
|
370
|
+
/// Default value is <code>0</code>.
|
|
371
|
+
@property (nonatomic) NSInteger resultLimit;
|
|
372
|
+
/// Behavior when the result limit is reached.
|
|
373
|
+
/// Continues scanning only if <code>true</code> and mode is <code>.interactiveDisabled</code>; otherwise ends.
|
|
374
|
+
/// note:
|
|
375
|
+
/// Default value is <code>false</code>.
|
|
376
|
+
@property (nonatomic) BOOL continueScanningOnLimit;
|
|
377
|
+
/// Controls when results are emitted to the delegate.
|
|
378
|
+
/// If <code>true</code>, emit once at session end (or when the limit is reached);
|
|
379
|
+
/// if <code>false</code>, emit continuously as results are selected.
|
|
380
|
+
/// note:
|
|
381
|
+
/// Default value is <code>false</code>.
|
|
382
|
+
@property (nonatomic) BOOL emitResultsAtSessionEndOnly;
|
|
367
383
|
/// Height of the header above the barcode.
|
|
368
384
|
/// note:
|
|
369
385
|
/// Default value is 19.0
|
|
@@ -626,6 +642,18 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
|
|
|
626
642
|
BarkoderConfigTemplateAr = 14,
|
|
627
643
|
};
|
|
628
644
|
|
|
645
|
+
@interface BarkoderHelper (SWIFT_EXTENSION(BarkoderSDK))
|
|
646
|
+
/// Tries to build a UIImage from SADL “ImageRawBase64” / “Image Width” /
|
|
647
|
+
/// “Image Height” fields stored in the <code>formattedJSON</code> value inside
|
|
648
|
+
/// Barkoder’s <code>decoderResult.extra</code> dictionary.
|
|
649
|
+
/// \param extra The <code>decoderResult.extra</code> dictionary from Barkoder.
|
|
650
|
+
///
|
|
651
|
+
///
|
|
652
|
+
/// returns:
|
|
653
|
+
/// UIImage if everything parses and decodes correctly, otherwise <code>nil</code>.
|
|
654
|
+
+ (UIImage * _Nullable)sadlImageFromExtra:(NSDictionary * _Nullable)extra SWIFT_WARN_UNUSED_RESULT;
|
|
655
|
+
@end
|
|
656
|
+
|
|
629
657
|
SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
|
|
630
658
|
@protocol BarkoderPerformanceDelegate
|
|
631
659
|
@optional
|
|
@@ -645,6 +673,8 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
|
|
|
645
673
|
|
|
646
674
|
@class NSCoder;
|
|
647
675
|
enum BarkoderCameraPosition : NSInteger;
|
|
676
|
+
@class NSValue;
|
|
677
|
+
@class NSNumber;
|
|
648
678
|
SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
649
679
|
@interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
|
|
650
680
|
@property (nonatomic, strong) BarkoderConfig * _Nullable config;
|
|
@@ -697,6 +727,80 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
697
727
|
/// \param enabled [true, false]. Default value is false.
|
|
698
728
|
///
|
|
699
729
|
- (void)setVideoStabilization:(BOOL)enabled;
|
|
730
|
+
/// Captures the latest camera frame
|
|
731
|
+
- (void)captureImage;
|
|
732
|
+
/// Configures the Close button.
|
|
733
|
+
/// \param visible Shows the button while scanning.
|
|
734
|
+
///
|
|
735
|
+
/// \param position <code>NSValue</code>(CGPoint). Default: auto-placed in a top-left stack.
|
|
736
|
+
///
|
|
737
|
+
/// \param iconSize Glyph point size. Default: 25pt.
|
|
738
|
+
///
|
|
739
|
+
/// \param tintColor Icon tint. Default: white.
|
|
740
|
+
///
|
|
741
|
+
/// \param backgroundColor Button background. Default: clear.
|
|
742
|
+
///
|
|
743
|
+
/// \param cornerRadius Corner radius. Default: no extra rounding.
|
|
744
|
+
///
|
|
745
|
+
/// \param padding Inner padding around the glyph. Default: ~6pt.
|
|
746
|
+
///
|
|
747
|
+
/// \param useCustomIcon Default false. Set to true to use provided custom icons.
|
|
748
|
+
///
|
|
749
|
+
/// \param customIcon Custom icon.
|
|
750
|
+
///
|
|
751
|
+
/// \param onClose Custom action
|
|
752
|
+
///
|
|
753
|
+
- (void)configureCloseButtonWithVisible:(BOOL)visible position:(NSValue * _Nullable)position iconSize:(NSNumber * _Nullable)iconSize tintColor:(UIColor * _Nullable)tintColor backgroundColor:(UIColor * _Nullable)backgroundColor cornerRadius:(NSNumber * _Nullable)cornerRadius padding:(NSNumber * _Nullable)padding useCustomIcon:(NSNumber * _Nullable)useCustomIcon customIcon:(UIImage * _Nullable)customIcon onClose:(void (^ _Nullable)(void))onClose;
|
|
754
|
+
/// Configures the Flash (torch) button.
|
|
755
|
+
/// \param visible Shows the button while scanning. Auto-hides if torch unavailable.
|
|
756
|
+
///
|
|
757
|
+
/// \param position <code>NSValue</code>(CGPoint). Default: auto-placed in a top-left stack.
|
|
758
|
+
///
|
|
759
|
+
/// \param iconSize Glyph point size. Default: 25pt.
|
|
760
|
+
///
|
|
761
|
+
/// \param tintColor Icon tint. Default: white.
|
|
762
|
+
///
|
|
763
|
+
/// \param backgroundColor Button background. Default: clear.
|
|
764
|
+
///
|
|
765
|
+
/// \param cornerRadius Corner radius. Default: none.
|
|
766
|
+
///
|
|
767
|
+
/// \param padding Inner padding. Default: ~6pt.
|
|
768
|
+
///
|
|
769
|
+
/// \param useCustomIcon Default false. Set to true to use provided custom icons.
|
|
770
|
+
///
|
|
771
|
+
/// \param customIconFlashOn Custom icon for ON state.
|
|
772
|
+
///
|
|
773
|
+
/// \param customIconFlashOff Custom icon for OFF state.
|
|
774
|
+
///
|
|
775
|
+
- (void)configureFlashButtonWithVisible:(BOOL)visible position:(NSValue * _Nullable)position iconSize:(NSNumber * _Nullable)iconSize tintColor:(UIColor * _Nullable)tintColor backgroundColor:(UIColor * _Nullable)backgroundColor cornerRadius:(NSNumber * _Nullable)cornerRadius padding:(NSNumber * _Nullable)padding useCustomIcon:(NSNumber * _Nullable)useCustomIcon customIconFlashOn:(UIImage * _Nullable)customIconFlashOn customIconFlashOff:(UIImage * _Nullable)customIconFlashOff;
|
|
776
|
+
/// Configures the Zoom toggle button.
|
|
777
|
+
/// \param visible Shows the button while scanning.
|
|
778
|
+
///
|
|
779
|
+
/// \param position <code>NSValue</code>(CGPoint). Default: auto-placed in a top-left stack.
|
|
780
|
+
///
|
|
781
|
+
/// \param iconSize Glyph point size. Default: 25pt.
|
|
782
|
+
///
|
|
783
|
+
/// \param tintColor Icon tint. Default: white.
|
|
784
|
+
///
|
|
785
|
+
/// \param backgroundColor Button background. Default: clear.
|
|
786
|
+
///
|
|
787
|
+
/// \param cornerRadius Corner radius. Default: none.
|
|
788
|
+
///
|
|
789
|
+
/// \param padding Inner padding. Default: ~6pt.
|
|
790
|
+
///
|
|
791
|
+
/// \param useCustomIcon Default false. Set to true to use provided custom icons.
|
|
792
|
+
///
|
|
793
|
+
/// \param customIconZoomedIn Custom icon for zoomed-in state.
|
|
794
|
+
///
|
|
795
|
+
/// \param customIconZoomedOut Custom icon for zoomed-out state.
|
|
796
|
+
///
|
|
797
|
+
/// \param zoomedInFactor Zoom factor when toggled in.
|
|
798
|
+
///
|
|
799
|
+
/// \param zoomedOutFactor Zoom factor when toggled out.
|
|
800
|
+
///
|
|
801
|
+
- (void)configureZoomButtonWithVisible:(BOOL)visible position:(NSValue * _Nullable)position iconSize:(NSNumber * _Nullable)iconSize tintColor:(UIColor * _Nullable)tintColor backgroundColor:(UIColor * _Nullable)backgroundColor cornerRadius:(NSNumber * _Nullable)cornerRadius padding:(NSNumber * _Nullable)padding useCustomIcon:(NSNumber * _Nullable)useCustomIcon customIconZoomedIn:(UIImage * _Nullable)customIconZoomedIn customIconZoomedOut:(UIImage * _Nullable)customIconZoomedOut zoomedInFactor:(NSNumber * _Nullable)zoomedInFactor zoomedOutFactor:(NSNumber * _Nullable)zoomedOutFactor;
|
|
802
|
+
/// Selects all barcodes that are currently visible in AR mode.
|
|
803
|
+
- (void)selectVisibleBarcodes;
|
|
700
804
|
- (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
|
|
701
805
|
- (void)layoutSubviews;
|
|
702
806
|
@end
|
|
@@ -740,7 +844,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderCameraPosition, open) {
|
|
|
740
844
|
#endif
|
|
741
845
|
|
|
742
846
|
#elif defined(__x86_64__) && __x86_64__
|
|
743
|
-
// Generated by Apple Swift version 6.1
|
|
847
|
+
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
|
744
848
|
#ifndef BARKODERSDK_SWIFT_H
|
|
745
849
|
#define BARKODERSDK_SWIFT_H
|
|
746
850
|
#pragma clang diagnostic push
|
|
@@ -1104,6 +1208,22 @@ SWIFT_CLASS("_TtC11BarkoderSDK16BarkoderARConfig")
|
|
|
1104
1208
|
/// note:
|
|
1105
1209
|
/// Default value is false
|
|
1106
1210
|
@property (nonatomic) BOOL barcodeThumbnailOnResult;
|
|
1211
|
+
/// Maximum number of results allowed in a single AR scanning session.
|
|
1212
|
+
/// Set to <code>0</code> for unlimited.
|
|
1213
|
+
/// note:
|
|
1214
|
+
/// Default value is <code>0</code>.
|
|
1215
|
+
@property (nonatomic) NSInteger resultLimit;
|
|
1216
|
+
/// Behavior when the result limit is reached.
|
|
1217
|
+
/// Continues scanning only if <code>true</code> and mode is <code>.interactiveDisabled</code>; otherwise ends.
|
|
1218
|
+
/// note:
|
|
1219
|
+
/// Default value is <code>false</code>.
|
|
1220
|
+
@property (nonatomic) BOOL continueScanningOnLimit;
|
|
1221
|
+
/// Controls when results are emitted to the delegate.
|
|
1222
|
+
/// If <code>true</code>, emit once at session end (or when the limit is reached);
|
|
1223
|
+
/// if <code>false</code>, emit continuously as results are selected.
|
|
1224
|
+
/// note:
|
|
1225
|
+
/// Default value is <code>false</code>.
|
|
1226
|
+
@property (nonatomic) BOOL emitResultsAtSessionEndOnly;
|
|
1107
1227
|
/// Height of the header above the barcode.
|
|
1108
1228
|
/// note:
|
|
1109
1229
|
/// Default value is 19.0
|
|
@@ -1366,6 +1486,18 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
|
|
|
1366
1486
|
BarkoderConfigTemplateAr = 14,
|
|
1367
1487
|
};
|
|
1368
1488
|
|
|
1489
|
+
@interface BarkoderHelper (SWIFT_EXTENSION(BarkoderSDK))
|
|
1490
|
+
/// Tries to build a UIImage from SADL “ImageRawBase64” / “Image Width” /
|
|
1491
|
+
/// “Image Height” fields stored in the <code>formattedJSON</code> value inside
|
|
1492
|
+
/// Barkoder’s <code>decoderResult.extra</code> dictionary.
|
|
1493
|
+
/// \param extra The <code>decoderResult.extra</code> dictionary from Barkoder.
|
|
1494
|
+
///
|
|
1495
|
+
///
|
|
1496
|
+
/// returns:
|
|
1497
|
+
/// UIImage if everything parses and decodes correctly, otherwise <code>nil</code>.
|
|
1498
|
+
+ (UIImage * _Nullable)sadlImageFromExtra:(NSDictionary * _Nullable)extra SWIFT_WARN_UNUSED_RESULT;
|
|
1499
|
+
@end
|
|
1500
|
+
|
|
1369
1501
|
SWIFT_PROTOCOL("_TtP11BarkoderSDK27BarkoderPerformanceDelegate_")
|
|
1370
1502
|
@protocol BarkoderPerformanceDelegate
|
|
1371
1503
|
@optional
|
|
@@ -1385,6 +1517,8 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
|
|
|
1385
1517
|
|
|
1386
1518
|
@class NSCoder;
|
|
1387
1519
|
enum BarkoderCameraPosition : NSInteger;
|
|
1520
|
+
@class NSValue;
|
|
1521
|
+
@class NSNumber;
|
|
1388
1522
|
SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
1389
1523
|
@interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
|
|
1390
1524
|
@property (nonatomic, strong) BarkoderConfig * _Nullable config;
|
|
@@ -1437,6 +1571,80 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
1437
1571
|
/// \param enabled [true, false]. Default value is false.
|
|
1438
1572
|
///
|
|
1439
1573
|
- (void)setVideoStabilization:(BOOL)enabled;
|
|
1574
|
+
/// Captures the latest camera frame
|
|
1575
|
+
- (void)captureImage;
|
|
1576
|
+
/// Configures the Close button.
|
|
1577
|
+
/// \param visible Shows the button while scanning.
|
|
1578
|
+
///
|
|
1579
|
+
/// \param position <code>NSValue</code>(CGPoint). Default: auto-placed in a top-left stack.
|
|
1580
|
+
///
|
|
1581
|
+
/// \param iconSize Glyph point size. Default: 25pt.
|
|
1582
|
+
///
|
|
1583
|
+
/// \param tintColor Icon tint. Default: white.
|
|
1584
|
+
///
|
|
1585
|
+
/// \param backgroundColor Button background. Default: clear.
|
|
1586
|
+
///
|
|
1587
|
+
/// \param cornerRadius Corner radius. Default: no extra rounding.
|
|
1588
|
+
///
|
|
1589
|
+
/// \param padding Inner padding around the glyph. Default: ~6pt.
|
|
1590
|
+
///
|
|
1591
|
+
/// \param useCustomIcon Default false. Set to true to use provided custom icons.
|
|
1592
|
+
///
|
|
1593
|
+
/// \param customIcon Custom icon.
|
|
1594
|
+
///
|
|
1595
|
+
/// \param onClose Custom action
|
|
1596
|
+
///
|
|
1597
|
+
- (void)configureCloseButtonWithVisible:(BOOL)visible position:(NSValue * _Nullable)position iconSize:(NSNumber * _Nullable)iconSize tintColor:(UIColor * _Nullable)tintColor backgroundColor:(UIColor * _Nullable)backgroundColor cornerRadius:(NSNumber * _Nullable)cornerRadius padding:(NSNumber * _Nullable)padding useCustomIcon:(NSNumber * _Nullable)useCustomIcon customIcon:(UIImage * _Nullable)customIcon onClose:(void (^ _Nullable)(void))onClose;
|
|
1598
|
+
/// Configures the Flash (torch) button.
|
|
1599
|
+
/// \param visible Shows the button while scanning. Auto-hides if torch unavailable.
|
|
1600
|
+
///
|
|
1601
|
+
/// \param position <code>NSValue</code>(CGPoint). Default: auto-placed in a top-left stack.
|
|
1602
|
+
///
|
|
1603
|
+
/// \param iconSize Glyph point size. Default: 25pt.
|
|
1604
|
+
///
|
|
1605
|
+
/// \param tintColor Icon tint. Default: white.
|
|
1606
|
+
///
|
|
1607
|
+
/// \param backgroundColor Button background. Default: clear.
|
|
1608
|
+
///
|
|
1609
|
+
/// \param cornerRadius Corner radius. Default: none.
|
|
1610
|
+
///
|
|
1611
|
+
/// \param padding Inner padding. Default: ~6pt.
|
|
1612
|
+
///
|
|
1613
|
+
/// \param useCustomIcon Default false. Set to true to use provided custom icons.
|
|
1614
|
+
///
|
|
1615
|
+
/// \param customIconFlashOn Custom icon for ON state.
|
|
1616
|
+
///
|
|
1617
|
+
/// \param customIconFlashOff Custom icon for OFF state.
|
|
1618
|
+
///
|
|
1619
|
+
- (void)configureFlashButtonWithVisible:(BOOL)visible position:(NSValue * _Nullable)position iconSize:(NSNumber * _Nullable)iconSize tintColor:(UIColor * _Nullable)tintColor backgroundColor:(UIColor * _Nullable)backgroundColor cornerRadius:(NSNumber * _Nullable)cornerRadius padding:(NSNumber * _Nullable)padding useCustomIcon:(NSNumber * _Nullable)useCustomIcon customIconFlashOn:(UIImage * _Nullable)customIconFlashOn customIconFlashOff:(UIImage * _Nullable)customIconFlashOff;
|
|
1620
|
+
/// Configures the Zoom toggle button.
|
|
1621
|
+
/// \param visible Shows the button while scanning.
|
|
1622
|
+
///
|
|
1623
|
+
/// \param position <code>NSValue</code>(CGPoint). Default: auto-placed in a top-left stack.
|
|
1624
|
+
///
|
|
1625
|
+
/// \param iconSize Glyph point size. Default: 25pt.
|
|
1626
|
+
///
|
|
1627
|
+
/// \param tintColor Icon tint. Default: white.
|
|
1628
|
+
///
|
|
1629
|
+
/// \param backgroundColor Button background. Default: clear.
|
|
1630
|
+
///
|
|
1631
|
+
/// \param cornerRadius Corner radius. Default: none.
|
|
1632
|
+
///
|
|
1633
|
+
/// \param padding Inner padding. Default: ~6pt.
|
|
1634
|
+
///
|
|
1635
|
+
/// \param useCustomIcon Default false. Set to true to use provided custom icons.
|
|
1636
|
+
///
|
|
1637
|
+
/// \param customIconZoomedIn Custom icon for zoomed-in state.
|
|
1638
|
+
///
|
|
1639
|
+
/// \param customIconZoomedOut Custom icon for zoomed-out state.
|
|
1640
|
+
///
|
|
1641
|
+
/// \param zoomedInFactor Zoom factor when toggled in.
|
|
1642
|
+
///
|
|
1643
|
+
/// \param zoomedOutFactor Zoom factor when toggled out.
|
|
1644
|
+
///
|
|
1645
|
+
- (void)configureZoomButtonWithVisible:(BOOL)visible position:(NSValue * _Nullable)position iconSize:(NSNumber * _Nullable)iconSize tintColor:(UIColor * _Nullable)tintColor backgroundColor:(UIColor * _Nullable)backgroundColor cornerRadius:(NSNumber * _Nullable)cornerRadius padding:(NSNumber * _Nullable)padding useCustomIcon:(NSNumber * _Nullable)useCustomIcon customIconZoomedIn:(UIImage * _Nullable)customIconZoomedIn customIconZoomedOut:(UIImage * _Nullable)customIconZoomedOut zoomedInFactor:(NSNumber * _Nullable)zoomedInFactor zoomedOutFactor:(NSNumber * _Nullable)zoomedOutFactor;
|
|
1646
|
+
/// Selects all barcodes that are currently visible in AR mode.
|
|
1647
|
+
- (void)selectVisibleBarcodes;
|
|
1440
1648
|
- (void)cameraFrameReceivedWithSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer;
|
|
1441
1649
|
- (void)layoutSubviews;
|
|
1442
1650
|
@end
|