barkoder-nativescript 1.6.1 → 1.6.3
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 +58 -1
- package/barkoder-nativescript.common.ts +28 -1
- package/barkoder-nativescript.ios.ts +56 -0
- 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 +76 -3
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +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/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
- 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 +3 -3
- 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 +76 -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/Modules/module.modulemap +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +17 -13
- 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/coremldata.bin +0 -0
- package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
- 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 +3 -3
- 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 +14 -0
- 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 +454 -70
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +16 -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 +16 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.wav +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +98 -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 +28 -0
- 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 +454 -70
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +16 -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 +16 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +454 -70
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +16 -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 +16 -1
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +29 -29
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.wav +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/templates.json +98 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.mp3 +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/beep.mp3 +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
|
|
4
4
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
|
|
5
5
|
import AVFoundation
|
|
6
|
+
import AudioToolbox
|
|
6
7
|
import Barkoder
|
|
7
8
|
@_exported import BarkoderSDK
|
|
8
9
|
import CoreMedia
|
|
@@ -93,6 +94,15 @@ extension UIKit.UIImage {
|
|
|
93
94
|
get
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
@objc public enum BarkoderCameraPosition : Swift.Int {
|
|
98
|
+
case BACK
|
|
99
|
+
case FRONT
|
|
100
|
+
public init?(rawValue: Swift.Int)
|
|
101
|
+
public typealias RawValue = Swift.Int
|
|
102
|
+
public var rawValue: Swift.Int {
|
|
103
|
+
get
|
|
104
|
+
}
|
|
105
|
+
}
|
|
96
106
|
@objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
|
|
97
107
|
@objc get
|
|
98
108
|
@objc set
|
|
@@ -105,6 +115,7 @@ extension UIKit.UIImage {
|
|
|
105
115
|
@objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
|
|
106
116
|
@objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
|
|
107
117
|
@objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
|
|
118
|
+
@objc @_Concurrency.MainActor @preconcurrency public func setCamera(_ position: BarkoderSDK.BarkoderView.BarkoderCameraPosition)
|
|
108
119
|
@objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
|
|
109
120
|
@objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
|
|
110
121
|
@objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
|
|
@@ -143,6 +154,7 @@ extension CoreFoundation.CGRect {
|
|
|
143
154
|
case mrz
|
|
144
155
|
case gallery_scan
|
|
145
156
|
case composite
|
|
157
|
+
case postal_codes
|
|
146
158
|
public init?(rawValue: Swift.Int)
|
|
147
159
|
public typealias RawValue = Swift.Int
|
|
148
160
|
public var rawValue: Swift.Int {
|
|
@@ -160,6 +172,9 @@ extension CoreFoundation.CGRect {
|
|
|
160
172
|
extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Equatable {}
|
|
161
173
|
extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Hashable {}
|
|
162
174
|
extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.RawRepresentable {}
|
|
175
|
+
extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Equatable {}
|
|
176
|
+
extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Hashable {}
|
|
177
|
+
extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.RawRepresentable {}
|
|
163
178
|
extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Equatable {}
|
|
164
179
|
extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Hashable {}
|
|
165
180
|
extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
|
|
4
4
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
|
|
5
5
|
import AVFoundation
|
|
6
|
+
import AudioToolbox
|
|
6
7
|
import Barkoder
|
|
7
8
|
@_exported import BarkoderSDK
|
|
8
9
|
import CoreMedia
|
|
@@ -93,6 +94,15 @@ extension UIKit.UIImage {
|
|
|
93
94
|
get
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
@objc public enum BarkoderCameraPosition : Swift.Int {
|
|
98
|
+
case BACK
|
|
99
|
+
case FRONT
|
|
100
|
+
public init?(rawValue: Swift.Int)
|
|
101
|
+
public typealias RawValue = Swift.Int
|
|
102
|
+
public var rawValue: Swift.Int {
|
|
103
|
+
get
|
|
104
|
+
}
|
|
105
|
+
}
|
|
96
106
|
@objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
|
|
97
107
|
@objc get
|
|
98
108
|
@objc set
|
|
@@ -105,6 +115,7 @@ extension UIKit.UIImage {
|
|
|
105
115
|
@objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
|
|
106
116
|
@objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
|
|
107
117
|
@objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
|
|
118
|
+
@objc @_Concurrency.MainActor @preconcurrency public func setCamera(_ position: BarkoderSDK.BarkoderView.BarkoderCameraPosition)
|
|
108
119
|
@objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
|
|
109
120
|
@objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
|
|
110
121
|
@objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
|
|
@@ -143,6 +154,7 @@ extension CoreFoundation.CGRect {
|
|
|
143
154
|
case mrz
|
|
144
155
|
case gallery_scan
|
|
145
156
|
case composite
|
|
157
|
+
case postal_codes
|
|
146
158
|
public init?(rawValue: Swift.Int)
|
|
147
159
|
public typealias RawValue = Swift.Int
|
|
148
160
|
public var rawValue: Swift.Int {
|
|
@@ -160,6 +172,9 @@ extension CoreFoundation.CGRect {
|
|
|
160
172
|
extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Equatable {}
|
|
161
173
|
extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Hashable {}
|
|
162
174
|
extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.RawRepresentable {}
|
|
175
|
+
extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Equatable {}
|
|
176
|
+
extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Hashable {}
|
|
177
|
+
extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.RawRepresentable {}
|
|
163
178
|
extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Equatable {}
|
|
164
179
|
extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Hashable {}
|
|
165
180
|
extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.RawRepresentable {}
|
|
Binary file
|
package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json
CHANGED
|
@@ -120,6 +120,27 @@
|
|
|
120
120
|
"Databar Expanded": {
|
|
121
121
|
"enabled": true
|
|
122
122
|
},
|
|
123
|
+
"Postal IMB": {
|
|
124
|
+
"enabled": true
|
|
125
|
+
},
|
|
126
|
+
"Postnet": {
|
|
127
|
+
"enabled": false
|
|
128
|
+
},
|
|
129
|
+
"Planet": {
|
|
130
|
+
"enabled": false
|
|
131
|
+
},
|
|
132
|
+
"Australian Post": {
|
|
133
|
+
"enabled": false
|
|
134
|
+
},
|
|
135
|
+
"Royal Mail": {
|
|
136
|
+
"enabled": true
|
|
137
|
+
},
|
|
138
|
+
"KIX": {
|
|
139
|
+
"enabled": false
|
|
140
|
+
},
|
|
141
|
+
"Japanese Post": {
|
|
142
|
+
"enabled": false
|
|
143
|
+
},
|
|
123
144
|
"general": {
|
|
124
145
|
"maxThreads": 2,
|
|
125
146
|
"decodingSpeed": 1,
|
|
@@ -679,6 +700,27 @@
|
|
|
679
700
|
},
|
|
680
701
|
"Databar Expanded": {
|
|
681
702
|
"enabled": true
|
|
703
|
+
},
|
|
704
|
+
"Postal IMB": {
|
|
705
|
+
"enabled": true
|
|
706
|
+
},
|
|
707
|
+
"Postnet": {
|
|
708
|
+
"enabled": false
|
|
709
|
+
},
|
|
710
|
+
"Planet": {
|
|
711
|
+
"enabled": false
|
|
712
|
+
},
|
|
713
|
+
"Australian Post": {
|
|
714
|
+
"enabled": false
|
|
715
|
+
},
|
|
716
|
+
"Royal Mail": {
|
|
717
|
+
"enabled": true
|
|
718
|
+
},
|
|
719
|
+
"KIX": {
|
|
720
|
+
"enabled": false
|
|
721
|
+
},
|
|
722
|
+
"Japanese Post": {
|
|
723
|
+
"enabled": false
|
|
682
724
|
},
|
|
683
725
|
"general": {
|
|
684
726
|
"maxThreads": 2,
|
|
@@ -973,4 +1015,60 @@
|
|
|
973
1015
|
"beepOnSuccessEnabled": true,
|
|
974
1016
|
"vibrateOnSuccessEnabled": false
|
|
975
1017
|
},
|
|
1018
|
+
"postal_codes": {
|
|
1019
|
+
"decoder": {
|
|
1020
|
+
"Postal IMB": {
|
|
1021
|
+
"enabled": true
|
|
1022
|
+
},
|
|
1023
|
+
"Postnet": {
|
|
1024
|
+
"enabled": true
|
|
1025
|
+
},
|
|
1026
|
+
"Planet": {
|
|
1027
|
+
"enabled": true
|
|
1028
|
+
},
|
|
1029
|
+
"Australian Post": {
|
|
1030
|
+
"enabled": true
|
|
1031
|
+
},
|
|
1032
|
+
"Royal Mail": {
|
|
1033
|
+
"enabled": true
|
|
1034
|
+
},
|
|
1035
|
+
"KIX": {
|
|
1036
|
+
"enabled": true
|
|
1037
|
+
},
|
|
1038
|
+
"Japanese Post": {
|
|
1039
|
+
"enabled": true
|
|
1040
|
+
},
|
|
1041
|
+
"general": {
|
|
1042
|
+
"maxThreads": 2,
|
|
1043
|
+
"decodingSpeed": 2,
|
|
1044
|
+
"roi_x": 0,
|
|
1045
|
+
"roi_y": 0,
|
|
1046
|
+
"roi_w": 100,
|
|
1047
|
+
"roi_h": 100,
|
|
1048
|
+
"formattingType": 0,
|
|
1049
|
+
"duplicatesDelayMs": 0,
|
|
1050
|
+
"encodingCharacterSet": "",
|
|
1051
|
+
"multicodeCachingEnabled": true,
|
|
1052
|
+
"multicodeCachingDuration": 1000,
|
|
1053
|
+
"enableMisshaped1D": false,
|
|
1054
|
+
"upcEanDeblur": false,
|
|
1055
|
+
"enableVINRestrictions": false,
|
|
1056
|
+
"thresholdBetweenDuplicatesScans": 5
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"locationLineColor": -65536,
|
|
1060
|
+
"locationLineWidth": 2,
|
|
1061
|
+
"roiLineColor": -65536,
|
|
1062
|
+
"roiLineWidth": 3,
|
|
1063
|
+
"roiOverlayBackgroundColor": 1711276032,
|
|
1064
|
+
"closeSessionOnResultEnabled": true,
|
|
1065
|
+
"imageResultEnabled": false,
|
|
1066
|
+
"locationInImageResultEnabled": false,
|
|
1067
|
+
"locationInPreviewEnabled": true,
|
|
1068
|
+
"pinchToZoomEnabled": false,
|
|
1069
|
+
"regionOfInterestVisible": false,
|
|
1070
|
+
"barkoderResolution": 1,
|
|
1071
|
+
"beepOnSuccessEnabled": true,
|
|
1072
|
+
"vibrateOnSuccessEnabled": false
|
|
1073
|
+
},
|
|
976
1074
|
}
|
|
Binary file
|
|
@@ -487,6 +487,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
|
|
|
487
487
|
BarkoderConfigTemplateMrz = 10,
|
|
488
488
|
BarkoderConfigTemplateGallery_scan = 11,
|
|
489
489
|
BarkoderConfigTemplateComposite = 12,
|
|
490
|
+
BarkoderConfigTemplatePostal_codes = 13,
|
|
490
491
|
};
|
|
491
492
|
|
|
492
493
|
|
|
@@ -511,6 +512,7 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
|
|
|
511
512
|
@end
|
|
512
513
|
|
|
513
514
|
@class NSCoder;
|
|
515
|
+
enum BarkoderCameraPosition : NSInteger;
|
|
514
516
|
|
|
515
517
|
SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
516
518
|
@interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
|
|
@@ -532,6 +534,10 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
532
534
|
- (void)pauseScanning;
|
|
533
535
|
/// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
|
|
534
536
|
- (void)setZoomFactor:(float)zoomFactor;
|
|
537
|
+
/// Sets the camera to be used for scanning (back/front).
|
|
538
|
+
/// \param position The desired camera position. Default is back
|
|
539
|
+
///
|
|
540
|
+
- (void)setCamera:(enum BarkoderCameraPosition)position;
|
|
535
541
|
/// Enables or disables the device’s flash (torch) for illumination during barcode scanning
|
|
536
542
|
/// \param enabled [true, false]. Default value is false
|
|
537
543
|
///
|
|
@@ -566,6 +572,14 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
|
|
|
566
572
|
BarkoderResolutionUHD = 2,
|
|
567
573
|
};
|
|
568
574
|
|
|
575
|
+
/// Represents the available camera’s for the BarkoderView.
|
|
576
|
+
typedef SWIFT_ENUM(NSInteger, BarkoderCameraPosition, open) {
|
|
577
|
+
/// Uses the device’s back camera.
|
|
578
|
+
BarkoderCameraPositionBACK = 0,
|
|
579
|
+
/// Uses the device’s front (selfie) camera.
|
|
580
|
+
BarkoderCameraPositionFRONT = 1,
|
|
581
|
+
};
|
|
582
|
+
|
|
569
583
|
|
|
570
584
|
|
|
571
585
|
|
|
@@ -1072,6 +1086,7 @@ typedef SWIFT_ENUM(NSInteger, BarkoderConfigTemplate, open) {
|
|
|
1072
1086
|
BarkoderConfigTemplateMrz = 10,
|
|
1073
1087
|
BarkoderConfigTemplateGallery_scan = 11,
|
|
1074
1088
|
BarkoderConfigTemplateComposite = 12,
|
|
1089
|
+
BarkoderConfigTemplatePostal_codes = 13,
|
|
1075
1090
|
};
|
|
1076
1091
|
|
|
1077
1092
|
|
|
@@ -1096,6 +1111,7 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
|
|
|
1096
1111
|
@end
|
|
1097
1112
|
|
|
1098
1113
|
@class NSCoder;
|
|
1114
|
+
enum BarkoderCameraPosition : NSInteger;
|
|
1099
1115
|
|
|
1100
1116
|
SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
1101
1117
|
@interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
|
|
@@ -1117,6 +1133,10 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
|
|
|
1117
1133
|
- (void)pauseScanning;
|
|
1118
1134
|
/// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
|
|
1119
1135
|
- (void)setZoomFactor:(float)zoomFactor;
|
|
1136
|
+
/// Sets the camera to be used for scanning (back/front).
|
|
1137
|
+
/// \param position The desired camera position. Default is back
|
|
1138
|
+
///
|
|
1139
|
+
- (void)setCamera:(enum BarkoderCameraPosition)position;
|
|
1120
1140
|
/// Enables or disables the device’s flash (torch) for illumination during barcode scanning
|
|
1121
1141
|
/// \param enabled [true, false]. Default value is false
|
|
1122
1142
|
///
|
|
@@ -1151,6 +1171,14 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
|
|
|
1151
1171
|
BarkoderResolutionUHD = 2,
|
|
1152
1172
|
};
|
|
1153
1173
|
|
|
1174
|
+
/// Represents the available camera’s for the BarkoderView.
|
|
1175
|
+
typedef SWIFT_ENUM(NSInteger, BarkoderCameraPosition, open) {
|
|
1176
|
+
/// Uses the device’s back camera.
|
|
1177
|
+
BarkoderCameraPositionBACK = 0,
|
|
1178
|
+
/// Uses the device’s front (selfie) camera.
|
|
1179
|
+
BarkoderCameraPositionFRONT = 1,
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1154
1182
|
|
|
1155
1183
|
|
|
1156
1184
|
|