barkoder-nativescript 1.6.2 → 1.6.4
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 +232 -0
- package/barkoder-nativescript.common.ts +47 -1
- package/barkoder-nativescript.ios.ts +236 -0
- package/package.json +1 -1
- package/platforms/android/barkoder.aar +0 -0
- 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 +2 -2
- package/platforms/ios/Barkoder.xcframework/ios-arm64/Barkoder.framework/float16_384x256.mlmodelc/model.mil +1 -1
- 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/Barkoder.framework/float16_512x384.mlmodelc/model.mil +1 -1
- 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 +15 -19
- 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_384x256.mlmodelc/model.mil +1 -1
- 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/model.mil +1 -1
- 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 +143 -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 +4102 -258
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +91 -0
- 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 +91 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/beep.wav +0 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64/BarkoderSDK.framework/templates.json +437 -14
- 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 +286 -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 +4102 -258
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +91 -0
- 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 +91 -0
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +4102 -258
- package/platforms/ios/BarkoderSDK.xcframework/ios-arm64_x86_64-simulator/BarkoderSDK.framework/Modules/BarkoderSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +91 -0
- 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 +91 -0
- 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 +437 -14
- 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
|
@@ -57,6 +57,14 @@ export class BarkoderViewAndroid extends View {
|
|
|
57
57
|
this.bkdView.startScanning(resultCallback);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
freezeScanning() {
|
|
61
|
+
this.bkdView.freezeScanning()
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
unfreezeScanning(){
|
|
65
|
+
this.bkdView.unfreezeScanning()
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
|
|
61
69
|
scanImage(
|
|
62
70
|
base64Image: string,
|
|
@@ -634,6 +642,26 @@ export class BarkoderViewAndroid extends View {
|
|
|
634
642
|
return this.bkdView.config.getDecoderConfig().Dotcode.enabled;
|
|
635
643
|
case BarkoderConstants.DecoderType.IDDocument:
|
|
636
644
|
return this.bkdView.config.getDecoderConfig().IDDocument.enabled;
|
|
645
|
+
case BarkoderConstants.DecoderType.Databar14:
|
|
646
|
+
return this.bkdView.config.getDecoderConfig().Databar14.enabled;
|
|
647
|
+
case BarkoderConstants.DecoderType.DatabarLimited:
|
|
648
|
+
return this.bkdView.config.getDecoderConfig().DatabarLimited.enabled;
|
|
649
|
+
case BarkoderConstants.DecoderType.DatabarExpanded:
|
|
650
|
+
return this.bkdView.config.getDecoderConfig().DatabarExpanded.enabled;
|
|
651
|
+
case BarkoderConstants.DecoderType.PostalIMB:
|
|
652
|
+
return this.bkdView.config.getDecoderConfig().PostalIMB.enabled;
|
|
653
|
+
case BarkoderConstants.DecoderType.Planet:
|
|
654
|
+
return this.bkdView.config.getDecoderConfig().Planet.enabled;
|
|
655
|
+
case BarkoderConstants.DecoderType.Postnet:
|
|
656
|
+
return this.bkdView.config.getDecoderConfig().Postnet.enabled;
|
|
657
|
+
case BarkoderConstants.DecoderType.AustralianPost:
|
|
658
|
+
return this.bkdView.config.getDecoderConfig().AustralianPost.enabled;
|
|
659
|
+
case BarkoderConstants.DecoderType.RoyalMail:
|
|
660
|
+
return this.bkdView.config.getDecoderConfig().RoyalMail.enabled;
|
|
661
|
+
case BarkoderConstants.DecoderType.KIX:
|
|
662
|
+
return this.bkdView.config.getDecoderConfig().KIX.enabled;
|
|
663
|
+
case BarkoderConstants.DecoderType.JapanesePost:
|
|
664
|
+
return this.bkdView.config.getDecoderConfig().JapanesePost.enabled;
|
|
637
665
|
}
|
|
638
666
|
}
|
|
639
667
|
|
|
@@ -672,6 +700,13 @@ export class BarkoderViewAndroid extends View {
|
|
|
672
700
|
this.bkdView.config.getDecoderConfig().Databar14.enabled = false;
|
|
673
701
|
this.bkdView.config.getDecoderConfig().DatabarLimited.enabled = false;
|
|
674
702
|
this.bkdView.config.getDecoderConfig().DatabarExpanded.enabled = false;
|
|
703
|
+
this.bkdView.config.getDecoderConfig().PostalIMB.enabled = false;
|
|
704
|
+
this.bkdView.config.getDecoderConfig().Postnet.enabled = false;
|
|
705
|
+
this.bkdView.config.getDecoderConfig().Planet.enabled = false;
|
|
706
|
+
this.bkdView.config.getDecoderConfig().AustralianPost.enabled = false;
|
|
707
|
+
this.bkdView.config.getDecoderConfig().RoyalMail.enabled = false;
|
|
708
|
+
this.bkdView.config.getDecoderConfig().KIX.enabled = false;
|
|
709
|
+
this.bkdView.config.getDecoderConfig().JapanesePost.enabled = false;
|
|
675
710
|
decoders.forEach((dt: BarkoderConstants.DecoderType) => {
|
|
676
711
|
switch (dt) {
|
|
677
712
|
case BarkoderConstants.DecoderType.Aztec:
|
|
@@ -767,6 +802,27 @@ export class BarkoderViewAndroid extends View {
|
|
|
767
802
|
case BarkoderConstants.DecoderType.DatabarLimited:
|
|
768
803
|
this.bkdView.config.getDecoderConfig().DatabarLimited.enabled = true;
|
|
769
804
|
break;
|
|
805
|
+
case BarkoderConstants.DecoderType.PostalIMB:
|
|
806
|
+
this.bkdView.config.getDecoderConfig().PostalIMB.enabled = true;
|
|
807
|
+
break;
|
|
808
|
+
case BarkoderConstants.DecoderType.Postnet:
|
|
809
|
+
this.bkdView.config.getDecoderConfig().Postnet.enabled = true;
|
|
810
|
+
break;
|
|
811
|
+
case BarkoderConstants.DecoderType.Planet:
|
|
812
|
+
this.bkdView.config.getDecoderConfig().Planet.enabled = true;
|
|
813
|
+
break;
|
|
814
|
+
case BarkoderConstants.DecoderType.AustralianPost:
|
|
815
|
+
this.bkdView.config.getDecoderConfig().AustralianPost.enabled = true;
|
|
816
|
+
break;
|
|
817
|
+
case BarkoderConstants.DecoderType.RoyalMail:
|
|
818
|
+
this.bkdView.config.getDecoderConfig().RoyalMail.enabled = true;
|
|
819
|
+
break;
|
|
820
|
+
case BarkoderConstants.DecoderType.KIX:
|
|
821
|
+
this.bkdView.config.getDecoderConfig().KIX.enabled = true;
|
|
822
|
+
break;
|
|
823
|
+
case BarkoderConstants.DecoderType.JapanesePost:
|
|
824
|
+
this.bkdView.config.getDecoderConfig().JapanesePost.enabled = true;
|
|
825
|
+
break;
|
|
770
826
|
default:
|
|
771
827
|
break;
|
|
772
828
|
}
|
|
@@ -1243,9 +1299,185 @@ export class BarkoderViewAndroid extends View {
|
|
|
1243
1299
|
|
|
1244
1300
|
}
|
|
1245
1301
|
|
|
1302
|
+
setBarkoderARMode(arMode: BarkoderConstants.BarkoderARMode): void {
|
|
1303
|
+
if (arMode == BarkoderConstants.BarkoderARMode.OFF) {
|
|
1304
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.OFF;
|
|
1305
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveDisabled) {
|
|
1306
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.InteractiveDisabled;
|
|
1307
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveEnabled) {
|
|
1308
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.InteractiveEnabled;
|
|
1309
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.NonInteractive) {
|
|
1310
|
+
this.bkdView.config.arConfig.arMode = com.barkoder.enums.BarkoderARMode.NonInteractive;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
getBarkoderARMode(): any {
|
|
1315
|
+
return this.bkdView.config.arConfig.arMode
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
setBarkoderARLocationType(locationType: BarkoderConstants.BarkoderARLocationType): void {
|
|
1319
|
+
if (locationType == BarkoderConstants.BarkoderARLocationType.NONE) {
|
|
1320
|
+
this.bkdView.config.arConfig.locationType = com.barkoder.enums.BarkoderARLocationType.NONE;
|
|
1321
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.TIGHT) {
|
|
1322
|
+
this.bkdView.config.arConfig.locationType = com.barkoder.enums.BarkoderARLocationType.TIGHT;
|
|
1323
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.BOUNDINGBOX) {
|
|
1324
|
+
this.bkdView.config.arConfig.locationType = com.barkoder.enums.BarkoderARLocationType.BOUNDINGBOX;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
getBarkoderARLocationType() : any {
|
|
1329
|
+
return this.bkdView.config.arConfig.locationType
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
setBarkoderARHeaderShowMode(headerShowMode: BarkoderConstants.BarkoderARHeaderShowMode): void {
|
|
1333
|
+
if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.NEVER) {
|
|
1334
|
+
this.bkdView.config.arConfig.headerShowMode = com.barkoder.enums.BarkoderARHeaderShowMode.NEVER;
|
|
1335
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ONSELECTED) {
|
|
1336
|
+
this.bkdView.config.arConfig.headerShowMode = com.barkoder.enums.BarkoderARHeaderShowMode.ONSELECTED;
|
|
1337
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ALWAYS) {
|
|
1338
|
+
this.bkdView.config.arConfig.headerShowMode = com.barkoder.enums.BarkoderARHeaderShowMode.ALWAYS;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
getBarkoderARHeaderShowMode() : any {
|
|
1343
|
+
return this.bkdView.config.arConfig.headerShowMode
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
setBarkoderARoverlayRefresh(overlayRefresh: BarkoderConstants.BarkoderAROverlayRefresh): void {
|
|
1347
|
+
if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.SMOOTH) {
|
|
1348
|
+
this.bkdView.config.arConfig.overlayRefresh = com.barkoder.enums.BarkoderAROverlayRefresh.SMOOTH;
|
|
1349
|
+
} else if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.NORMAL) {
|
|
1350
|
+
this.bkdView.config.arConfig.overlayRefresh = com.barkoder.enums.BarkoderAROverlayRefresh.NORMAL;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
getBarkoderARoverlayRefresh() : any {
|
|
1355
|
+
return this.bkdView.config.arConfig.overlayRefresh
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
setARNonSelectedLocationLineColor(locationLineColor: string): void {
|
|
1359
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1360
|
+
this.bkdView.config.arConfig.setNonSelectedLocationColor(locationColor);
|
|
1361
|
+
}
|
|
1246
1362
|
|
|
1363
|
+
getARNonSelectedLocationLineColor() : any {
|
|
1364
|
+
return this.bkdView.config.arConfig.getNonSelectedLocationColor();
|
|
1365
|
+
}
|
|
1247
1366
|
|
|
1367
|
+
setARSelectedLocationLineColor(locationLineColor: string): void {
|
|
1368
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1369
|
+
this.bkdView.config.arConfig.setSelectedLocationColor(locationColor);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
getARSelectedLocationLineColor(): any {
|
|
1373
|
+
return this.bkdView.config.arConfig.getSelectedLocationColor();
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
setARHeaderMaxTextHeight(maxText : number) : void {
|
|
1377
|
+
this.bkdView.config.arConfig.setHeaderMaxTextHeight(maxText)
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
getARHeaderMaxTextHeight() : any {
|
|
1381
|
+
return this.bkdView.config.arConfig.getHeaderMaxTextHeight()
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
setARHeaderMinTextHeight(maxText: number): void {
|
|
1385
|
+
this.bkdView.config.arConfig.setHeaderMinTextHeight(maxText)
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
getARHeaderMinTextHeight(): any {
|
|
1389
|
+
return this.bkdView.config.arConfig.getHeaderMinTextHeight()
|
|
1390
|
+
}
|
|
1248
1391
|
|
|
1392
|
+
setARHeaderHeight(height: number) : void {
|
|
1393
|
+
this.bkdView.config.arConfig.setHeaderHeight(height)
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
getARHeaderHeight(): any {
|
|
1397
|
+
return this.bkdView.config.arConfig.getHeaderHeight()
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
setARHeaderVerticalTextMargin(margin : number) : void {
|
|
1401
|
+
this.bkdView.config.arConfig.setHeaderVerticalTextMargin(margin)
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
getARHeaderVerticalTextMargin(): void {
|
|
1405
|
+
return this.bkdView.config.arConfig.getHeaderVerticalTextMargin()
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
setARHeaderHorizontalTextMargin(margin: number): void {
|
|
1409
|
+
this.bkdView.config.arConfig.setHeaderHorizontalTextMargin(margin)
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
getARHeaderHorizontalTextMargin(): void {
|
|
1413
|
+
return this.bkdView.config.arConfig.getHeaderHorizontalTextMargin()
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
setARNonSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1417
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1418
|
+
this.bkdView.config.arConfig.setHeaderTextColorNonSelected(locationColor);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
getARNonSelectedHeaderTextColor() : any {
|
|
1422
|
+
return this.bkdView.config.arConfig.getHeaderTextColorNonSelected()
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
setARSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1426
|
+
const locationColor = this.hexToAndroidColor(locationLineColor);
|
|
1427
|
+
this.bkdView.config.arConfig.setHeaderTextColorSelected(locationColor);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
getARSelectedHeaderTextColor(): any {
|
|
1431
|
+
return this.bkdView.config.arConfig.getHeaderTextColorSelected()
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
setARDoubleTapToFreezeEnabled(enabled : boolean) : void {
|
|
1435
|
+
this.bkdView.config.arConfig.setDoubleTapToFreezeEnabled(enabled);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
getARDoubleTapToFreezeEnabled(): any {
|
|
1439
|
+
return this.bkdView.config.arConfig.isDoubleTapToFreezeEnabled();
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
setResultDisappearanceDelayMs(ms : number) : void {
|
|
1443
|
+
this.bkdView.config.arConfig.setResultDisappearanceDelayMs(ms);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
getResultDisappearanceDelayMs(): any {
|
|
1447
|
+
return this.bkdView.config.arConfig.getResultDisappearanceDelayMs();
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
setARLocationTransitionSpeed(speed : number) : void {
|
|
1451
|
+
this.bkdView.config.arConfig.setLocationTransitionSpeed(speed);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
getARLocationTransitionSpeed(): any {
|
|
1455
|
+
return this.bkdView.config.arConfig.getLocationTransitionSpeed();
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
setARSelectedLocationLineWidth(width : number) : void {
|
|
1459
|
+
this.bkdView.config.arConfig.setSelectedLocationLineWidth(width);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
getARSelectedLocationLineWidth(): any {
|
|
1463
|
+
return this.bkdView.config.arConfig.getSelectedLocationLineWidth();
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
setARNonSelectedLocationLineWidth(width: number): void {
|
|
1467
|
+
this.bkdView.config.arConfig.setNonSelectedLocationLineWidth(width);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
getARNonSelectedLocationLineWidth(): any {
|
|
1471
|
+
return this.bkdView.config.arConfig.getNonSelectedLocationLineWidth();
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
setARHeaderTextFormat(format : string) : void {
|
|
1475
|
+
this.bkdView.config.arConfig.setHeaderTextFormat(format);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
getARHeaderTextFormat(format: string): void {
|
|
1479
|
+
return this.bkdView.config.arConfig.getHeaderTextFormat(format);
|
|
1480
|
+
}
|
|
1249
1481
|
setLicenseKey(licenseKey: string): void {
|
|
1250
1482
|
this.bkdView.config = new com.barkoder.BarkoderConfig(
|
|
1251
1483
|
context,
|
|
@@ -52,7 +52,15 @@ export enum DecoderType {
|
|
|
52
52
|
IDDocument = 28,
|
|
53
53
|
Databar14 = 29,
|
|
54
54
|
DatabarLimited = 30,
|
|
55
|
-
DatabarExpanded = 31
|
|
55
|
+
DatabarExpanded = 31,
|
|
56
|
+
PostalIMB = 32,
|
|
57
|
+
Postnet = 33,
|
|
58
|
+
Planet = 34,
|
|
59
|
+
AustralianPost = 35,
|
|
60
|
+
RoyalMail = 36,
|
|
61
|
+
KIX = 37,
|
|
62
|
+
JapanesePost = 38
|
|
63
|
+
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
export enum FormattingType {
|
|
@@ -101,6 +109,30 @@ export enum Code39ChecksumType {
|
|
|
101
109
|
Front = 1
|
|
102
110
|
}
|
|
103
111
|
|
|
112
|
+
export enum BarkoderARMode {
|
|
113
|
+
OFF = 0,
|
|
114
|
+
InteractiveDisabled = 1,
|
|
115
|
+
InteractiveEnabled = 2,
|
|
116
|
+
NonInteractive = 3
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export enum BarkoderARHeaderShowMode {
|
|
120
|
+
NEVER = 0,
|
|
121
|
+
ALWAYS = 1,
|
|
122
|
+
ONSELECTED = 2
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export enum BarkoderARLocationType {
|
|
126
|
+
NONE = 0,
|
|
127
|
+
TIGHT = 1,
|
|
128
|
+
BOUNDINGBOX = 2
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export enum BarkoderAROverlayRefresh {
|
|
132
|
+
SMOOTH = 0,
|
|
133
|
+
NORMAL = 1
|
|
134
|
+
}
|
|
135
|
+
|
|
104
136
|
export class Common extends Observable {
|
|
105
137
|
|
|
106
138
|
}
|
|
@@ -196,6 +228,13 @@ export class DekoderConfig {
|
|
|
196
228
|
databar14?: BarcodeConfig;
|
|
197
229
|
databarExpanded?: BarcodeConfig;
|
|
198
230
|
databarLimited?: BarcodeConfig;
|
|
231
|
+
postalIMB?: BarcodeConfig;
|
|
232
|
+
postnet?: BarcodeConfig;
|
|
233
|
+
planet?: BarcodeConfig;
|
|
234
|
+
australianPost?: BarcodeConfig;
|
|
235
|
+
royalMail?: BarcodeConfig;
|
|
236
|
+
kix?: BarcodeConfig;
|
|
237
|
+
japanasePost?: BarcodeConfig;
|
|
199
238
|
general?: GeneralSettings;
|
|
200
239
|
|
|
201
240
|
constructor(config: Partial<DekoderConfig>) {
|
|
@@ -236,6 +275,13 @@ export class DekoderConfig {
|
|
|
236
275
|
'Databar 14': this.databar14?.toMap(),
|
|
237
276
|
'Databar Expanded': this.databarExpanded?.toMap(),
|
|
238
277
|
'Databar Limited': this.databarLimited?.toMap(),
|
|
278
|
+
'Postal IMB': this.postalIMB?.toMap(),
|
|
279
|
+
'Postnet': this.postnet?.toMap(),
|
|
280
|
+
'Planet': this.planet?.toMap(),
|
|
281
|
+
'Australian Post': this.australianPost?.toMap(),
|
|
282
|
+
'Royal Mail': this.royalMail?.toMap(),
|
|
283
|
+
'KIX': this.kix?.toMap(),
|
|
284
|
+
'Japanase Post': this.japanasePost?.toMap(),
|
|
239
285
|
'general': this.general?.toMap()
|
|
240
286
|
}
|
|
241
287
|
|
|
@@ -22,6 +22,14 @@ export class BarkoderViewIOS extends View {
|
|
|
22
22
|
this.bkdView.startScanningError(resultDelegate);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
freezeScanning() {
|
|
26
|
+
this.bkdView.freezeScanning()
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
unfreezeScanning() {
|
|
30
|
+
this.bkdView.unfreezeScanning()
|
|
31
|
+
}
|
|
32
|
+
|
|
25
33
|
scanImage(base64Image: string, callback: BarkoderConstants.BarkoderResultCallback): void {
|
|
26
34
|
|
|
27
35
|
// Convert Base64 to UIImage
|
|
@@ -580,6 +588,26 @@ export class BarkoderViewIOS extends View {
|
|
|
580
588
|
return this.bkdView.config.decoderConfig.dotcode.enabled;
|
|
581
589
|
case BarkoderConstants.DecoderType.IDDocument:
|
|
582
590
|
return this.bkdView.config.decoderConfig.idDocument.enabled;
|
|
591
|
+
case BarkoderConstants.DecoderType.DatabarLimited:
|
|
592
|
+
return this.bkdView.config.decoderConfig.databarLimited.enabled;
|
|
593
|
+
case BarkoderConstants.DecoderType.DatabarExpanded:
|
|
594
|
+
return this.bkdView.config.decoderConfig.databarExpanded.enabled;
|
|
595
|
+
case BarkoderConstants.DecoderType.Databar14:
|
|
596
|
+
return this.bkdView.config.decoderConfig.databar14.enabled;
|
|
597
|
+
case BarkoderConstants.DecoderType.PostalIMB:
|
|
598
|
+
return this.bkdView.config.decoderConfig.postalIMB.enabled;
|
|
599
|
+
case BarkoderConstants.DecoderType.Planet:
|
|
600
|
+
return this.bkdView.config.decoderConfig.planet.enabled;
|
|
601
|
+
case BarkoderConstants.DecoderType.Postnet:
|
|
602
|
+
return this.bkdView.config.decoderConfig.postnet.enabled;
|
|
603
|
+
case BarkoderConstants.DecoderType.AustralianPost:
|
|
604
|
+
return this.bkdView.config.decoderConfig.australianPost.enabled;
|
|
605
|
+
case BarkoderConstants.DecoderType.RoyalMail:
|
|
606
|
+
return this.bkdView.config.decoderConfig.royalMail.enabled;
|
|
607
|
+
case BarkoderConstants.DecoderType.KIX:
|
|
608
|
+
return this.bkdView.config.decoderConfig.kix.enabled;
|
|
609
|
+
case BarkoderConstants.DecoderType.JapanesePost:
|
|
610
|
+
return this.bkdView.config.decoderConfig.japanasePost.enabled;
|
|
583
611
|
}
|
|
584
612
|
}
|
|
585
613
|
|
|
@@ -619,6 +647,13 @@ export class BarkoderViewIOS extends View {
|
|
|
619
647
|
this.bkdView.config.decoderConfig.databar14.enabled = false;
|
|
620
648
|
this.bkdView.config.decoderConfig.databarLimited.enabled = false;
|
|
621
649
|
this.bkdView.config.decoderConfig.databarExpanded.enabled = false;
|
|
650
|
+
this.bkdView.config.decoderConfig.postalIMB.enabled = false;
|
|
651
|
+
this.bkdView.config.decoderConfig.planet.enabled = false;
|
|
652
|
+
this.bkdView.config.decoderConfig.postnet.enabled = false;
|
|
653
|
+
this.bkdView.config.decoderConfig.australianPost.enabled = false;
|
|
654
|
+
this.bkdView.config.decoderConfig.royalMail.enabled = false;
|
|
655
|
+
this.bkdView.config.decoderConfig.kix.enabled = false;
|
|
656
|
+
this.bkdView.config.decoderConfig.japanesePost.enabled = false;
|
|
622
657
|
decoders.forEach((dt: BarkoderConstants.DecoderType) => {
|
|
623
658
|
switch (dt) {
|
|
624
659
|
case BarkoderConstants.DecoderType.Aztec:
|
|
@@ -714,6 +749,27 @@ export class BarkoderViewIOS extends View {
|
|
|
714
749
|
case BarkoderConstants.DecoderType.DatabarLimited:
|
|
715
750
|
this.bkdView.config.decoderConfig.databarLimited.enabled = true;
|
|
716
751
|
break;
|
|
752
|
+
case BarkoderConstants.DecoderType.PostalIMB:
|
|
753
|
+
this.bkdView.config.decoderConfig.postalIMB.enabled = true;
|
|
754
|
+
break;
|
|
755
|
+
case BarkoderConstants.DecoderType.Planet:
|
|
756
|
+
this.bkdView.config.decoderConfig.planet.enabled = true;
|
|
757
|
+
break;
|
|
758
|
+
case BarkoderConstants.DecoderType.Postnet:
|
|
759
|
+
this.bkdView.config.decoderConfig.postnet.enabled = true;
|
|
760
|
+
break;
|
|
761
|
+
case BarkoderConstants.DecoderType.AustralianPost:
|
|
762
|
+
this.bkdView.config.decoderConfig.australianPost.enabled = true;
|
|
763
|
+
break;
|
|
764
|
+
case BarkoderConstants.DecoderType.RoyalMail:
|
|
765
|
+
this.bkdView.config.decoderConfig.royalMail.enabled = true;
|
|
766
|
+
break;
|
|
767
|
+
case BarkoderConstants.DecoderType.KIX:
|
|
768
|
+
this.bkdView.config.decoderConfig.kix.enabled = true;
|
|
769
|
+
break;
|
|
770
|
+
case BarkoderConstants.DecoderType.JapanesePost:
|
|
771
|
+
this.bkdView.config.decoderConfig.japanesePost.enabled = true;
|
|
772
|
+
break;
|
|
717
773
|
default:
|
|
718
774
|
break;
|
|
719
775
|
}
|
|
@@ -1255,6 +1311,186 @@ export class BarkoderViewIOS extends View {
|
|
|
1255
1311
|
}
|
|
1256
1312
|
}
|
|
1257
1313
|
|
|
1314
|
+
setBarkoderARMode(arMode: BarkoderConstants.BarkoderARMode): void {
|
|
1315
|
+
if (arMode == BarkoderConstants.BarkoderARMode.OFF) {
|
|
1316
|
+
this.bkdView.config.arConfig.arMode = 0
|
|
1317
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveDisabled) {
|
|
1318
|
+
this.bkdView.config.arConfig.arMode = 1
|
|
1319
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.InteractiveEnabled) {
|
|
1320
|
+
this.bkdView.config.arConfig.arMode = 2
|
|
1321
|
+
} else if (arMode == BarkoderConstants.BarkoderARMode.NonInteractive) {
|
|
1322
|
+
this.bkdView.config.arConfig.arMode = 3
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
getBarkoderARMode(): any {
|
|
1327
|
+
return this.bkdView.config.arConfig.arMode
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
setBarkoderARLocationType(locationType: BarkoderConstants.BarkoderARLocationType): void {
|
|
1331
|
+
if (locationType == BarkoderConstants.BarkoderARLocationType.NONE) {
|
|
1332
|
+
this.bkdView.config.arConfig.locationType = 0
|
|
1333
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.TIGHT) {
|
|
1334
|
+
this.bkdView.config.arConfig.locationType = 1
|
|
1335
|
+
} else if (locationType == BarkoderConstants.BarkoderARLocationType.BOUNDINGBOX) {
|
|
1336
|
+
this.bkdView.config.arConfig.locationType = 2
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
getBarkoderARLocationType() : any {
|
|
1341
|
+
return this.bkdView.config.arConfig.locationType
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
setBarkoderARHeaderShowMode(headerShowMode: BarkoderConstants.BarkoderARHeaderShowMode): void {
|
|
1345
|
+
if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.NEVER) {
|
|
1346
|
+
this.bkdView.config.arConfig.headerShowMode = 0
|
|
1347
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ALWAYS) {
|
|
1348
|
+
this.bkdView.config.arConfig.headerShowMode = 1
|
|
1349
|
+
} else if (headerShowMode == BarkoderConstants.BarkoderARHeaderShowMode.ONSELECTED) {
|
|
1350
|
+
this.bkdView.config.arConfig.headerShowMode = 2
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
getBarkoderARHeaderShowMode() : any {
|
|
1355
|
+
return this.bkdView.config.arConfig.headerShowMode
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
setBarkoderARoverlayRefresh(overlayRefresh: BarkoderConstants.BarkoderAROverlayRefresh): void {
|
|
1359
|
+
if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.SMOOTH) {
|
|
1360
|
+
this.bkdView.config.arConfig.overlayRefresh = 1;
|
|
1361
|
+
} else if (overlayRefresh == BarkoderConstants.BarkoderAROverlayRefresh.NORMAL) {
|
|
1362
|
+
this.bkdView.config.arConfig.overlayRefresh = 2;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
getBarkoderARoverlayRefresh() : any {
|
|
1367
|
+
return this.bkdView.config.arConfig.overlayRefresh
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
setARNonSelectedLocationLineColor(locationLineColor: string): void {
|
|
1371
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1372
|
+
this.bkdView.config.arConfig.nonSelectedLocationColor = locationColor;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
getARNonSelectedLocationLineColor() : any {
|
|
1376
|
+
return this.bkdView.config.arConfig.nonSelectedLocationColor;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
setARSelectedLocationLineColor(locationLineColor: string): void {
|
|
1380
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1381
|
+
this.bkdView.config.arConfig.selectedLocationColor = locationColor;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
getARSelectedLocationLineColor(): any {
|
|
1385
|
+
return this.bkdView.config.arConfig.selectedLocationColor;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
setARHeaderMaxTextHeight(maxText : number) : void {
|
|
1389
|
+
this.bkdView.config.arConfig.headerMaxTextHeight = maxText;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
getARHeaderMaxTextHeight() : any {
|
|
1393
|
+
return this.bkdView.config.arConfig.headerMaxTextHeight
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
setARHeaderMinTextHeight(minText: number): void {
|
|
1397
|
+
this.bkdView.config.arConfig.headerMinTextHeight = minText;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
getARHeaderMinTextHeight(): any {
|
|
1401
|
+
return this.bkdView.config.arConfig.headerMinTextHeight
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
setARHeaderHeight(height: number) : void {
|
|
1405
|
+
this.bkdView.config.arConfig.headerHeight = height
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
getARHeaderHeight(): any {
|
|
1409
|
+
return this.bkdView.config.arConfig.headerHeight
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
setARHeaderVerticalTextMargin(margin : number) : void {
|
|
1413
|
+
this.bkdView.config.arConfig.headerVerticalTextMargin = margin
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
getARHeaderVerticalTextMargin(): void {
|
|
1417
|
+
return this.bkdView.config.arConfig.headerVerticalTextMargin
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
setARHeaderHorizontalTextMargin(margin: number): void {
|
|
1421
|
+
this.bkdView.config.arConfig.headerHorizontalTextMargin = margin
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
getARHeaderHorizontalTextMargin(): void {
|
|
1425
|
+
return this.bkdView.config.arConfig.headerHorizontalTextMargin
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
setARNonSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1429
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1430
|
+
this.bkdView.config.arConfig.headerTextColorNonSelected = locationColor;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
getARNonSelectedHeaderTextColor() : any {
|
|
1434
|
+
return this.bkdView.config.arConfig.headerTextColorNonSelected
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
setARSelectedHeaderTextColor(locationLineColor: string): void {
|
|
1438
|
+
const locationColor = this.hexToUIColor(locationLineColor);
|
|
1439
|
+
this.bkdView.config.arConfig.headerTextColorSelected = locationColor
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
getARSelectedHeaderTextColor(): any {
|
|
1443
|
+
return this.bkdView.config.arConfig.headerTextColorSelected
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
setARDoubleTapToFreezeEnabled(enabled : boolean) : void {
|
|
1447
|
+
this.bkdView.config.arConfig.doubleTapToFreezeEnabled = enabled
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
getARDoubleTapToFreezeEnabled(): any {
|
|
1451
|
+
return this.bkdView.config.arConfig.doubleTapToFreezeEnabled
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
setResultDisappearanceDelayMs(ms : number) : void {
|
|
1455
|
+
this.bkdView.config.arConfig.resultDisappearanceDelayMs = ms
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
getResultDisappearanceDelayMs(): any {
|
|
1459
|
+
return this.bkdView.config.arConfig.resultDisappearanceDelayMs
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
setARLocationTransitionSpeed(speed : number) : void {
|
|
1463
|
+
this.bkdView.config.arConfig.locationTransitionSpeed = speed
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
getARLocationTransitionSpeed(): any {
|
|
1467
|
+
return this.bkdView.config.arConfig.locationTransitionSpeed
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
setARSelectedLocationLineWidth(width : number) : void {
|
|
1471
|
+
this.bkdView.config.arConfig.selectedLocationLineWidth = width
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
getARSelectedLocationLineWidth(): any {
|
|
1475
|
+
return this.bkdView.config.arConfig.selectedLocationLineWidth
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
setARNonSelectedLocationLineWidth(width: number): void {
|
|
1479
|
+
this.bkdView.config.arConfig.nonSelectedLocationLineWidth = width
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
getARNonSelectedLocationLineWidth(): any {
|
|
1483
|
+
return this.bkdView.config.arConfig.nonSelectedLocationLineWidth
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
setARHeaderTextFormat(format : string) : void {
|
|
1487
|
+
this.bkdView.config.arConfig.headerTextFormat = format
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
getARHeaderTextFormat(format: string): void {
|
|
1491
|
+
return this.bkdView.config.arConfig.headerTextFormat
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1258
1494
|
|
|
1259
1495
|
/**
|
|
1260
1496
|
* Configures the Barkoder functionality based on the provided configuration
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|