react-native-scanbot-barcode-scanner-sdk 3.1.0-beta3 → 3.1.0-beta7
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/Libraries.txt +352 -283
- package/RNScanbotBarcodeSDK.podspec +1 -1
- package/android/.gradle/{6.1.1 → 6.8}/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{6.1.1 → 6.8}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/{6.1.1 → 6.8}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/{6.1.1 → 6.8}/gc.properties +0 -0
- package/android/.gradle/7.0-rc-1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.0-rc-1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.0-rc-1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0-rc-1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0-rc-1/gc.properties +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.project +28 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/build.gradle +1 -1
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/local.properties +8 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/JSONUtils.java +10 -2
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkConfiguration.java +18 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.java +24 -21
- package/index.d.ts +5 -9
- package/ios/Components/BarcodeCameraView/RNScanbotBarcodeCameraView.h +1 -0
- package/ios/Components/BarcodeCameraView/RNScanbotBarcodeCameraView.m +3 -0
- package/ios/ScanbotBarcodeSdk.m +64 -12
- package/package.json +3 -3
- package/src/components/barcode-camera-view/scanbot-barcode-camera-view-types.tsx +8 -2
- package/src/configuration.ts +363 -295
- package/src/model.ts +10 -0
- package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -22
- package/android/.idea/jarRepositories.xml +0 -50
- package/android/.idea/libraries/Gradle__androidx_activity_activity_1_2_3_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_2_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_1_0_rc01_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_3_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_3_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_camera_camera_camera2_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_camera_camera_core_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_camera_camera_lifecycle_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_camera_camera_view_1_0_0_alpha24_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_cardview_cardview_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_2_0_4_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_2_0_4.xml +0 -9
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_1_5_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_ktx_1_3_2_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_databinding_viewbinding_4_2_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_dynamicanimation_dynamicanimation_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_3_4_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_v4_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_3_1.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_3_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_3_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_ktx_2_3_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_3_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_savedstate_2_3_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_media_media_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_transition_transition_1_2_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_commonsware_cwac_camera_camera_0_6_41_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_2_0_0_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagefilters_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagetranscoder_2_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_60_6_aar.xml +0 -18
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_material_material_1_3_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_code_gson_gson_2_8_6.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_dagger_dagger_2_35.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_guava_listenablefuture_1_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_1.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0.xml +0 -13
- package/android/.idea/libraries/Gradle__commons_io_commons_io_2_4.xml +0 -13
- package/android/.idea/libraries/Gradle__io_reactivex_rxjava2_rxandroid_2_0_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__io_reactivex_rxjava2_rxjava_2_1_5.xml +0 -13
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_barcode_scanner_sdk_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_barcode_scanner_sdk_ui_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_barcode_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_base_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_ui_barcode_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_ui_base_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_barcode_assets_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_core_barcode_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_core_barcode_native_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_core_sap_3_0_1_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_4_20.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_4_20.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_20.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_android_1_4_1.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_core_jvm_1_4_1.xml +0 -13
- package/android/.idea/libraries/Gradle__org_reactivestreams_reactive_streams_1_0_1.xml +0 -13
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules/android.iml +0 -133
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/vcs.xml +0 -6
- package/android/.idea/workspace.xml +0 -62
package/src/configuration.ts
CHANGED
|
@@ -5,308 +5,376 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { FinderAspectRatio } from "./model";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
BarcodeDocumentFormat,
|
|
9
|
+
BarcodeFormat,
|
|
10
|
+
BarcodeImageGenerationType,
|
|
11
|
+
UIInterfaceOrientationMask,
|
|
12
|
+
EngineMode
|
|
13
13
|
} from "./enum";
|
|
14
|
-
import { MSIPlesseyChecksumAlgorithm } from "
|
|
14
|
+
import { MSIPlesseyChecksumAlgorithm } from "./enum";
|
|
15
15
|
|
|
16
|
-
export interface BarcodeScannerConfiguration
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
16
|
+
export interface BarcodeScannerConfiguration {
|
|
17
|
+
/**
|
|
18
|
+
* An optional array of barcode document formats that act as a detection filter.
|
|
19
|
+
* By default all supported document formats will be detected.
|
|
20
|
+
*/
|
|
21
|
+
acceptedDocumentFormats?: BarcodeDocumentFormat[];
|
|
22
|
+
/**
|
|
23
|
+
* Allowed orientations for automatic interface rotations. *
|
|
24
|
+
*/
|
|
25
|
+
allowedInterfaceOrientations?: UIInterfaceOrientationMask;
|
|
26
|
+
/**
|
|
27
|
+
* Background color of the detection overlay.
|
|
28
|
+
*/
|
|
29
|
+
cameraOverlayColor?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the cancel button is hidden or not.
|
|
32
|
+
*/
|
|
33
|
+
cancelButtonHidden?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* String being displayed on the cancel button.
|
|
36
|
+
*/
|
|
37
|
+
cancelButtonTitle?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Foreground color of the detection overlay.
|
|
40
|
+
*/
|
|
41
|
+
finderLineColor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Width of finder frame border. Default is 2.
|
|
44
|
+
*/
|
|
45
|
+
finderLineWidth?: number;
|
|
46
|
+
/**
|
|
47
|
+
* String being displayed as description.
|
|
48
|
+
*/
|
|
49
|
+
finderTextHint?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Foreground color of the description label.
|
|
52
|
+
*/
|
|
53
|
+
finderTextHintColor?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Aspect ratio of finder frame (width \ height), which is used to build actual finder frame.
|
|
56
|
+
* Default is 1 - it is a square frame, which is good for QR capturing.
|
|
57
|
+
*/
|
|
58
|
+
finderAspectRatio?: FinderAspectRatio;
|
|
59
|
+
/**
|
|
60
|
+
* String being displayed on the flash button.
|
|
61
|
+
*/
|
|
62
|
+
flashButtonTitle?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Foreground color of the flash button when flash is off.
|
|
65
|
+
*/
|
|
66
|
+
flashButtonInactiveColor?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Whether flash is toggled on or off.
|
|
69
|
+
*/
|
|
70
|
+
flashEnabled?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Optional minimum required text length of the detected barcode.
|
|
73
|
+
* The default is 0 (setting is turned off).
|
|
74
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
75
|
+
*/
|
|
76
|
+
minimumTextLength?: number,
|
|
77
|
+
/**
|
|
78
|
+
* Optional maximum required text length of the detected barcode.
|
|
79
|
+
* The default is 0 (setting is turned off).
|
|
80
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
81
|
+
*/
|
|
82
|
+
maximumTextLength?: number,
|
|
83
|
+
/**
|
|
84
|
+
* Optional minimum required quiet zone on the barcode.
|
|
85
|
+
* Measured in modules (the size of minimal bar on the barcode).
|
|
86
|
+
* The default is 10.
|
|
87
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
88
|
+
*/
|
|
89
|
+
minimum1DBarcodesQuietZone?: number
|
|
90
|
+
/**
|
|
91
|
+
* Whether scanner screen should make a sound on successful barcode or MRZ detection.
|
|
92
|
+
*/
|
|
93
|
+
successBeepEnabled?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Background color of the top bar.
|
|
96
|
+
*/
|
|
97
|
+
topBarBackgroundColor?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Foreground color of the cancel button.
|
|
100
|
+
*/
|
|
101
|
+
topBarButtonsColor?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Accepted barcode formats
|
|
104
|
+
*/
|
|
105
|
+
barcodeFormats?: BarcodeFormat[];
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the way of barcode images generation or disables this generation at all.
|
|
108
|
+
* Use, if you want to receive a full sized image with barcodes. Defaults to NONE.
|
|
109
|
+
*/
|
|
110
|
+
barcodeImageGenerationType?: BarcodeImageGenerationType;
|
|
111
|
+
/**
|
|
112
|
+
* Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE.
|
|
113
|
+
* Android only.
|
|
114
|
+
*/
|
|
115
|
+
useButtonsAllCaps?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed.
|
|
118
|
+
* You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
|
|
119
|
+
* The default is 'true'.
|
|
120
|
+
* NOTE: Currently works for CODE128 barcodes only!
|
|
121
|
+
*/
|
|
122
|
+
enableGS1Decoding?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The relative initial zoom level of the camera in the range [0,1], where 0 is zoomed out and 1 is zoomed in.
|
|
125
|
+
* The default value is 0.
|
|
126
|
+
*/
|
|
127
|
+
cameraZoomFactor?: number;
|
|
128
|
+
/**
|
|
129
|
+
* The engine mode of the barcode recognizer. Defaults to NEXT_GEN.
|
|
130
|
+
* To use legacy recognizer, please specify LEGACY
|
|
131
|
+
*/
|
|
132
|
+
engineMode?: EngineMode;
|
|
133
|
+
/**
|
|
134
|
+
* When set to `true`, the scanner assumes that the barcode can be a GS1 barcode.
|
|
135
|
+
* Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
|
|
136
|
+
* The default value is `true`.
|
|
137
|
+
* NOTE: Currently works for CODE128 barcodes only!
|
|
138
|
+
*/
|
|
139
|
+
gs1DecodingEnabled?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* The checksum algorithms for MSI Plessey barcodes.
|
|
142
|
+
* The default value is [MSIPlesseyChecksumAlgorithm.Mod10].
|
|
143
|
+
*/
|
|
144
|
+
msiPlesseyChecksumAlgorithm?: MSIPlesseyChecksumAlgorithm;
|
|
145
|
+
/**
|
|
146
|
+
* With this option enabled, the scanner removes checks digits for UPC, EAN and MSI Plessey codes.
|
|
147
|
+
* Has no effect if both single and double digit MSI Plessey checksums are enabled.
|
|
148
|
+
* The default is `false`
|
|
149
|
+
*/
|
|
150
|
+
stripCheckDigits?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* If `true`, enabled the mode which slightly decreases the scanning quality and the energy consumption, and increases the scanning speed. If `false` - mode is disabled.
|
|
153
|
+
* The default is `false`
|
|
154
|
+
* Android only.
|
|
155
|
+
*/
|
|
156
|
+
lowPowerMode?: boolean;
|
|
157
|
+
}
|
|
129
158
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
export interface BatchBarcodeScannerConfiguration {
|
|
160
|
+
/**
|
|
161
|
+
* An optional array of barcode document formats that act as a detection filter.
|
|
162
|
+
* By default all supported document formats will be detected.
|
|
163
|
+
*/
|
|
164
|
+
acceptedDocumentFormats?: BarcodeDocumentFormat[];
|
|
165
|
+
/**
|
|
166
|
+
* Allowed orientations for automatic interface rotations. *
|
|
167
|
+
*/
|
|
168
|
+
allowedInterfaceOrientations?: UIInterfaceOrientationMask;
|
|
169
|
+
/**
|
|
170
|
+
* String used for displaying amount of scanned barcodes. Use %d for number formatting symbol.
|
|
171
|
+
*/
|
|
172
|
+
barcodesCountText?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Text color of the barcodes count label.
|
|
175
|
+
*/
|
|
176
|
+
barcodesCountTextColor?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Background color of the detection overlay.
|
|
179
|
+
*/
|
|
180
|
+
cameraOverlayColor?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the cancel button is hidden or not. (iOS Only)
|
|
183
|
+
*/
|
|
184
|
+
cancelButtonHidden?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The relative initial zoom level of the camera in the range [0,1], where 0 is zoomed out and 1 is zoomed in.
|
|
187
|
+
* The default value is 0.
|
|
188
|
+
*/
|
|
189
|
+
cameraZoomFactor?: number;
|
|
190
|
+
/**
|
|
191
|
+
* String being displayed on the cancel button.
|
|
192
|
+
*/
|
|
193
|
+
cancelButtonTitle?: string;
|
|
194
|
+
/**
|
|
195
|
+
* String being displayed on the clear button.
|
|
196
|
+
*/
|
|
197
|
+
clearButtonTitle?: string;
|
|
198
|
+
/**
|
|
199
|
+
* String being displayed on the delete button.
|
|
200
|
+
*/
|
|
201
|
+
deleteButtonTitle?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Foreground color of the top bar buttons on the details screen.
|
|
204
|
+
*/
|
|
205
|
+
detailsActionColor?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Background color of the details screen.
|
|
208
|
+
*/
|
|
209
|
+
detailsBackgroundColor?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Text color in the details barcodes list. Also affects image background, separator and progress spinner.
|
|
212
|
+
*/
|
|
213
|
+
detailsPrimaryColor?: string;
|
|
214
|
+
/**
|
|
215
|
+
* String used to show process of fetching mapped data for barcodes.
|
|
216
|
+
*/
|
|
217
|
+
fetchingStateText?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Aspect ratio of finder frame (width \ height), which is used to build actual finder frame.
|
|
220
|
+
* Default is 1 - it is a square frame, which is good for QR capturing.
|
|
221
|
+
*/
|
|
222
|
+
finderAspectRatio?: FinderAspectRatio;
|
|
223
|
+
/**
|
|
224
|
+
* Foreground color of the detection overlay.
|
|
225
|
+
*/
|
|
226
|
+
finderLineColor?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Width of finder frame border. Default is 2.
|
|
229
|
+
*/
|
|
230
|
+
finderLineWidth?: number;
|
|
231
|
+
/**
|
|
232
|
+
* String being displayed as description.
|
|
233
|
+
*/
|
|
234
|
+
finderTextHint?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Foreground color of the description label.
|
|
237
|
+
*/
|
|
238
|
+
finderTextHintColor?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Whether flash is toggled on or off.
|
|
241
|
+
*/
|
|
242
|
+
flashEnabled?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* String to show that no barcodes were scanned yet.
|
|
245
|
+
*/
|
|
246
|
+
noBarcodesTitle?: string;
|
|
247
|
+
/**
|
|
248
|
+
* String being displayed on the submit button.
|
|
249
|
+
*/
|
|
250
|
+
submitButtonTitle?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Whether scanner screen should make a sound on successful barcode or MRZ detection.
|
|
253
|
+
*/
|
|
254
|
+
successBeepEnabled?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Background color of the top bar.
|
|
257
|
+
*/
|
|
258
|
+
topBarBackgroundColor?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Foreground color of the top bar buttons on the scanning screen.
|
|
261
|
+
*/
|
|
262
|
+
topBarButtonsColor?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Foreground color of the flash button when flash is off.
|
|
265
|
+
*/
|
|
266
|
+
topBarButtonsInactiveColor?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Accepted barcode formats
|
|
269
|
+
*/
|
|
270
|
+
barcodeFormats?: BarcodeFormat[];
|
|
271
|
+
/**
|
|
272
|
+
* Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE.
|
|
273
|
+
* Android only.
|
|
274
|
+
*/
|
|
275
|
+
useButtonsAllCaps?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Optional minimum required text length of the detected barcode.
|
|
278
|
+
* The default is 0 (setting is turned off).
|
|
279
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
280
|
+
*/
|
|
281
|
+
minimumTextLength?: number;
|
|
282
|
+
/**
|
|
283
|
+
* Optional maximum required text length of the detected barcode.
|
|
284
|
+
* The default is 0 (setting is turned off).
|
|
285
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
286
|
+
*/
|
|
287
|
+
maximumTextLength?: number;
|
|
288
|
+
/**
|
|
289
|
+
* Optional minimum required quiet zone on the barcode.
|
|
290
|
+
* Measured in modules (the size of minimal bar on the barcode).
|
|
291
|
+
* The default is 10.
|
|
292
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
293
|
+
*/
|
|
294
|
+
minimum1DBarcodesQuietZone?: number;
|
|
295
|
+
/**
|
|
296
|
+
* With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed.
|
|
297
|
+
* You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
|
|
298
|
+
* The default is 'true'.
|
|
299
|
+
* NOTE: Currently works for CODE128 barcodes only!
|
|
300
|
+
*/
|
|
301
|
+
enableGS1Decoding?: boolean;
|
|
135
302
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
*/
|
|
142
|
-
gs1DecodingEnabled?: boolean,
|
|
303
|
+
/**
|
|
304
|
+
* The engine mode of the barcode recognizer. Defaults to NEXT_GEN.
|
|
305
|
+
* To use legacy recognizer, please specify LEGACY
|
|
306
|
+
*/
|
|
307
|
+
engineMode?: EngineMode;
|
|
143
308
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
309
|
+
/**
|
|
310
|
+
* When set to `true`, the scanner assumes that the barcode can be a GS1 barcode.
|
|
311
|
+
* Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
|
|
312
|
+
* The default value is `true`.
|
|
313
|
+
* NOTE: Currently works for CODE128 barcodes only!
|
|
314
|
+
*/
|
|
315
|
+
gs1DecodingEnabled?: boolean;
|
|
150
316
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
*
|
|
157
|
-
* NOTE: Android only.
|
|
158
|
-
*/
|
|
159
|
-
acceptedDocumentFormats?: BarcodeDocumentFormat[];
|
|
160
|
-
/**
|
|
161
|
-
* Allowed orientations for automatic interface rotations. *
|
|
162
|
-
*/
|
|
163
|
-
allowedInterfaceOrientations?: UIInterfaceOrientationMask;
|
|
164
|
-
/**
|
|
165
|
-
* String used for displaying amount of scanned barcodes. Use %d for number formatting symbol.
|
|
166
|
-
*/
|
|
167
|
-
barcodesCountText?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Text color of the barcodes count label.
|
|
170
|
-
*/
|
|
171
|
-
barcodesCountTextColor?: string;
|
|
172
|
-
/**
|
|
173
|
-
* Background color of the detection overlay.
|
|
174
|
-
*/
|
|
175
|
-
cameraOverlayColor?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Whether the cancel button is hidden or not. (iOS Only)
|
|
178
|
-
*/
|
|
179
|
-
cancelButtonHidden?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* String being displayed on the cancel button.
|
|
182
|
-
*/
|
|
183
|
-
cancelButtonTitle?: string;
|
|
184
|
-
/**
|
|
185
|
-
* String being displayed on the clear button.
|
|
186
|
-
*/
|
|
187
|
-
clearButtonTitle?: string;
|
|
188
|
-
/**
|
|
189
|
-
* String being displayed on the delete button.
|
|
190
|
-
*/
|
|
191
|
-
deleteButtonTitle?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Foreground color of the top bar buttons on the details screen.
|
|
194
|
-
*/
|
|
195
|
-
detailsActionColor?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Background color of the details screen.
|
|
198
|
-
*/
|
|
199
|
-
detailsBackgroundColor?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Text color in the details barcodes list. Also affects image background, separator and progress spinner.
|
|
202
|
-
*/
|
|
203
|
-
detailsPrimaryColor?: string;
|
|
204
|
-
/**
|
|
205
|
-
* String used to show process of fetching mapped data for barcodes.
|
|
206
|
-
*/
|
|
207
|
-
fetchingStateText?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Aspect ratio of finder frame (width \ height), which is used to build actual finder frame.
|
|
210
|
-
* Default is 1 - it is a square frame, which is good for QR capturing.
|
|
211
|
-
*/
|
|
212
|
-
finderAspectRatio?: FinderAspectRatio;
|
|
213
|
-
/**
|
|
214
|
-
* Foreground color of the detection overlay.
|
|
215
|
-
*/
|
|
216
|
-
finderLineColor?: string;
|
|
217
|
-
/**
|
|
218
|
-
* Width of finder frame border. Default is 2.
|
|
219
|
-
*/
|
|
220
|
-
finderLineWidth?: number;
|
|
221
|
-
/**
|
|
222
|
-
* String being displayed as description.
|
|
223
|
-
*/
|
|
224
|
-
finderTextHint?: string;
|
|
225
|
-
/**
|
|
226
|
-
* Foreground color of the description label.
|
|
227
|
-
*/
|
|
228
|
-
finderTextHintColor?: string;
|
|
229
|
-
/**
|
|
230
|
-
* Whether flash is toggled on or off.
|
|
231
|
-
*/
|
|
232
|
-
flashEnabled?: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* String to show that no barcodes were scanned yet.
|
|
235
|
-
*/
|
|
236
|
-
noBarcodesTitle?: string;
|
|
237
|
-
/**
|
|
238
|
-
* String being displayed on the submit button.
|
|
239
|
-
*/
|
|
240
|
-
submitButtonTitle?: string;
|
|
241
|
-
/**
|
|
242
|
-
* Whether scanner screen should make a sound on successful barcode or MRZ detection.
|
|
243
|
-
*/
|
|
244
|
-
successBeepEnabled?: boolean;
|
|
245
|
-
/**
|
|
246
|
-
* Background color of the top bar.
|
|
247
|
-
*/
|
|
248
|
-
topBarBackgroundColor?: string;
|
|
249
|
-
/**
|
|
250
|
-
* Foreground color of the top bar buttons on the scanning screen.
|
|
251
|
-
*/
|
|
252
|
-
topBarButtonsColor?: string;
|
|
253
|
-
/**
|
|
254
|
-
* Foreground color of the flash button when flash is off.
|
|
255
|
-
*/
|
|
256
|
-
topBarButtonsInactiveColor?: string;
|
|
257
|
-
/**
|
|
258
|
-
* Accepted barcode formats
|
|
259
|
-
*/
|
|
260
|
-
barcodeFormats?: BarcodeFormat[];
|
|
261
|
-
/**
|
|
262
|
-
* Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE.
|
|
263
|
-
* Android only.
|
|
264
|
-
*/
|
|
265
|
-
useButtonsAllCaps?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Optional minimum required text length of the detected barcode.
|
|
268
|
-
* The default is 0 (setting is turned off).
|
|
269
|
-
* NOTE: This feature works on ITF barcodes only.
|
|
270
|
-
*/
|
|
271
|
-
minimumTextLength?: number,
|
|
272
|
-
/**
|
|
273
|
-
* Optional maximum required text length of the detected barcode.
|
|
274
|
-
* The default is 0 (setting is turned off).
|
|
275
|
-
* NOTE: This feature works on ITF barcodes only.
|
|
276
|
-
*/
|
|
277
|
-
maximumTextLength?: number,
|
|
278
|
-
/**
|
|
279
|
-
* Optional minimum required quiet zone on the barcode.
|
|
280
|
-
* Measured in modules (the size of minimal bar on the barcode).
|
|
281
|
-
* The default is 10.
|
|
282
|
-
* NOTE: This feature works on ITF barcodes only.
|
|
283
|
-
*/
|
|
284
|
-
minimum1DBarcodesQuietZone?: number
|
|
285
|
-
/**
|
|
286
|
-
* With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed.
|
|
287
|
-
* You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
|
|
288
|
-
* The default is 'true'.
|
|
289
|
-
* NOTE: Currently works for CODE128 barcodes only!
|
|
290
|
-
*/
|
|
291
|
-
enableGS1Decoding?: boolean
|
|
317
|
+
/**
|
|
318
|
+
* The checksum algorithms for MSI Plessey barcodes.
|
|
319
|
+
* The default value is [MSIPlesseyChecksumAlgorithm.Mod10].
|
|
320
|
+
*/
|
|
321
|
+
msiPlesseyChecksumAlgorithm?: MSIPlesseyChecksumAlgorithm;
|
|
292
322
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
323
|
+
/**
|
|
324
|
+
* With this option enabled, the scanner removes checks digits for UPC, EAN and MSI Plessey codes.
|
|
325
|
+
* Has no effect if both single and double digit MSI Plessey checksums are enabled.
|
|
326
|
+
* The default is `false`
|
|
327
|
+
*/
|
|
328
|
+
stripCheckDigits?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* If `true`, enabled the mode which slightly decreases the scanning quality and the energy consumption, and increases the scanning speed. If `false` - mode is disabled.
|
|
331
|
+
* The default is `false`
|
|
332
|
+
* Android only.
|
|
333
|
+
*/
|
|
334
|
+
lowPowerMode?: boolean;
|
|
335
|
+
}
|
|
298
336
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
337
|
+
interface InternalBarcodeDetectionCommonParameters {
|
|
338
|
+
/**
|
|
339
|
+
* Accepted barcode formats
|
|
340
|
+
*/
|
|
341
|
+
barcodeFormats?: BarcodeFormat[];
|
|
342
|
+
/**
|
|
343
|
+
* An optional array of barcode document formats that act as a detection filter.
|
|
344
|
+
* By default all supported document formats will be detected.
|
|
345
|
+
*/
|
|
346
|
+
acceptedDocumentFormats?: BarcodeDocumentFormat[];
|
|
347
|
+
/**
|
|
348
|
+
* Optional minimum required text length of the detected barcode.
|
|
349
|
+
* The default is 0 (setting is turned off).
|
|
350
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
351
|
+
*/
|
|
352
|
+
minimumTextLength?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Optional maximum required text length of the detected barcode.
|
|
355
|
+
* The default is 0 (setting is turned off).
|
|
356
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
357
|
+
*/
|
|
358
|
+
maximumTextLength?: number;
|
|
359
|
+
/**
|
|
360
|
+
* Optional minimum required quiet zone on the barcode.
|
|
361
|
+
* Measured in modules (the size of minimal bar on the barcode).
|
|
362
|
+
* The default is 10.
|
|
363
|
+
* NOTE: This feature works on ITF and MSI Plessey barcodes only.
|
|
364
|
+
*/
|
|
365
|
+
minimum1DBarcodesQuietZone?: number;
|
|
366
|
+
/**
|
|
367
|
+
* With this option enabled, the scanner removes checks digits for UPC, EAN and MSI Plessey codes.
|
|
368
|
+
* Has no effect if both single and double digit MSI Plessey checksums are enabled.
|
|
369
|
+
* The default is `false`
|
|
370
|
+
*/
|
|
371
|
+
stripCheckDigits?: boolean;
|
|
372
|
+
}
|
|
306
373
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
374
|
+
export interface DetectBarcodesOnImageArguments
|
|
375
|
+
extends InternalBarcodeDetectionCommonParameters {
|
|
376
|
+
/**
|
|
377
|
+
* The input image file URI
|
|
378
|
+
*/
|
|
379
|
+
imageFileUri: string;
|
|
312
380
|
}
|