barkoder-nativescript 1.6.1 → 1.6.2

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 (41) hide show
  1. package/barkoder-nativescript.android.ts +10 -1
  2. package/barkoder-nativescript.common.ts +5 -0
  3. package/barkoder-nativescript.ios.ts +8 -0
  4. package/package.json +1 -1
  5. package/platforms/android/barkoder.aar +0 -0
  6. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Barkoder +0 -0
  7. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Info.plist +0 -0
  8. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/Modules/module.modulemap +0 -0
  9. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/default.metallib +0 -0
  10. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/coremldata.bin +0 -0
  11. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +1 -1
  12. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
  13. package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +3 -3
  14. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Barkoder +0 -0
  15. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Info.plist +0 -0
  16. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/Modules/module.modulemap +0 -0
  17. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/_CodeSignature/CodeResources +13 -9
  18. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/default.metallib +0 -0
  19. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_384x256.mlmodelc/metadata.json +3 -3
  20. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/coremldata.bin +0 -0
  21. package/platforms/ios/Barkoder.xcframework/ios-arm64_x86_64-simulator/Barkoder.framework/float16_512x384.mlmodelc/metadata.json +2 -2
  22. package/platforms/ios/BarkoderSDK.xcframework/Info.plist +5 -5
  23. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/BarkoderSDK +0 -0
  24. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +13 -0
  25. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Info.plist +0 -0
  26. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.abi.json +277 -8
  27. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +14 -1
  28. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  29. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.swiftinterface +14 -1
  30. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/BarkoderSDK +0 -0
  31. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Headers/BarkoderSDK-Swift.h +26 -0
  32. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Info.plist +0 -0
  33. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +277 -8
  34. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +14 -1
  35. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  36. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +14 -1
  37. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +277 -8
  38. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +14 -1
  39. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  40. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +14 -1
  41. package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/_CodeSignature/CodeResources +23 -23
@@ -3107,6 +3107,231 @@
3107
3107
  }
3108
3108
  ]
3109
3109
  },
3110
+ {
3111
+ "kind": "TypeDecl",
3112
+ "name": "BarkoderCameraPosition",
3113
+ "printedName": "BarkoderCameraPosition",
3114
+ "children": [
3115
+ {
3116
+ "kind": "Var",
3117
+ "name": "BACK",
3118
+ "printedName": "BACK",
3119
+ "children": [
3120
+ {
3121
+ "kind": "TypeFunc",
3122
+ "name": "Function",
3123
+ "printedName": "(BarkoderSDK.BarkoderView.BarkoderCameraPosition.Type) -> BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3124
+ "children": [
3125
+ {
3126
+ "kind": "TypeNominal",
3127
+ "name": "BarkoderCameraPosition",
3128
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3129
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO"
3130
+ },
3131
+ {
3132
+ "kind": "TypeNominal",
3133
+ "name": "Metatype",
3134
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition.Type",
3135
+ "children": [
3136
+ {
3137
+ "kind": "TypeNominal",
3138
+ "name": "BarkoderCameraPosition",
3139
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3140
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO"
3141
+ }
3142
+ ]
3143
+ }
3144
+ ]
3145
+ }
3146
+ ],
3147
+ "declKind": "EnumElement",
3148
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO4BACKyA2EmF",
3149
+ "mangledName": "$s11BarkoderSDK0A4ViewC0A14CameraPositionO4BACKyA2EmF",
3150
+ "moduleName": "BarkoderSDK",
3151
+ "declAttributes": [
3152
+ "RawDocComment",
3153
+ "ObjC"
3154
+ ],
3155
+ "fixedbinaryorder": 0
3156
+ },
3157
+ {
3158
+ "kind": "Var",
3159
+ "name": "FRONT",
3160
+ "printedName": "FRONT",
3161
+ "children": [
3162
+ {
3163
+ "kind": "TypeFunc",
3164
+ "name": "Function",
3165
+ "printedName": "(BarkoderSDK.BarkoderView.BarkoderCameraPosition.Type) -> BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3166
+ "children": [
3167
+ {
3168
+ "kind": "TypeNominal",
3169
+ "name": "BarkoderCameraPosition",
3170
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3171
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO"
3172
+ },
3173
+ {
3174
+ "kind": "TypeNominal",
3175
+ "name": "Metatype",
3176
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition.Type",
3177
+ "children": [
3178
+ {
3179
+ "kind": "TypeNominal",
3180
+ "name": "BarkoderCameraPosition",
3181
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3182
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO"
3183
+ }
3184
+ ]
3185
+ }
3186
+ ]
3187
+ }
3188
+ ],
3189
+ "declKind": "EnumElement",
3190
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO5FRONTyA2EmF",
3191
+ "mangledName": "$s11BarkoderSDK0A4ViewC0A14CameraPositionO5FRONTyA2EmF",
3192
+ "moduleName": "BarkoderSDK",
3193
+ "declAttributes": [
3194
+ "RawDocComment",
3195
+ "ObjC"
3196
+ ],
3197
+ "fixedbinaryorder": 1
3198
+ },
3199
+ {
3200
+ "kind": "Constructor",
3201
+ "name": "init",
3202
+ "printedName": "init(rawValue:)",
3203
+ "children": [
3204
+ {
3205
+ "kind": "TypeNominal",
3206
+ "name": "Optional",
3207
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition?",
3208
+ "children": [
3209
+ {
3210
+ "kind": "TypeNominal",
3211
+ "name": "BarkoderCameraPosition",
3212
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3213
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO"
3214
+ }
3215
+ ],
3216
+ "usr": "s:Sq"
3217
+ },
3218
+ {
3219
+ "kind": "TypeNominal",
3220
+ "name": "Int",
3221
+ "printedName": "Swift.Int",
3222
+ "usr": "s:Si"
3223
+ }
3224
+ ],
3225
+ "declKind": "Constructor",
3226
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO8rawValueAESgSi_tcfc",
3227
+ "mangledName": "$s11BarkoderSDK0A4ViewC0A14CameraPositionO8rawValueAESgSi_tcfc",
3228
+ "moduleName": "BarkoderSDK",
3229
+ "implicit": true,
3230
+ "init_kind": "Designated"
3231
+ },
3232
+ {
3233
+ "kind": "Var",
3234
+ "name": "rawValue",
3235
+ "printedName": "rawValue",
3236
+ "children": [
3237
+ {
3238
+ "kind": "TypeNominal",
3239
+ "name": "Int",
3240
+ "printedName": "Swift.Int",
3241
+ "usr": "s:Si"
3242
+ }
3243
+ ],
3244
+ "declKind": "Var",
3245
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO8rawValueSivp",
3246
+ "mangledName": "$s11BarkoderSDK0A4ViewC0A14CameraPositionO8rawValueSivp",
3247
+ "moduleName": "BarkoderSDK",
3248
+ "implicit": true,
3249
+ "accessors": [
3250
+ {
3251
+ "kind": "Accessor",
3252
+ "name": "Get",
3253
+ "printedName": "Get()",
3254
+ "children": [
3255
+ {
3256
+ "kind": "TypeNominal",
3257
+ "name": "Int",
3258
+ "printedName": "Swift.Int",
3259
+ "usr": "s:Si"
3260
+ }
3261
+ ],
3262
+ "declKind": "Accessor",
3263
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO8rawValueSivg",
3264
+ "mangledName": "$s11BarkoderSDK0A4ViewC0A14CameraPositionO8rawValueSivg",
3265
+ "moduleName": "BarkoderSDK",
3266
+ "implicit": true,
3267
+ "accessorKind": "get"
3268
+ }
3269
+ ]
3270
+ }
3271
+ ],
3272
+ "declKind": "Enum",
3273
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO",
3274
+ "mangledName": "$s11BarkoderSDK0A4ViewC0A14CameraPositionO",
3275
+ "moduleName": "BarkoderSDK",
3276
+ "declAttributes": [
3277
+ "AccessControl",
3278
+ "ObjC",
3279
+ "RawDocComment"
3280
+ ],
3281
+ "enumRawTypeName": "Int",
3282
+ "conformances": [
3283
+ {
3284
+ "kind": "Conformance",
3285
+ "name": "Copyable",
3286
+ "printedName": "Copyable",
3287
+ "usr": "s:s8CopyableP",
3288
+ "mangledName": "$ss8CopyableP"
3289
+ },
3290
+ {
3291
+ "kind": "Conformance",
3292
+ "name": "Escapable",
3293
+ "printedName": "Escapable",
3294
+ "usr": "s:s9EscapableP",
3295
+ "mangledName": "$ss9EscapableP"
3296
+ },
3297
+ {
3298
+ "kind": "Conformance",
3299
+ "name": "Equatable",
3300
+ "printedName": "Equatable",
3301
+ "usr": "s:SQ",
3302
+ "mangledName": "$sSQ"
3303
+ },
3304
+ {
3305
+ "kind": "Conformance",
3306
+ "name": "Hashable",
3307
+ "printedName": "Hashable",
3308
+ "usr": "s:SH",
3309
+ "mangledName": "$sSH"
3310
+ },
3311
+ {
3312
+ "kind": "Conformance",
3313
+ "name": "RawRepresentable",
3314
+ "printedName": "RawRepresentable",
3315
+ "children": [
3316
+ {
3317
+ "kind": "TypeWitness",
3318
+ "name": "RawValue",
3319
+ "printedName": "RawValue",
3320
+ "children": [
3321
+ {
3322
+ "kind": "TypeNominal",
3323
+ "name": "Int",
3324
+ "printedName": "Swift.Int",
3325
+ "usr": "s:Si"
3326
+ }
3327
+ ]
3328
+ }
3329
+ ],
3330
+ "usr": "s:SY",
3331
+ "mangledName": "$sSY"
3332
+ }
3333
+ ]
3334
+ },
3110
3335
  {
3111
3336
  "kind": "Var",
3112
3337
  "name": "config",
@@ -3470,6 +3695,36 @@
3470
3695
  ],
3471
3696
  "funcSelfKind": "NonMutating"
3472
3697
  },
3698
+ {
3699
+ "kind": "Function",
3700
+ "name": "setCamera",
3701
+ "printedName": "setCamera(_:)",
3702
+ "children": [
3703
+ {
3704
+ "kind": "TypeNominal",
3705
+ "name": "Void",
3706
+ "printedName": "()"
3707
+ },
3708
+ {
3709
+ "kind": "TypeNominal",
3710
+ "name": "BarkoderCameraPosition",
3711
+ "printedName": "BarkoderSDK.BarkoderView.BarkoderCameraPosition",
3712
+ "usr": "s:11BarkoderSDK0A4ViewC0A14CameraPositionO"
3713
+ }
3714
+ ],
3715
+ "declKind": "Func",
3716
+ "usr": "c:@M@BarkoderSDK@objc(cs)BarkoderView(im)setCamera:",
3717
+ "mangledName": "$s11BarkoderSDK0A4ViewC9setCamerayyAC0aE8PositionOF",
3718
+ "moduleName": "BarkoderSDK",
3719
+ "declAttributes": [
3720
+ "Preconcurrency",
3721
+ "Custom",
3722
+ "AccessControl",
3723
+ "ObjC",
3724
+ "RawDocComment"
3725
+ ],
3726
+ "funcSelfKind": "NonMutating"
3727
+ },
3473
3728
  {
3474
3729
  "kind": "Function",
3475
3730
  "name": "setFlash",
@@ -6674,38 +6929,45 @@
6674
6929
  "length": 5,
6675
6930
  "value": "false"
6676
6931
  },
6932
+ {
6933
+ "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderCameraManager.swift",
6934
+ "kind": "BooleanLiteral",
6935
+ "offset": 981,
6936
+ "length": 5,
6937
+ "value": "false"
6938
+ },
6677
6939
  {
6678
6940
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderCameraManager.swift",
6679
6941
  "kind": "FloatLiteral",
6680
- "offset": 990,
6942
+ "offset": 1027,
6681
6943
  "length": 3,
6682
6944
  "value": "1.0"
6683
6945
  },
6684
6946
  {
6685
6947
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderCameraManager.swift",
6686
6948
  "kind": "FloatLiteral",
6687
- "offset": 1026,
6949
+ "offset": 1063,
6688
6950
  "length": 3,
6689
6951
  "value": "1.0"
6690
6952
  },
6691
6953
  {
6692
6954
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderCameraManager.swift",
6693
6955
  "kind": "IntegerLiteral",
6694
- "offset": 1082,
6956
+ "offset": 1119,
6695
6957
  "length": 1,
6696
6958
  "value": "0"
6697
6959
  },
6698
6960
  {
6699
6961
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderCameraManager.swift",
6700
6962
  "kind": "BooleanLiteral",
6701
- "offset": 1131,
6963
+ "offset": 1168,
6702
6964
  "length": 5,
6703
6965
  "value": "false"
6704
6966
  },
6705
6967
  {
6706
6968
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderCameraManager.swift",
6707
6969
  "kind": "BooleanLiteral",
6708
- "offset": 1186,
6970
+ "offset": 1223,
6709
6971
  "length": 5,
6710
6972
  "value": "false"
6711
6973
  },
@@ -6723,24 +6985,31 @@
6723
6985
  "length": 3,
6724
6986
  "value": "2"
6725
6987
  },
6988
+ {
6989
+ "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderView.swift",
6990
+ "kind": "IntegerLiteral",
6991
+ "offset": 881,
6992
+ "length": 5,
6993
+ "value": "1"
6994
+ },
6726
6995
  {
6727
6996
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderView.swift",
6728
6997
  "kind": "Array",
6729
- "offset": 2124,
6998
+ "offset": 2393,
6730
6999
  "length": 2,
6731
7000
  "value": "[]"
6732
7001
  },
6733
7002
  {
6734
7003
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderView.swift",
6735
7004
  "kind": "IntegerLiteral",
6736
- "offset": 2190,
7005
+ "offset": 2459,
6737
7006
  "length": 1,
6738
7007
  "value": "0"
6739
7008
  },
6740
7009
  {
6741
7010
  "filePath": "\/Users\/goranchakarevski\/Desktop\/Barkoder\/barkoder-ios\/BarkoderSDK\/BarkoderSDK\/BarkoderView\/BarkoderView.swift",
6742
7011
  "kind": "BooleanLiteral",
6743
- "offset": 2230,
7012
+ "offset": 2499,
6744
7013
  "length": 5,
6745
7014
  "value": "false"
6746
7015
  },
@@ -1,6 +1,6 @@
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-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
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
6
  import Barkoder
@@ -93,6 +93,15 @@ extension UIKit.UIImage {
93
93
  get
94
94
  }
95
95
  }
96
+ @objc public enum BarkoderCameraPosition : Swift.Int {
97
+ case BACK
98
+ case FRONT
99
+ public init?(rawValue: Swift.Int)
100
+ public typealias RawValue = Swift.Int
101
+ public var rawValue: Swift.Int {
102
+ get
103
+ }
104
+ }
96
105
  @objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
97
106
  @objc get
98
107
  @objc set
@@ -105,6 +114,7 @@ extension UIKit.UIImage {
105
114
  @objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
106
115
  @objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
107
116
  @objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
117
+ @objc @_Concurrency.MainActor @preconcurrency public func setCamera(_ position: BarkoderSDK.BarkoderView.BarkoderCameraPosition)
108
118
  @objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
109
119
  @objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
110
120
  @objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
@@ -160,6 +170,9 @@ extension CoreFoundation.CGRect {
160
170
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Equatable {}
161
171
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Hashable {}
162
172
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.RawRepresentable {}
173
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Equatable {}
174
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Hashable {}
175
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.RawRepresentable {}
163
176
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Equatable {}
164
177
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Hashable {}
165
178
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.RawRepresentable {}
@@ -1,6 +1,6 @@
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-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name BarkoderSDK
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
6
  import Barkoder
@@ -93,6 +93,15 @@ extension UIKit.UIImage {
93
93
  get
94
94
  }
95
95
  }
96
+ @objc public enum BarkoderCameraPosition : Swift.Int {
97
+ case BACK
98
+ case FRONT
99
+ public init?(rawValue: Swift.Int)
100
+ public typealias RawValue = Swift.Int
101
+ public var rawValue: Swift.Int {
102
+ get
103
+ }
104
+ }
96
105
  @objc @_Concurrency.MainActor @preconcurrency public var config: BarkoderSDK.BarkoderConfig? {
97
106
  @objc get
98
107
  @objc set
@@ -105,6 +114,7 @@ extension UIKit.UIImage {
105
114
  @objc @_Concurrency.MainActor @preconcurrency public func stopScanning()
106
115
  @objc @_Concurrency.MainActor @preconcurrency public func pauseScanning()
107
116
  @objc @_Concurrency.MainActor @preconcurrency public func setZoomFactor(_ zoomFactor: Swift.Float)
117
+ @objc @_Concurrency.MainActor @preconcurrency public func setCamera(_ position: BarkoderSDK.BarkoderView.BarkoderCameraPosition)
108
118
  @objc @_Concurrency.MainActor @preconcurrency public func setFlash(_ enabled: Swift.Bool)
109
119
  @objc @_Concurrency.MainActor @preconcurrency public func getMaxZoomFactor(_ completion: @escaping (_ maxZoomFactor: Swift.Float) -> Swift.Void)
110
120
  @objc @_Concurrency.MainActor @preconcurrency public func isFlashAvailable(_ completion: @escaping (_ flashAvailable: Swift.Bool) -> Swift.Void)
@@ -160,6 +170,9 @@ extension CoreFoundation.CGRect {
160
170
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Equatable {}
161
171
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.Hashable {}
162
172
  extension BarkoderSDK.BarkoderView.BarkoderResolution : Swift.RawRepresentable {}
173
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Equatable {}
174
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.Hashable {}
175
+ extension BarkoderSDK.BarkoderView.BarkoderCameraPosition : Swift.RawRepresentable {}
163
176
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Equatable {}
164
177
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.Hashable {}
165
178
  extension BarkoderSDK.BarkoderHelper.BarkoderConfigTemplate : Swift.RawRepresentable {}
@@ -511,6 +511,7 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
511
511
  @end
512
512
 
513
513
  @class NSCoder;
514
+ enum BarkoderCameraPosition : NSInteger;
514
515
 
515
516
  SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
516
517
  @interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
@@ -532,6 +533,10 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
532
533
  - (void)pauseScanning;
533
534
  /// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
534
535
  - (void)setZoomFactor:(float)zoomFactor;
536
+ /// Sets the camera to be used for scanning (back/front).
537
+ /// \param position The desired camera position. Default is back
538
+ ///
539
+ - (void)setCamera:(enum BarkoderCameraPosition)position;
535
540
  /// Enables or disables the device’s flash (torch) for illumination during barcode scanning
536
541
  /// \param enabled [true, false]. Default value is false
537
542
  ///
@@ -566,6 +571,14 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
566
571
  BarkoderResolutionUHD = 2,
567
572
  };
568
573
 
574
+ /// Represents the available camera’s for the BarkoderView.
575
+ typedef SWIFT_ENUM(NSInteger, BarkoderCameraPosition, open) {
576
+ /// Uses the device’s back camera.
577
+ BarkoderCameraPositionBACK = 0,
578
+ /// Uses the device’s front (selfie) camera.
579
+ BarkoderCameraPositionFRONT = 1,
580
+ };
581
+
569
582
 
570
583
 
571
584
 
@@ -1096,6 +1109,7 @@ SWIFT_PROTOCOL("_TtP11BarkoderSDK22BarkoderResultDelegate_")
1096
1109
  @end
1097
1110
 
1098
1111
  @class NSCoder;
1112
+ enum BarkoderCameraPosition : NSInteger;
1099
1113
 
1100
1114
  SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
1101
1115
  @interface BarkoderView : UIView <BarkoderPreviewFramesDelegate>
@@ -1117,6 +1131,10 @@ SWIFT_CLASS("_TtC11BarkoderSDK12BarkoderView")
1117
1131
  - (void)pauseScanning;
1118
1132
  /// Sets the zoom factor for the device’s camera, adjusting the level of zoom during barcode scanning
1119
1133
  - (void)setZoomFactor:(float)zoomFactor;
1134
+ /// Sets the camera to be used for scanning (back/front).
1135
+ /// \param position The desired camera position. Default is back
1136
+ ///
1137
+ - (void)setCamera:(enum BarkoderCameraPosition)position;
1120
1138
  /// Enables or disables the device’s flash (torch) for illumination during barcode scanning
1121
1139
  /// \param enabled [true, false]. Default value is false
1122
1140
  ///
@@ -1151,6 +1169,14 @@ typedef SWIFT_ENUM(NSInteger, BarkoderResolution, open) {
1151
1169
  BarkoderResolutionUHD = 2,
1152
1170
  };
1153
1171
 
1172
+ /// Represents the available camera’s for the BarkoderView.
1173
+ typedef SWIFT_ENUM(NSInteger, BarkoderCameraPosition, open) {
1174
+ /// Uses the device’s back camera.
1175
+ BarkoderCameraPositionBACK = 0,
1176
+ /// Uses the device’s front (selfie) camera.
1177
+ BarkoderCameraPositionFRONT = 1,
1178
+ };
1179
+
1154
1180
 
1155
1181
 
1156
1182