scandit-capacitor-datacapture-barcode 7.0.2 → 7.1.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.
@@ -1,3 +1,4 @@
1
+ import { NativeCallResult } from 'scandit-datacapture-frameworks-core';
1
2
  export { Barcode, Checksum, CompositeFlag, CompositeType, EncodingRange, LocalizedOnlyBarcode, Range, Symbology, SymbologyDescription, SymbologySettings, TrackedBarcode, TargetBarcode } from 'scandit-datacapture-frameworks-barcode';
2
3
  export { BarcodeSelection, BarcodeSelectionSettings } from 'scandit-datacapture-frameworks-barcode';
3
4
  export { BarcodeCapture, BarcodeCaptureSettings, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureSession } from 'scandit-datacapture-frameworks-barcode';
@@ -11,7 +12,7 @@ export { BarcodeCountView } from './ts/BarcodeCountView';
11
12
  export { BarcodeCountToolbarSettings } from 'scandit-datacapture-frameworks-barcode';
12
13
  export { BarcodeCountCaptureList, BarcodeCountCaptureListSession } from 'scandit-datacapture-frameworks-barcode';
13
14
  export { BarcodeFilterSettings, BarcodeFilterHighlightType, BarcodeFilterHighlightSettingsBrush } from 'scandit-datacapture-frameworks-barcode';
14
- export { BarcodeBatchBasicOverlayListener, BarcodeSelectionListener, BarcodeCountCaptureListListener } from 'scandit-datacapture-frameworks-barcode';
15
+ export { BarcodeBatchBasicOverlayListener, BarcodeSelectionListener, BarcodeCountCaptureListListener, BarcodeCountNotInListActionSettings } from 'scandit-datacapture-frameworks-barcode';
15
16
  export { BarcodeSelectionType, BarcodeCountListener, BarcodeCaptureListener, BarcodeFilterHighlightSettings } from 'scandit-datacapture-frameworks-barcode';
16
17
  export { BarcodeBatchListener, BarcodeSelectionStrategy, StructuredAppendData } from 'scandit-datacapture-frameworks-barcode';
17
18
  export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker } from 'scandit-datacapture-frameworks-barcode';
@@ -62,6 +63,7 @@ export interface ScanditBarcodePluginInterface {
62
63
  export interface ScanditBarcodeCountNativeInterface {
63
64
  finishBarcodeCountListenerOnScan(): Promise<void>;
64
65
  createView(data: any): Promise<void>;
66
+ removeView(): Promise<void>;
65
67
  updateView(data: {
66
68
  View: any;
67
69
  }): Promise<void>;
@@ -97,6 +99,14 @@ export interface ScanditBarcodeCountNativeInterface {
97
99
  brush: string | null;
98
100
  trackedBarcodeId: number;
99
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>;
100
110
  getSpatialMap(): Promise<any>;
101
111
  getSpatialMapWithHints(data: {
102
112
  expectedNumberOfRows: number;
@@ -108,6 +118,9 @@ export interface ScanditBarcodeCountNativeInterface {
108
118
  updateBarcodeCountFeedback(data: {
109
119
  feedbackJson: string;
110
120
  }): void;
121
+ barcodeCountViewEnableHardwareTrigger(data: {
122
+ hardwareTriggerKeyCode: number | null;
123
+ }): Promise<void>;
111
124
  }
112
125
  export interface ScanditBarcodeSelectionNativeInterface {
113
126
  selectAimedBarcode(): Promise<void>;
@@ -121,9 +134,7 @@ export interface ScanditBarcodeSelectionNativeInterface {
121
134
  }): void;
122
135
  getCountForBarcodeInBarcodeSelectionSession(data: {
123
136
  selectionIdentifier: string;
124
- }): Promise<{
125
- data: number;
126
- }>;
137
+ }): Promise<NativeCallResult>;
127
138
  resetBarcodeSelectionSession(): Promise<void>;
128
139
  subscribeBarcodeSelectionListener(): void;
129
140
  finishBarcodeSelectionDidSelect(data: {
@@ -219,6 +230,7 @@ export interface ScanditBarcodePickNativeInterface {
219
230
  createPickView(data: {
220
231
  json: string;
221
232
  }): Promise<void>;
233
+ removePickView(): Promise<void>;
222
234
  updatePickView(data: {
223
235
  json: string;
224
236
  }): Promise<void>;
@@ -1,5 +1,5 @@
1
- import { BarcodeCount } from 'scandit-datacapture-frameworks-barcode';
2
- import { Anchor, DefaultSerializeable } from 'scandit-datacapture-frameworks-core';
1
+ import { BarcodeCount, BarcodeCountNotInListActionSettings, TrackedBarcode } from 'scandit-datacapture-frameworks-barcode';
2
+ import { Anchor } from 'scandit-datacapture-frameworks-core';
3
3
  import { BarcodeCountViewListener, BarcodeCountViewUiListener, BarcodeCountToolbarSettings } from 'scandit-datacapture-frameworks-barcode';
4
4
  import { Brush } from 'scandit-datacapture-frameworks-core';
5
5
  import { BarcodeFilterHighlightSettings } from 'scandit-datacapture-frameworks-barcode';
@@ -9,7 +9,12 @@ export declare enum BarcodeCountViewStyle {
9
9
  Icon = "icon",
10
10
  Dot = "dot"
11
11
  }
12
- export declare class BarcodeCountView extends DefaultSerializeable {
12
+ export declare class BarcodeCountView {
13
+ static get defaultRecognizedBrush(): Brush;
14
+ static get defaultNotInListBrush(): Brush;
15
+ static get defaultAcceptedBrush(): Brush;
16
+ static get defaultRejectedBrush(): Brush;
17
+ static get hardwareTriggerSupported(): boolean;
13
18
  get uiListener(): BarcodeCountViewUiListener | null;
14
19
  set uiListener(listener: BarcodeCountViewUiListener | null);
15
20
  get listener(): BarcodeCountViewListener | null;
@@ -18,6 +23,8 @@ export declare class BarcodeCountView extends DefaultSerializeable {
18
23
  set shouldShowUserGuidanceView(newValue: boolean);
19
24
  get shouldShowListButton(): boolean;
20
25
  set shouldShowListButton(newValue: boolean);
26
+ get shouldDisableModeOnExitButtonTapped(): boolean;
27
+ set shouldDisableModeOnExitButtonTapped(newValue: boolean);
21
28
  get shouldShowExitButton(): boolean;
22
29
  set shouldShowExitButton(newValue: boolean);
23
30
  get shouldShowShutterButton(): boolean;
@@ -34,15 +41,14 @@ export declare class BarcodeCountView extends DefaultSerializeable {
34
41
  set shouldShowToolbar(newValue: boolean);
35
42
  get shouldShowScanAreaGuides(): boolean;
36
43
  set shouldShowScanAreaGuides(newValue: boolean);
37
- static get defaultRecognizedBrush(): Brush;
38
- static get defaultUnrecognizedBrush(): Brush;
39
- static get defaultNotInListBrush(): Brush;
40
44
  get recognizedBrush(): Brush | null;
41
45
  set recognizedBrush(newValue: Brush | null);
42
- get unrecognizedBrush(): Brush | null;
43
- set unrecognizedBrush(newValue: Brush | null);
44
46
  get notInListBrush(): Brush | null;
45
47
  set notInListBrush(newValue: Brush | null);
48
+ get acceptedBrush(): Brush | null;
49
+ set acceptedBrush(newValue: Brush | null);
50
+ get rejectedBrush(): Brush | null;
51
+ set rejectedBrush(newValue: Brush | null);
46
52
  get filterSettings(): BarcodeFilterHighlightSettings | null;
47
53
  set filterSettings(newValue: BarcodeFilterHighlightSettings | null);
48
54
  get style(): BarcodeCountViewStyle;
@@ -96,67 +102,19 @@ export declare class BarcodeCountView extends DefaultSerializeable {
96
102
  set textForMoveFurtherAndRescanHint(newValue: string);
97
103
  get shouldShowListProgressBar(): boolean;
98
104
  set shouldShowListProgressBar(newValue: boolean);
99
- get textForUnrecognizedBarcodesDetectedHint(): string;
100
- set textForUnrecognizedBarcodesDetectedHint(newValue: string);
101
105
  get shouldShowTorchControl(): boolean;
102
106
  set shouldShowTorchControl(newValue: boolean);
103
107
  get torchControlPosition(): Anchor;
104
108
  set torchControlPosition(newValue: Anchor);
105
- get tapToUncountEnabled(): boolean;
106
- set tapToUncountEnabled(newValue: boolean);
107
109
  get textForTapToUncountHint(): string;
108
110
  set textForTapToUncountHint(newValue: string);
109
- private _barcodeCount;
110
- private _context;
111
- private viewProxy;
112
- private _uiListener;
113
- private _listener;
114
- private _shouldShowUserGuidanceView;
115
- private _shouldShowListButton;
116
- private _shouldShowExitButton;
117
- private _shouldShowShutterButton;
118
- private _shouldShowHints;
119
- private _shouldShowClearHighlightsButton;
120
- private _shouldShowSingleScanButton;
121
- private _shouldShowFloatingShutterButton;
122
- private _shouldShowToolbar;
123
- private _shouldShowScanAreaGuides;
124
- private _recognizedBrush;
125
- private _unrecognizedBrush;
126
- private _notInListBrush;
127
- private _filterSettings;
128
- private _style;
129
- private _listButtonAccessibilityHint;
130
- private _listButtonAccessibilityLabel;
131
- private _listButtonContentDescription;
132
- private _exitButtonAccessibilityHint;
133
- private _exitButtonAccessibilityLabel;
134
- private _exitButtonContentDescription;
135
- private _shutterButtonAccessibilityHint;
136
- private _shutterButtonAccessibilityLabel;
137
- private _shutterButtonContentDescription;
138
- private _floatingShutterButtonAccessibilityHint;
139
- private _floatingShutterButtonAccessibilityLabel;
140
- private _floatingShutterButtonContentDescription;
141
- private _clearHighlightsButtonAccessibilityHint;
142
- private _clearHighlightsButtonAccessibilityLabel;
143
- private _clearHighlightsButtonContentDescription;
144
- private _singleScanButtonAccessibilityHint;
145
- private _singleScanButtonAccessibilityLabel;
146
- private _singleScanButtonContentDescription;
147
- private _clearHighlightsButtonText;
148
- private _exitButtonText;
149
- private _textForTapShutterToScanHint;
150
- private _textForScanningHint;
151
- private _textForMoveCloserAndRescanHint;
152
- private _textForMoveFurtherAndRescanHint;
153
- private _shouldShowListProgressBar;
154
- private _textForUnrecognizedBarcodesDetectedHint;
155
- private _toolbarSettings;
156
- private _shouldShowTorchControl;
157
- private _torchControlPosition;
158
- private _tapToUncountEnabled;
159
- private _textForTapToUncountHint;
111
+ get tapToUncountEnabled(): boolean;
112
+ set tapToUncountEnabled(newValue: boolean);
113
+ get barcodeNotInListActionSettings(): BarcodeCountNotInListActionSettings;
114
+ set barcodeNotInListActionSettings(newValue: BarcodeCountNotInListActionSettings);
115
+ get hardwareTriggerEnabled(): boolean;
116
+ set hardwareTriggerEnabled(newValue: boolean);
117
+ private baseBarcodeCountView;
160
118
  private htmlElement;
161
119
  private _htmlElementState;
162
120
  private set htmlElementState(value);
@@ -173,17 +131,21 @@ export declare class BarcodeCountView extends DefaultSerializeable {
173
131
  private orientationChangeListener;
174
132
  clearHighlights(): Promise<void>;
175
133
  setToolbarSettings(settings: BarcodeCountToolbarSettings): void;
176
- private updateNative;
177
134
  connectToElement(element: HTMLElement): void;
178
135
  detachFromElement(): void;
179
136
  setFrame(frame: Rect, isUnderContent?: boolean): Promise<void>;
180
137
  show(): Promise<void>;
181
138
  hide(): Promise<void>;
139
+ setBrushForRecognizedBarcode(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
140
+ setBrushForRecognizedBarcodeNotInList(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
141
+ setBrushForAcceptedBarcode(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
142
+ setBrushForRejectedBarcode(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
143
+ enableHardwareTrigger(hardwareTriggerKeyCode: number | null): Promise<void>;
182
144
  private subscribeToChangesOnHTMLElement;
183
145
  private unsubscribeFromChangesOnHTMLElement;
184
146
  private elementDidChange;
185
147
  private updatePositionAndSize;
186
148
  private _show;
187
149
  private _hide;
188
- toJSON(): object;
150
+ private toJSON;
189
151
  }
@@ -15,6 +15,7 @@ export declare class BarcodeFindView {
15
15
  private orientationChangeListener;
16
16
  get barcodeFindViewUiListener(): BarcodeFindViewUiListener | null;
17
17
  set barcodeFindViewUiListener(value: BarcodeFindViewUiListener | null);
18
+ static get hardwareTriggerSupported(): boolean;
18
19
  get shouldShowUserGuidanceView(): boolean;
19
20
  set shouldShowUserGuidanceView(value: boolean);
20
21
  get shouldShowHints(): boolean;
@@ -29,6 +30,8 @@ export declare class BarcodeFindView {
29
30
  set shouldShowProgressBar(value: boolean);
30
31
  get shouldShowTorchControl(): boolean;
31
32
  set shouldShowTorchControl(value: boolean);
33
+ get shouldShowZoomControl(): boolean;
34
+ set shouldShowZoomControl(value: boolean);
32
35
  get torchControlPosition(): Anchor;
33
36
  set torchControlPosition(value: Anchor);
34
37
  get textForCollapseCardsButton(): string | null;
@@ -1,9 +1,7 @@
1
1
  import { BarcodeCountSessionProxy } from 'scandit-datacapture-frameworks-barcode';
2
+ import { NativeCallResult } from 'scandit-datacapture-frameworks-core';
2
3
  export declare class NativeBarcodeCountSessionProxy implements BarcodeCountSessionProxy {
3
- getSpatialMap(): Promise<string | null>;
4
- getSpatialMapWithHints(expectedNumberOfRows: number, expectedNumberOfColumns: number): Promise<string | null>;
4
+ getSpatialMap(): Promise<NativeCallResult | null>;
5
+ getSpatialMapWithHints(expectedNumberOfRows: number, expectedNumberOfColumns: number): Promise<NativeCallResult | null>;
5
6
  resetSession(): Promise<void>;
6
7
  }
7
- export interface SpatialDataResult {
8
- data: string | null;
9
- }
@@ -1,40 +1,38 @@
1
+ import { BarcodeCountViewProxy } from 'scandit-datacapture-frameworks-barcode';
1
2
  import { BarcodeCountView } from '../BarcodeCountView';
2
- import { BarcodeCountViewListener, BarcodeCountViewUiListener } from 'scandit-datacapture-frameworks-barcode';
3
- export declare class BarcodeCountViewProxy {
4
- private view;
5
- private barcodeCount;
6
- private isInListenerCallback;
3
+ import { BaseNativeProxy } from 'scandit-datacapture-frameworks-core';
4
+ export declare class NativeBarcodeCountViewProxy extends BaseNativeProxy implements BarcodeCountViewProxy {
7
5
  private singleScanButtonTappedListenerHandle;
8
6
  private listButtonTappedListenerHandle;
9
7
  private exitButtonTappedListenerHandle;
10
8
  private brushForRecognizedBarcodeListenerHandle;
11
9
  private brushForRecognizedBarcodeNotInListListenerHandle;
12
- private brushForUnrecognizedBarcodeListenerHandle;
10
+ private brushForAcceptedBarcodeListenerHandle;
11
+ private brushForRejectedBarcodeListenerHandle;
13
12
  private filteredBarcodeTappedListenerHandle;
14
13
  private recognizedBarcodeNotInListTappedListenerHandle;
15
14
  private recognizedBarcodeTappedListenerHandle;
16
- private unrecognizedBarcodeTappedListenerHandle;
15
+ private acceptedBarcodeTappedListenerHandle;
16
+ private rejectedBarcodeTappedListenerHandle;
17
17
  private captureListCompletedListenerHandle;
18
- static forBarcodeCount(view: BarcodeCountView): BarcodeCountViewProxy;
19
- private constructor();
20
- update(): Promise<void>;
21
- private create;
22
- dispose(): void;
23
- setUiListener(listener: BarcodeCountViewUiListener | null): void;
24
- setListener(listener: BarcodeCountViewListener | null): void;
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>;
25
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>;
26
32
  setPositionAndSize(top: number, left: number, width: number, height: number, shouldBeUnderWebView: boolean): Promise<void>;
27
33
  show(): Promise<void>;
28
34
  hide(): Promise<void>;
29
- private subscribeListeners;
30
- private unsubscribeListeners;
31
- private singleScanButtonTappedHandler;
32
- private listButtonTappedHandler;
33
- private exitButtonTappedHandler;
34
- private filteredBarcodeTappedHandler;
35
- private recognizedBarcodeNotInListTappedHandler;
36
- private recognizedBarcodeTappedHandler;
37
- private unrecognizedBarcodeTappedHandler;
38
- private captureListCompletedHandler;
35
+ subscribeListeners(): Promise<void>;
36
+ unsubscribeListeners(): Promise<void>;
39
37
  private notifyListeners;
40
38
  }
@@ -1,7 +1,8 @@
1
1
  import { BarcodeGeneratorProxy } from 'scandit-datacapture-frameworks-barcode';
2
+ import { NativeCallResult } from 'scandit-datacapture-frameworks-core';
2
3
  export declare class NativeBarcodeGeneratorProxy implements BarcodeGeneratorProxy {
3
4
  create(barcodeGeneratorJson: string): Promise<void>;
4
5
  dispose(generatorId: string): Promise<void>;
5
- generateFromBase64EncodedData(generatorId: string, data: string, imageWidth: number): Promise<string>;
6
- generate(generatorId: string, text: string, imageWidth: number): Promise<string>;
6
+ generateFromBase64EncodedData(generatorId: string, data: string, imageWidth: number): Promise<NativeCallResult>;
7
+ generate(generatorId: string, text: string, imageWidth: number): Promise<NativeCallResult>;
7
8
  }
@@ -21,6 +21,7 @@ export declare class NativeBarcodePickViewProxy extends BaseNativeProxy implemen
21
21
  viewFreeze(): Promise<void>;
22
22
  finishPickAction(code: string, result: boolean): Promise<void>;
23
23
  createView(_: number | null, json: string): Promise<void>;
24
+ removeView(): Promise<void>;
24
25
  updateView(json: string): Promise<void>;
25
26
  setPositionAndSize(top: number, left: number, width: number, height: number, shouldBeUnderWebView: boolean): Promise<void>;
26
27
  addActionListener(): Promise<void>;
@@ -1,10 +1,11 @@
1
+ import { NativeCallResult } from 'scandit-datacapture-frameworks-core';
1
2
  import { BarcodeSelectionListenerProxy } from 'scandit-datacapture-frameworks-barcode';
2
3
  export declare class NativeBarcodeSelectionListenerProxy implements BarcodeSelectionListenerProxy {
3
4
  private static exec;
4
5
  private eventEmitter;
5
6
  isModeEnabled: () => boolean;
6
7
  constructor();
7
- getCount(selectionIdentifier: string): Promise<number>;
8
+ getCount(selectionIdentifier: string): Promise<NativeCallResult>;
8
9
  resetSession(): Promise<void>;
9
10
  registerListenerForEvents(): void;
10
11
  subscribeDidUpdateSelectionListener(): void;
@@ -1,5 +1,6 @@
1
1
  import { BarcodeDefaults } from 'scandit-datacapture-frameworks-barcode';
2
2
  import { Optional } from '../../definitions';
3
+ import { CapacitorNativeCaller } from 'scandit-capacitor-datacapture-core';
3
4
  export declare enum CapacitorFunction {
4
5
  GetDefaults = "getDefaults",
5
6
  SubscribeBarcodeCaptureListener = "subscribeBarcodeCaptureListener",
@@ -57,3 +58,4 @@ export interface CapacitorWindow extends Window {
57
58
  Capacitor: any;
58
59
  }
59
60
  export declare const getDefaults: () => Promise<BarcodeDefaults>;
61
+ export declare const capacitorBarcodeNativeCaller: CapacitorNativeCaller;