scandit-capacitor-datacapture-barcode 7.1.2 → 7.2.0-beta.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.
- package/README.md +3 -0
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +36 -3
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +81 -86
- package/dist/barcode.js +692 -755
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -103
- package/dist/dts/ts/Capacitor/BarcodeCountViewProxy.d.ts +5 -36
- package/dist/dts/ts/Capacitor/BarcodeFindViewProxy.d.ts +0 -2
- package/dist/dts/ts/Capacitor/Capacitor.d.ts +0 -9
- package/dist/dts/web.d.ts +1 -2
- package/dist/index.js +27 -453
- package/dist/index.js.map +1 -1
- package/ios/Plugin/Plugin.m +19 -21
- package/ios/Plugin/ScanditBarcodeCapture.swift +169 -155
- package/package.json +11 -7
- package/dist/dts/ts/Capacitor/BarcodeCaptureListenerProxy.d.ts +0 -21
- package/dist/dts/ts/Capacitor/BarcodeCountListenerProxy.d.ts +0 -21
- package/dist/dts/ts/Capacitor/BarcodeCountSessionProxy.d.ts +0 -7
- package/dist/dts/ts/Capacitor/BarcodeSelectionListenerProxy.d.ts +0 -17
- package/dist/dts/ts/Capacitor/BarcodeSelectionOverlayProxy.d.ts +0 -16
- package/dist/dts/ts/Capacitor/BarcodeSelectionProxy.d.ts +0 -14
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NativeCallResult } from 'scandit-datacapture-frameworks-core';
|
|
2
1
|
export { Barcode, Checksum, CompositeFlag, CompositeType, EncodingRange, LocalizedOnlyBarcode, Range, Symbology, SymbologyDescription, SymbologySettings, TrackedBarcode, TargetBarcode } from 'scandit-datacapture-frameworks-barcode';
|
|
3
2
|
export { BarcodeSelection, BarcodeSelectionSettings } from 'scandit-datacapture-frameworks-barcode';
|
|
4
3
|
export { BarcodeCapture, BarcodeCaptureSettings, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureSession } from 'scandit-datacapture-frameworks-barcode';
|
|
@@ -61,109 +60,10 @@ export interface ScanditBarcodePluginInterface {
|
|
|
61
60
|
initialize(coreDefaults: any): Promise<any>;
|
|
62
61
|
}
|
|
63
62
|
export interface ScanditBarcodeCountNativeInterface {
|
|
64
|
-
|
|
65
|
-
createView(data: any): Promise<void>;
|
|
66
|
-
removeView(): Promise<void>;
|
|
67
|
-
updateView(data: {
|
|
68
|
-
View: any;
|
|
69
|
-
}): Promise<void>;
|
|
70
|
-
updateMode(data: {
|
|
71
|
-
BarcodeCount: any;
|
|
72
|
-
}): Promise<void>;
|
|
73
|
-
setViewPositionAndSize(data: any): Promise<void>;
|
|
74
|
-
showView(): Promise<void>;
|
|
75
|
-
hideView(): Promise<void>;
|
|
76
|
-
registerBarcodeCountListener(): Promise<void>;
|
|
77
|
-
unregisterBarcodeCountListener(): Promise<void>;
|
|
78
|
-
registerBarcodeCountViewListener(): Promise<void>;
|
|
79
|
-
unregisterBarcodeCountViewListener(): Promise<void>;
|
|
80
|
-
registerBarcodeCountViewUiListener(): Promise<void>;
|
|
81
|
-
unregisterBarcodeCountViewUiListener(): Promise<void>;
|
|
82
|
-
setBarcodeCountCaptureList(data: {
|
|
83
|
-
TargetBarcodes: string;
|
|
84
|
-
}): Promise<void>;
|
|
85
|
-
resetBarcodeCountSession(): Promise<void>;
|
|
86
|
-
resetBarcodeCount(): Promise<void>;
|
|
87
|
-
startScanningPhase(): Promise<void>;
|
|
88
|
-
endScanningPhase(): Promise<void>;
|
|
89
|
-
clearBarcodeCountViewHighlights(): Promise<void>;
|
|
90
|
-
finishBarcodeCountViewListenerBrushForRecognizedBarcode(data: {
|
|
91
|
-
brush: string | null;
|
|
92
|
-
trackedBarcodeId: number;
|
|
93
|
-
}): Promise<void>;
|
|
94
|
-
finishBarcodeCountViewListenerBrushForRecognizedBarcodeNotInList(data: {
|
|
95
|
-
brush: string | null;
|
|
96
|
-
trackedBarcodeId: number;
|
|
97
|
-
}): Promise<void>;
|
|
98
|
-
finishBarcodeCountViewListenerOnBrushForUnrecognizedBarcode(data: {
|
|
99
|
-
brush: string | null;
|
|
100
|
-
trackedBarcodeId: number;
|
|
101
|
-
}): Promise<void>;
|
|
102
|
-
finishBarcodeCountViewListenerOnBrushForAcceptedBarcode(data: {
|
|
103
|
-
brush: string | null;
|
|
104
|
-
trackedBarcodeId: number;
|
|
105
|
-
}): Promise<void>;
|
|
106
|
-
finishBarcodeCountViewListenerOnBrushForRejectedBarcode(data: {
|
|
107
|
-
brush: string | null;
|
|
108
|
-
trackedBarcodeId: number;
|
|
109
|
-
}): Promise<void>;
|
|
110
|
-
getSpatialMap(): Promise<any>;
|
|
111
|
-
getSpatialMapWithHints(data: {
|
|
112
|
-
expectedNumberOfRows: number;
|
|
113
|
-
expectedNumberOfColumns: number;
|
|
114
|
-
}): Promise<any>;
|
|
115
|
-
setBarcodeCountModeEnabledState(data: {
|
|
116
|
-
enabled: boolean;
|
|
117
|
-
}): void;
|
|
118
|
-
updateBarcodeCountFeedback(data: {
|
|
119
|
-
feedbackJson: string;
|
|
120
|
-
}): void;
|
|
121
|
-
barcodeCountViewEnableHardwareTrigger(data: {
|
|
63
|
+
barcodeCountViewEnableHardwareTrigger({ hardwareTriggerKeyCode }: {
|
|
122
64
|
hardwareTriggerKeyCode: number | null;
|
|
123
65
|
}): Promise<void>;
|
|
124
66
|
}
|
|
125
|
-
export interface ScanditBarcodeSelectionNativeInterface {
|
|
126
|
-
selectAimedBarcode(): Promise<void>;
|
|
127
|
-
unselectBarcodes(barcodesStr: string): Promise<void>;
|
|
128
|
-
setSelectBarcodeEnabled(barcodeStr: string, _enabled: boolean): Promise<void>;
|
|
129
|
-
increaseCountForBarcodes(barcodeStr: string): Promise<void>;
|
|
130
|
-
subscribeBrushForAimedBarcode(): void;
|
|
131
|
-
subscribeBrushForTrackedBarcode(): void;
|
|
132
|
-
setBarcodeSelectionModeEnabledState(data: {
|
|
133
|
-
enabled: boolean;
|
|
134
|
-
}): void;
|
|
135
|
-
getCountForBarcodeInBarcodeSelectionSession(data: {
|
|
136
|
-
selectionIdentifier: string;
|
|
137
|
-
}): Promise<NativeCallResult>;
|
|
138
|
-
resetBarcodeSelectionSession(): Promise<void>;
|
|
139
|
-
subscribeBarcodeSelectionListener(): void;
|
|
140
|
-
finishBarcodeSelectionDidSelect(data: {
|
|
141
|
-
enabled: boolean;
|
|
142
|
-
}): void;
|
|
143
|
-
finishBarcodeSelectionDidUpdateSession(data: {
|
|
144
|
-
enabled: boolean;
|
|
145
|
-
}): void;
|
|
146
|
-
unsubscribeBarcodeSelectionListener(): void;
|
|
147
|
-
setTextForAimToSelectAutoHint(text: string): Promise<void>;
|
|
148
|
-
removeAimedBarcodeBrushProvider(): Promise<void>;
|
|
149
|
-
setAimedBarcodeBrushProvider(): Promise<void>;
|
|
150
|
-
finishBrushForAimedBarcode(brushStr: string | null, selectionIdentifier: string): Promise<void>;
|
|
151
|
-
removeTrackedBarcodeBrushProvider(): Promise<void>;
|
|
152
|
-
setTrackedBarcodeBrushProvider(): Promise<void>;
|
|
153
|
-
finishBrushForTrackedBarcode(brushStr: string | null, selectionIdentifier: string): Promise<void>;
|
|
154
|
-
updateBarcodeSelectionBasicOverlay(data: {
|
|
155
|
-
overlayJson: string;
|
|
156
|
-
}): Promise<void>;
|
|
157
|
-
updateBarcodeSelectionMode(data: {
|
|
158
|
-
modeJson: string;
|
|
159
|
-
}): Promise<void>;
|
|
160
|
-
applyBarcodeSelectionModeSettings(data: {
|
|
161
|
-
modeSettingsJson: string;
|
|
162
|
-
}): Promise<void>;
|
|
163
|
-
updateBarcodeSelectionFeedback(data: {
|
|
164
|
-
feedbackJson: string;
|
|
165
|
-
}): Promise<void>;
|
|
166
|
-
}
|
|
167
67
|
export interface ScanditBarcodeFindNativeInterface {
|
|
168
68
|
updateFindMode(data: {
|
|
169
69
|
BarcodeFind: string;
|
|
@@ -178,8 +78,6 @@ export interface ScanditBarcodeFindNativeInterface {
|
|
|
178
78
|
}): void;
|
|
179
79
|
registerBarcodeFindViewListener(): Promise<void>;
|
|
180
80
|
unregisterBarcodeFindViewListener(): Promise<void>;
|
|
181
|
-
barcodeFindViewOnPause(): Promise<void>;
|
|
182
|
-
barcodeFindViewOnResume(): Promise<void>;
|
|
183
81
|
barcodeFindViewStartSearching(): Promise<void>;
|
|
184
82
|
barcodeFindViewStopSearching(): Promise<void>;
|
|
185
83
|
barcodeFindViewPauseSearching(): Promise<void>;
|
|
@@ -1,38 +1,7 @@
|
|
|
1
1
|
import { BarcodeCountViewProxy } from 'scandit-datacapture-frameworks-barcode';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private exitButtonTappedListenerHandle;
|
|
8
|
-
private brushForRecognizedBarcodeListenerHandle;
|
|
9
|
-
private brushForRecognizedBarcodeNotInListListenerHandle;
|
|
10
|
-
private brushForAcceptedBarcodeListenerHandle;
|
|
11
|
-
private brushForRejectedBarcodeListenerHandle;
|
|
12
|
-
private filteredBarcodeTappedListenerHandle;
|
|
13
|
-
private recognizedBarcodeNotInListTappedListenerHandle;
|
|
14
|
-
private recognizedBarcodeTappedListenerHandle;
|
|
15
|
-
private acceptedBarcodeTappedListenerHandle;
|
|
16
|
-
private rejectedBarcodeTappedListenerHandle;
|
|
17
|
-
private captureListCompletedListenerHandle;
|
|
18
|
-
constructor();
|
|
19
|
-
enableHardwareTrigger(hardwareTriggerKeyCode: number | null): Promise<void>;
|
|
20
|
-
createView(_nativeView: BarcodeCountView, viewJson: string): Promise<void>;
|
|
21
|
-
removeView(): Promise<void>;
|
|
22
|
-
updateView(viewJson: string): Promise<void>;
|
|
23
|
-
clearHighlights(): Promise<void>;
|
|
24
|
-
finishBrushForRecognizedBarcodeCallback(_nativeView: BarcodeCountView, brushJson: string | null, trackedBarcodeIdentifier: number): Promise<void>;
|
|
25
|
-
finishBrushForRecognizedBarcodeNotInListCallback(_nativeView: BarcodeCountView, brushJson: string | null, trackedBarcodeIdentifier: number): Promise<void>;
|
|
26
|
-
finishBrushForAcceptedBarcodeCallback(_nativeView: BarcodeCountView, brushJson: string, trackedBarcodeIdentifier: number): Promise<void>;
|
|
27
|
-
finishBrushForRejectedBarcodeCallback(_nativeView: BarcodeCountView, brushJson: string, trackedBarcodeIdentifier: number): Promise<void>;
|
|
28
|
-
registerBarcodeCountViewListener(): Promise<void>;
|
|
29
|
-
registerBarcodeCountViewUiListener(): Promise<void>;
|
|
30
|
-
unregisterBarcodeCountViewListener(): Promise<void>;
|
|
31
|
-
unregisterBarcodeCountViewUiListener(): Promise<void>;
|
|
32
|
-
setPositionAndSize(top: number, left: number, width: number, height: number, shouldBeUnderWebView: boolean): Promise<void>;
|
|
33
|
-
show(): Promise<void>;
|
|
34
|
-
hide(): Promise<void>;
|
|
35
|
-
subscribeListeners(): Promise<void>;
|
|
36
|
-
unsubscribeListeners(): Promise<void>;
|
|
37
|
-
private notifyListeners;
|
|
2
|
+
import { AdvancedNativeProxy } from 'scandit-datacapture-frameworks-core';
|
|
3
|
+
export declare class NativeBarcodeCountViewProxy extends AdvancedNativeProxy implements Partial<BarcodeCountViewProxy> {
|
|
4
|
+
$enableBarcodeCountHardwareTrigger({ hardwareTriggerKeyCode }: {
|
|
5
|
+
hardwareTriggerKeyCode: number | null;
|
|
6
|
+
}): Promise<void>;
|
|
38
7
|
}
|
|
@@ -5,8 +5,6 @@ export declare class NativeBarcodeFindViewProxy extends BaseNativeProxy implemen
|
|
|
5
5
|
private subscriptionBarcodeFindViewListener;
|
|
6
6
|
showView(): Promise<void>;
|
|
7
7
|
hideView(): Promise<void>;
|
|
8
|
-
onPause(): Promise<void>;
|
|
9
|
-
onResume(): Promise<void>;
|
|
10
8
|
startSearching(): Promise<void>;
|
|
11
9
|
stopSearching(): Promise<void>;
|
|
12
10
|
pauseSearching(): Promise<void>;
|
|
@@ -3,9 +3,6 @@ import { Optional } from '../../definitions';
|
|
|
3
3
|
import { CapacitorNativeCaller } from 'scandit-capacitor-datacapture-core';
|
|
4
4
|
export declare enum CapacitorFunction {
|
|
5
5
|
GetDefaults = "getDefaults",
|
|
6
|
-
SubscribeBarcodeCaptureListener = "subscribeBarcodeCaptureListener",
|
|
7
|
-
FinishBarcodeCaptureDidScan = "finishBarcodeCaptureDidScan",
|
|
8
|
-
FinishBarcodeCaptureDidUpdateSession = "finishBarcodeCaptureDidUpdateSession",
|
|
9
6
|
SubscribeBarcodeBatchListener = "subscribeBarcodeBatchListener",
|
|
10
7
|
UnsubscribeBarcodeBatchListener = "unsubscribeBarcodeBatchListener",
|
|
11
8
|
FinishBarcodeBatchDidUpdateSession = "finishBarcodeBatchDidUpdateSession",
|
|
@@ -19,13 +16,7 @@ export declare enum CapacitorFunction {
|
|
|
19
16
|
SetAnchorForTrackedBarcode = "setAnchorForTrackedBarcode",
|
|
20
17
|
SetOffsetForTrackedBarcode = "setOffsetForTrackedBarcode",
|
|
21
18
|
ClearTrackedBarcodeViews = "clearTrackedBarcodeViews",
|
|
22
|
-
SubscribeBarcodeSelectionListener = "subscribeBarcodeSelectionListener",
|
|
23
|
-
GetCountForBarcodeInBarcodeSelectionSession = "getCountForBarcodeInBarcodeSelectionSession",
|
|
24
|
-
ResetBarcodeCaptureSession = "resetBarcodeCaptureSession",
|
|
25
19
|
ResetBarcodeBatchSession = "resetBarcodeBatchSession",
|
|
26
|
-
ResetBarcodeSelectionSession = "resetBarcodeSelectionSession",
|
|
27
|
-
ResetBarcodeSelection = "resetBarcodeSelection",
|
|
28
|
-
UnfreezeCameraInBarcodeSelection = "unfreezeCameraInBarcodeSelection",
|
|
29
20
|
SubscribeBarcodeCountListener = "registerBarcodeCountListener",
|
|
30
21
|
UnsubscribeBarcodeCountListener = "unregisterBarcodeCountListener",
|
|
31
22
|
ResetBarcodeCountSession = "resetBarcodeCountSession",
|
package/dist/dts/web.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ScanditBarcodeCountNativeInterface, ScanditBarcodePickNativeInterface, ScanditBarcodeFindNativeInterface, ScanditBarcodePluginInterface,
|
|
1
|
+
import { ScanditBarcodeCountNativeInterface, ScanditBarcodePickNativeInterface, ScanditBarcodeFindNativeInterface, ScanditBarcodePluginInterface, ScanditSparkScantNativeInterface } from './definitions';
|
|
2
2
|
export * from './definitions';
|
|
3
3
|
export declare class ScanditBarcodePluginImplementation implements ScanditBarcodePluginInterface {
|
|
4
4
|
initialize(coreDefaults: any): Promise<any>;
|
|
5
5
|
}
|
|
6
6
|
export declare const ScanditBarcodePlugin: ScanditBarcodePluginImplementation;
|
|
7
7
|
export declare const ScanditBarcodeCountPluginNative: ScanditBarcodeCountNativeInterface;
|
|
8
|
-
export declare const ScanditBarcodeSelectionPluginNative: ScanditBarcodeSelectionNativeInterface;
|
|
9
8
|
export declare const ScanditBarcodePickPluginNative: ScanditBarcodePickNativeInterface;
|
|
10
9
|
export declare const ScanditBarcodeFindPluginNative: ScanditBarcodeFindNativeInterface;
|
|
11
10
|
export declare const ScanditSparkScanPluginNative: ScanditSparkScantNativeInterface;
|