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
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SymbologyDescription, BaseBarcodeCountView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeFindView, BaseSparkScanView, BaseBarcodePickView, BarcodeBatchAdvancedOverlayListenerEvents, getBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeCaptureDefaults, loadBarcodeBatchDefaults, loadBarcodeSelectionDefaults, loadBarcodeCountDefaults, loadBarcodePickDefaults, loadBarcodeFindDefaults, loadSparkScanDefaults, getBarcodeDefaults, ArucoDictionary, ArucoDictionaryPreset, Barcode, BatterySavingMode, Checksum, CompositeFlag, CompositeType, Dot, DotWithIcons, Symbology, SymbologySettings, BarcodeCapture, BarcodeCaptureSettings, BarcodeCaptureSession, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureFeedback, BarcodeSelection, BarcodeSelectionSettings, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionTapBehavior, BarcodeSelectionTypeName, BarcodeSelectionTapSelection, BarcodeBatch, BarcodeBatchSession, BarcodeBatchScenario, BarcodeBatchSettings, TrackedBarcode, TargetBarcode, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, EncodingRange, LocalizedOnlyBarcode, Range, BarcodeCount, BarcodeCountFeedback, BarcodeCountSession, BarcodeCountSettings, BarcodeCountViewStyle as BarcodeCountViewStyle$1, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountToolbarSettings, BarcodeCountNotInListActionSettings, BarcodeFilterSettings, BarcodeFilterHighlightType, BarcodeFilterHighlightSettingsBrush, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSettings, BarcodeFindViewSettings, BarcodePick, BarcodePickActionCallback, BarcodePickEvents, BarcodePickState, BarcodePickSettings, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickAsyncMapperProductProvider, BarcodePickIconStyle, BarcodePickStatusIconSettings, BarcodePickScanningSession, BarcodePickViewListenerEvents, BarcodePickViewSettings, BarcodePickViewUiListenerEvents, Rectangular, RectangularWithIcons, SparkScan, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewState, SparkScanViewSettings, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanBarcodeErrorFeedback, BarcodeGenerator, BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, Code128BarcodeGeneratorBuilder, Ean13BarcodeGeneratorBuilder, UpcaBarcodeGeneratorBuilder, InterleavedTwoOfFiveBarcodeGeneratorBuilder, QrCodeBarcodeGeneratorBuilder, DataMatrixBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, AztecBarcodeGeneratorBuilder,
|
|
1
|
+
import { SymbologyDescription, BaseBarcodeCountView, BaseBarcodeBatchAdvancedOverlay, BaseBarcodeFindView, BaseSparkScanView, BaseBarcodePickView, BarcodeBatchAdvancedOverlayListenerEvents, getBarcodeCountDefaults, loadBarcodeDefaults, loadBarcodeCaptureDefaults, loadBarcodeBatchDefaults, loadBarcodeSelectionDefaults, loadBarcodeCountDefaults, loadBarcodePickDefaults, loadBarcodeFindDefaults, loadSparkScanDefaults, getBarcodeDefaults, BarcodeCaptureListenerEvents, BarcodeSelectionListenerEvents, BarcodeSelectionBrushProviderEvents, BarcodeCountListenerEvents, BarcodeCountViewEvents, ArucoDictionary, ArucoDictionaryPreset, Barcode, BatterySavingMode, Checksum, CompositeFlag, CompositeType, Dot, DotWithIcons, Symbology, SymbologySettings, BarcodeCapture, BarcodeCaptureSettings, BarcodeCaptureSession, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureFeedback, BarcodeSelection, BarcodeSelectionSettings, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionTapBehavior, BarcodeSelectionTypeName, BarcodeSelectionTapSelection, BarcodeBatch, BarcodeBatchSession, BarcodeBatchScenario, BarcodeBatchSettings, TrackedBarcode, TargetBarcode, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, EncodingRange, LocalizedOnlyBarcode, Range, BarcodeCount, BarcodeCountFeedback, BarcodeCountSession, BarcodeCountSettings, BarcodeCountViewStyle as BarcodeCountViewStyle$1, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountToolbarSettings, BarcodeCountNotInListActionSettings, BarcodeFilterSettings, BarcodeFilterHighlightType, BarcodeFilterHighlightSettingsBrush, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSettings, BarcodeFindViewSettings, BarcodePick, BarcodePickActionCallback, BarcodePickEvents, BarcodePickState, BarcodePickSettings, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickAsyncMapperProductProvider, BarcodePickIconStyle, BarcodePickStatusIconSettings, BarcodePickScanningSession, BarcodePickViewListenerEvents, BarcodePickViewSettings, BarcodePickViewUiListenerEvents, Rectangular, RectangularWithIcons, SparkScan, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewState, SparkScanViewSettings, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanBarcodeErrorFeedback, BarcodeGenerator, BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, Code128BarcodeGeneratorBuilder, Ean13BarcodeGeneratorBuilder, UpcaBarcodeGeneratorBuilder, InterleavedTwoOfFiveBarcodeGeneratorBuilder, QrCodeBarcodeGeneratorBuilder, DataMatrixBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, AztecBarcodeGeneratorBuilder, BarcodeBatchListenerEvents, BarcodeBatchBasicOverlayListenerEvents, BarcodeFindListenerEvents, BarcodeFindViewEvents, SparkScanListenerEvents, BarcodePickListenerEvents, SparkScanViewEvents, SparkScanFeedbackDelegateEvents } from './barcode.js';
|
|
2
2
|
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayStyle, BarcodeBatchScenario, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureOverlay, BarcodeCaptureOverlayStyle, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSettings, BarcodeCountToolbarSettings, BarcodeCountViewStyle, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindSettings, BarcodeFindViewSettings, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodePick, BarcodePickActionCallback, BarcodePickAsyncMapperProductProvider, BarcodePickIconStyle, BarcodePickProduct, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickViewSettings, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BatterySavingMode, Checksum, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewSettings, SparkScanViewState, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TrackedBarcode, UpcaBarcodeGeneratorBuilder } from './barcode.js';
|
|
3
|
-
import { DefaultSerializeable, Size, HTMLElementState, HtmlElementPosition, HtmlElementSize, ignoreFromSerialization, FactoryMaker, BaseNativeProxy } from 'scandit-capacitor-datacapture-core/dist/core';
|
|
3
|
+
import { DefaultSerializeable, Size, HTMLElementState, HtmlElementPosition, HtmlElementSize, ignoreFromSerialization, FactoryMaker, BaseNativeProxy, createAdvancedNativeProxy, createAdvancedNativeFromCtorProxy, AdvancedNativeProxy } from 'scandit-capacitor-datacapture-core/dist/core';
|
|
4
4
|
import { CapacitorNativeCaller, capacitorExec, CapacitorCore } from 'scandit-capacitor-datacapture-core';
|
|
5
5
|
|
|
6
6
|
class TrackedBarcodeView extends DefaultSerializeable {
|
|
@@ -1919,9 +1919,6 @@ registerPlugin('CapacitorHttp', {
|
|
|
1919
1919
|
var CapacitorFunction;
|
|
1920
1920
|
(function (CapacitorFunction) {
|
|
1921
1921
|
CapacitorFunction["GetDefaults"] = "getDefaults";
|
|
1922
|
-
CapacitorFunction["SubscribeBarcodeCaptureListener"] = "subscribeBarcodeCaptureListener";
|
|
1923
|
-
CapacitorFunction["FinishBarcodeCaptureDidScan"] = "finishBarcodeCaptureDidScan";
|
|
1924
|
-
CapacitorFunction["FinishBarcodeCaptureDidUpdateSession"] = "finishBarcodeCaptureDidUpdateSession";
|
|
1925
1922
|
CapacitorFunction["SubscribeBarcodeBatchListener"] = "subscribeBarcodeBatchListener";
|
|
1926
1923
|
CapacitorFunction["UnsubscribeBarcodeBatchListener"] = "unsubscribeBarcodeBatchListener";
|
|
1927
1924
|
CapacitorFunction["FinishBarcodeBatchDidUpdateSession"] = "finishBarcodeBatchDidUpdateSession";
|
|
@@ -1935,13 +1932,7 @@ var CapacitorFunction;
|
|
|
1935
1932
|
CapacitorFunction["SetAnchorForTrackedBarcode"] = "setAnchorForTrackedBarcode";
|
|
1936
1933
|
CapacitorFunction["SetOffsetForTrackedBarcode"] = "setOffsetForTrackedBarcode";
|
|
1937
1934
|
CapacitorFunction["ClearTrackedBarcodeViews"] = "clearTrackedBarcodeViews";
|
|
1938
|
-
CapacitorFunction["SubscribeBarcodeSelectionListener"] = "subscribeBarcodeSelectionListener";
|
|
1939
|
-
CapacitorFunction["GetCountForBarcodeInBarcodeSelectionSession"] = "getCountForBarcodeInBarcodeSelectionSession";
|
|
1940
|
-
CapacitorFunction["ResetBarcodeCaptureSession"] = "resetBarcodeCaptureSession";
|
|
1941
1935
|
CapacitorFunction["ResetBarcodeBatchSession"] = "resetBarcodeBatchSession";
|
|
1942
|
-
CapacitorFunction["ResetBarcodeSelectionSession"] = "resetBarcodeSelectionSession";
|
|
1943
|
-
CapacitorFunction["ResetBarcodeSelection"] = "resetBarcodeSelection";
|
|
1944
|
-
CapacitorFunction["UnfreezeCameraInBarcodeSelection"] = "unfreezeCameraInBarcodeSelection";
|
|
1945
1936
|
CapacitorFunction["SubscribeBarcodeCountListener"] = "registerBarcodeCountListener";
|
|
1946
1937
|
CapacitorFunction["UnsubscribeBarcodeCountListener"] = "unregisterBarcodeCountListener";
|
|
1947
1938
|
CapacitorFunction["ResetBarcodeCountSession"] = "resetBarcodeCountSession";
|
|
@@ -1991,78 +1982,7 @@ const getDefaults = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
1991
1982
|
});
|
|
1992
1983
|
// To circumvent a circular dependency
|
|
1993
1984
|
SymbologyDescription.defaults = () => Capacitor.defaults;
|
|
1994
|
-
new CapacitorNativeCaller(Capacitor.pluginName);
|
|
1995
|
-
|
|
1996
|
-
class NativeBarcodeCaptureListenerProxy {
|
|
1997
|
-
constructor() {
|
|
1998
|
-
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
1999
|
-
this.notifyListeners = this.notifyListeners.bind(this);
|
|
2000
|
-
}
|
|
2001
|
-
updateBarcodeCaptureMode(modeJson) {
|
|
2002
|
-
return window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.UpdateBarcodeCaptureMode]({
|
|
2003
|
-
modeJson: modeJson
|
|
2004
|
-
});
|
|
2005
|
-
}
|
|
2006
|
-
applyBarcodeCaptureModeSettings(newSettingsJson) {
|
|
2007
|
-
return window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.ApplyBarcodeCaptureModeSettings]({
|
|
2008
|
-
modeSettingsJson: newSettingsJson
|
|
2009
|
-
});
|
|
2010
|
-
}
|
|
2011
|
-
updateBarcodeCaptureOverlay(overlayJson) {
|
|
2012
|
-
return window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.UpdateBarcodeCaptureOverlay]({
|
|
2013
|
-
overlayJson: overlayJson
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
resetSession() {
|
|
2017
|
-
return window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.ResetBarcodeCaptureSession]();
|
|
2018
|
-
}
|
|
2019
|
-
registerListenerForEvents() {
|
|
2020
|
-
window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.SubscribeBarcodeCaptureListener]();
|
|
2021
|
-
}
|
|
2022
|
-
unregisterListenerForEvents() {
|
|
2023
|
-
this.didScanListenerHandler.remove();
|
|
2024
|
-
this.didUpdateSessionListenerHandler.remove();
|
|
2025
|
-
}
|
|
2026
|
-
setModeEnabledState(enabled) {
|
|
2027
|
-
window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.SetBarcodeCaptureModeEnabledState]({ 'enabled': enabled });
|
|
2028
|
-
}
|
|
2029
|
-
subscribeDidUpdateSessionListener() {
|
|
2030
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2031
|
-
this.didUpdateSessionListenerHandler = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2032
|
-
.addListener(BarcodeCaptureListenerEvents.didUpdateSession, this.notifyListeners);
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
subscribeDidScanListener() {
|
|
2036
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2037
|
-
this.didScanListenerHandler = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2038
|
-
.addListener(BarcodeCaptureListenerEvents.didScan, this.notifyListeners);
|
|
2039
|
-
});
|
|
2040
|
-
}
|
|
2041
|
-
finishDidUpdateSessionCallback(isFinished) {
|
|
2042
|
-
window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.FinishBarcodeCaptureDidUpdateSession]({ 'enabled': isFinished });
|
|
2043
|
-
}
|
|
2044
|
-
finishDidScanCallback(isFinished) {
|
|
2045
|
-
window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.FinishBarcodeCaptureDidScan]({ 'enabled': isFinished });
|
|
2046
|
-
}
|
|
2047
|
-
emitInCallback(enabled) {
|
|
2048
|
-
this.eventEmitter.emit(BarcodeCaptureListenerEvents.inCallback, enabled);
|
|
2049
|
-
}
|
|
2050
|
-
notifyListeners(event) {
|
|
2051
|
-
const done = () => {
|
|
2052
|
-
this.emitInCallback(false);
|
|
2053
|
-
return { enabled: this.isModeEnabled() };
|
|
2054
|
-
};
|
|
2055
|
-
this.emitInCallback(true);
|
|
2056
|
-
if (!event) {
|
|
2057
|
-
// The event could be undefined/null in case the plugin result did not pass a "message",
|
|
2058
|
-
// which could happen e.g. in case of "ok" results, which could signal e.g. successful
|
|
2059
|
-
// listener subscriptions.
|
|
2060
|
-
return done();
|
|
2061
|
-
}
|
|
2062
|
-
this.eventEmitter.emit(event.name, event.data);
|
|
2063
|
-
return done();
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
1985
|
+
const capacitorBarcodeNativeCaller = new CapacitorNativeCaller(Capacitor.pluginName);
|
|
2066
1986
|
|
|
2067
1987
|
class NativeBarcodeBatchListenerProxy {
|
|
2068
1988
|
constructor() {
|
|
@@ -2202,142 +2122,6 @@ class NativeBarcodeBatchAdvancedOverlayProxy extends BaseNativeProxy {
|
|
|
2202
2122
|
}
|
|
2203
2123
|
NativeBarcodeBatchAdvancedOverlayProxy.capacitorExec = Capacitor.exec;
|
|
2204
2124
|
|
|
2205
|
-
class NativeBarcodeSelectionListenerProxy {
|
|
2206
|
-
constructor() {
|
|
2207
|
-
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
2208
|
-
this.notifyListeners = this.notifyListeners.bind(this);
|
|
2209
|
-
}
|
|
2210
|
-
getCount(selectionIdentifier) {
|
|
2211
|
-
return ScanditBarcodeSelectionPluginNative.getCountForBarcodeInBarcodeSelectionSession({ selectionIdentifier: selectionIdentifier });
|
|
2212
|
-
}
|
|
2213
|
-
resetSession() {
|
|
2214
|
-
return ScanditBarcodeSelectionPluginNative.resetBarcodeSelectionSession();
|
|
2215
|
-
}
|
|
2216
|
-
registerListenerForEvents() {
|
|
2217
|
-
ScanditBarcodeSelectionPluginNative.subscribeBarcodeSelectionListener();
|
|
2218
|
-
}
|
|
2219
|
-
subscribeDidUpdateSelectionListener() {
|
|
2220
|
-
window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2221
|
-
.addListener(BarcodeSelectionListenerEvents.didUpdateSelection, this.notifyListeners.bind(this));
|
|
2222
|
-
}
|
|
2223
|
-
subscribeDidUpdateSession() {
|
|
2224
|
-
window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2225
|
-
.addListener(BarcodeSelectionListenerEvents.didUpdateSession, this.notifyListeners.bind(this));
|
|
2226
|
-
}
|
|
2227
|
-
finishDidUpdateSelectionCallback(isEnabled) {
|
|
2228
|
-
ScanditBarcodeSelectionPluginNative.finishBarcodeSelectionDidSelect({ enabled: isEnabled });
|
|
2229
|
-
}
|
|
2230
|
-
finishDidUpdateSessionCallback(isEnabled) {
|
|
2231
|
-
ScanditBarcodeSelectionPluginNative.finishBarcodeSelectionDidUpdateSession({ enabled: isEnabled });
|
|
2232
|
-
}
|
|
2233
|
-
unregisterListenerForEvents() {
|
|
2234
|
-
ScanditBarcodeSelectionPluginNative.unsubscribeBarcodeSelectionListener();
|
|
2235
|
-
}
|
|
2236
|
-
notifyListeners(event) {
|
|
2237
|
-
const done = () => {
|
|
2238
|
-
this.eventEmitter.emit(BarcodeSelectionListenerEvents.inCallback, false);
|
|
2239
|
-
window.Capacitor.Plugins[Capacitor.pluginName].finishCallback({
|
|
2240
|
-
result: {
|
|
2241
|
-
enabled: this.isModeEnabled(),
|
|
2242
|
-
finishCallbackID: event.name,
|
|
2243
|
-
},
|
|
2244
|
-
});
|
|
2245
|
-
return { enabled: this.isModeEnabled() };
|
|
2246
|
-
};
|
|
2247
|
-
this.eventEmitter.emit(BarcodeSelectionListenerEvents.inCallback, true);
|
|
2248
|
-
if (!event) {
|
|
2249
|
-
// The event could be undefined/null in case the plugin result did not pass a "message",
|
|
2250
|
-
// which could happen e.g. in case of "ok" results, which could signal e.g. successful
|
|
2251
|
-
// listener subscriptions.
|
|
2252
|
-
return done();
|
|
2253
|
-
}
|
|
2254
|
-
this.eventEmitter.emit(event.name, event.data);
|
|
2255
|
-
return done();
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
NativeBarcodeSelectionListenerProxy.exec = Capacitor.exec;
|
|
2259
|
-
|
|
2260
|
-
class NativeBarcodeCountListenerProxy {
|
|
2261
|
-
constructor() {
|
|
2262
|
-
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
2263
|
-
this.notifyListeners = this.notifyListeners.bind(this);
|
|
2264
|
-
}
|
|
2265
|
-
updateMode(barcodeCountJson) {
|
|
2266
|
-
return ScanditBarcodeCountPluginNative.updateMode({ BarcodeCount: barcodeCountJson });
|
|
2267
|
-
}
|
|
2268
|
-
resetBarcodeCount() {
|
|
2269
|
-
return ScanditBarcodeCountPluginNative.resetBarcodeCount();
|
|
2270
|
-
}
|
|
2271
|
-
registerBarcodeCountListener() {
|
|
2272
|
-
return ScanditBarcodeCountPluginNative.registerBarcodeCountListener();
|
|
2273
|
-
}
|
|
2274
|
-
setModeEnabledState(enabled) {
|
|
2275
|
-
ScanditBarcodeCountPluginNative.setBarcodeCountModeEnabledState({ 'enabled': enabled });
|
|
2276
|
-
}
|
|
2277
|
-
updateFeedback(feedbackJson) {
|
|
2278
|
-
ScanditBarcodeCountPluginNative.updateBarcodeCountFeedback({ 'feedbackJson': feedbackJson });
|
|
2279
|
-
}
|
|
2280
|
-
unregisterBarcodeCountListener() {
|
|
2281
|
-
this.didScanListenerHandler.remove();
|
|
2282
|
-
this.didListSessionUpdateListenerHandler.remove();
|
|
2283
|
-
return ScanditBarcodeCountPluginNative.unregisterBarcodeCountListener();
|
|
2284
|
-
}
|
|
2285
|
-
subscribeDidScan() {
|
|
2286
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2287
|
-
this.didScanListenerHandler = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2288
|
-
.addListener(BarcodeCountListenerEvents.didScan, this.notifyListeners);
|
|
2289
|
-
});
|
|
2290
|
-
}
|
|
2291
|
-
subscribeDidListSessionUpdate() {
|
|
2292
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2293
|
-
this.didListSessionUpdateListenerHandler = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2294
|
-
.addListener(BarcodeCountListenerEvents.didListSessionUpdate, this.notifyListeners);
|
|
2295
|
-
});
|
|
2296
|
-
}
|
|
2297
|
-
finishOnScan() {
|
|
2298
|
-
ScanditBarcodeCountPluginNative.finishBarcodeCountListenerOnScan();
|
|
2299
|
-
}
|
|
2300
|
-
startScanningPhase() {
|
|
2301
|
-
ScanditBarcodeCountPluginNative.startScanningPhase();
|
|
2302
|
-
}
|
|
2303
|
-
endScanningPhase() {
|
|
2304
|
-
ScanditBarcodeCountPluginNative.endScanningPhase();
|
|
2305
|
-
}
|
|
2306
|
-
setBarcodeCountCaptureList(captureListStr) {
|
|
2307
|
-
ScanditBarcodeCountPluginNative.setBarcodeCountCaptureList({ TargetBarcodes: JSON.parse(captureListStr) });
|
|
2308
|
-
}
|
|
2309
|
-
notifyListeners(event) {
|
|
2310
|
-
const done = () => {
|
|
2311
|
-
this.eventEmitter.emit(BarcodeCountListenerEvents.inCallback, false);
|
|
2312
|
-
return { enabled: this.isModeEnabled() };
|
|
2313
|
-
};
|
|
2314
|
-
this.eventEmitter.emit(BarcodeCountListenerEvents.inCallback, true);
|
|
2315
|
-
if (!event) {
|
|
2316
|
-
// The event could be undefined/null in case the plugin result did not pass a "message",
|
|
2317
|
-
// which could happen e.g. in case of "ok" results, which could signal e.g. successful
|
|
2318
|
-
// listener subscriptions.
|
|
2319
|
-
return done();
|
|
2320
|
-
}
|
|
2321
|
-
this.eventEmitter.emit(event.name, event.data);
|
|
2322
|
-
return done();
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
|
|
2326
|
-
class NativeBarcodeCountSessionProxy {
|
|
2327
|
-
getSpatialMap() {
|
|
2328
|
-
return ScanditBarcodeCountPluginNative.getSpatialMap();
|
|
2329
|
-
}
|
|
2330
|
-
getSpatialMapWithHints(expectedNumberOfRows, expectedNumberOfColumns) {
|
|
2331
|
-
return ScanditBarcodeCountPluginNative.getSpatialMapWithHints({
|
|
2332
|
-
expectedNumberOfColumns,
|
|
2333
|
-
expectedNumberOfRows
|
|
2334
|
-
});
|
|
2335
|
-
}
|
|
2336
|
-
resetSession() {
|
|
2337
|
-
return ScanditBarcodeCountPluginNative.resetBarcodeCountSession();
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
|
|
2341
2125
|
class NativeBarcodeBatchBasicOverlayProxy {
|
|
2342
2126
|
constructor() {
|
|
2343
2127
|
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
@@ -2384,100 +2168,6 @@ class NativeBarcodeBatchBasicOverlayProxy {
|
|
|
2384
2168
|
}
|
|
2385
2169
|
NativeBarcodeBatchBasicOverlayProxy.capacitorExec = Capacitor.exec;
|
|
2386
2170
|
|
|
2387
|
-
class NativeBarcodeSelectionProxy {
|
|
2388
|
-
unfreezeCamera() {
|
|
2389
|
-
return new Promise((resolve, reject) => {
|
|
2390
|
-
NativeBarcodeSelectionProxy.exec(resolve, reject, CapacitorFunction.UnfreezeCameraInBarcodeSelection, null);
|
|
2391
|
-
});
|
|
2392
|
-
}
|
|
2393
|
-
resetMode() {
|
|
2394
|
-
return new Promise((resolve, reject) => {
|
|
2395
|
-
NativeBarcodeSelectionProxy.exec(resolve, reject, CapacitorFunction.ResetBarcodeSelection, null);
|
|
2396
|
-
});
|
|
2397
|
-
}
|
|
2398
|
-
selectAimedBarcode() {
|
|
2399
|
-
return ScanditBarcodeSelectionPluginNative.selectAimedBarcode();
|
|
2400
|
-
}
|
|
2401
|
-
unselectBarcodes(barcodesStr) {
|
|
2402
|
-
return ScanditBarcodeSelectionPluginNative.unselectBarcodes(barcodesStr);
|
|
2403
|
-
}
|
|
2404
|
-
setSelectBarcodeEnabled(barcodeStr, enabled) {
|
|
2405
|
-
return ScanditBarcodeSelectionPluginNative.setSelectBarcodeEnabled(barcodeStr, enabled);
|
|
2406
|
-
}
|
|
2407
|
-
increaseCountForBarcodes(barcodeStr) {
|
|
2408
|
-
return ScanditBarcodeSelectionPluginNative.increaseCountForBarcodes(barcodeStr);
|
|
2409
|
-
}
|
|
2410
|
-
setModeEnabledState(enabled) {
|
|
2411
|
-
ScanditBarcodeSelectionPluginNative.setBarcodeSelectionModeEnabledState({ 'enabled': enabled });
|
|
2412
|
-
}
|
|
2413
|
-
updateBarcodeSelectionMode(modeJson) {
|
|
2414
|
-
return ScanditBarcodeSelectionPluginNative.updateBarcodeSelectionMode({ modeJson: modeJson });
|
|
2415
|
-
}
|
|
2416
|
-
applyBarcodeSelectionModeSettings(newSettingsJson) {
|
|
2417
|
-
return ScanditBarcodeSelectionPluginNative.applyBarcodeSelectionModeSettings({ modeSettingsJson: newSettingsJson });
|
|
2418
|
-
}
|
|
2419
|
-
updateFeedback(feedbackJson) {
|
|
2420
|
-
return ScanditBarcodeSelectionPluginNative.updateBarcodeSelectionFeedback({ feedbackJson: feedbackJson });
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
NativeBarcodeSelectionProxy.exec = Capacitor.exec;
|
|
2424
|
-
|
|
2425
|
-
class NativeBarcodeSelectionOverlayProxy extends BaseNativeProxy {
|
|
2426
|
-
setTextForAimToSelectAutoHint(text) {
|
|
2427
|
-
return ScanditBarcodeSelectionPluginNative.setTextForAimToSelectAutoHint(text);
|
|
2428
|
-
}
|
|
2429
|
-
removeAimedBarcodeBrushProvider() {
|
|
2430
|
-
return ScanditBarcodeSelectionPluginNative.removeAimedBarcodeBrushProvider();
|
|
2431
|
-
}
|
|
2432
|
-
setAimedBarcodeBrushProvider() {
|
|
2433
|
-
return ScanditBarcodeSelectionPluginNative.setAimedBarcodeBrushProvider();
|
|
2434
|
-
}
|
|
2435
|
-
finishBrushForAimedBarcodeCallback(brushStr, selectionIdentifier) {
|
|
2436
|
-
ScanditBarcodeSelectionPluginNative.finishBrushForAimedBarcode(brushStr, selectionIdentifier);
|
|
2437
|
-
}
|
|
2438
|
-
removeTrackedBarcodeBrushProvider() {
|
|
2439
|
-
return ScanditBarcodeSelectionPluginNative.removeTrackedBarcodeBrushProvider();
|
|
2440
|
-
}
|
|
2441
|
-
setTrackedBarcodeBrushProvider() {
|
|
2442
|
-
return ScanditBarcodeSelectionPluginNative.setTrackedBarcodeBrushProvider();
|
|
2443
|
-
}
|
|
2444
|
-
finishBrushForTrackedBarcodeCallback(brushStr, selectionIdentifier) {
|
|
2445
|
-
ScanditBarcodeSelectionPluginNative.finishBrushForTrackedBarcode(brushStr, selectionIdentifier);
|
|
2446
|
-
}
|
|
2447
|
-
updateBarcodeSelectionBasicOverlay(overlayJson) {
|
|
2448
|
-
return ScanditBarcodeSelectionPluginNative.updateBarcodeSelectionBasicOverlay({ overlayJson: overlayJson });
|
|
2449
|
-
}
|
|
2450
|
-
subscribeBrushForTrackedBarcode() {
|
|
2451
|
-
window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2452
|
-
.addListener(BarcodeSelectionBrushProviderEvents.brushForTrackedBarcode, this.notifyListeners.bind(this));
|
|
2453
|
-
}
|
|
2454
|
-
subscribeBrushForAimedBarcode() {
|
|
2455
|
-
window.Capacitor.Plugins[Capacitor.pluginName]
|
|
2456
|
-
.addListener(BarcodeSelectionBrushProviderEvents.brushForAimedBarcode, this.notifyListeners.bind(this));
|
|
2457
|
-
}
|
|
2458
|
-
notifyListeners(event) {
|
|
2459
|
-
const done = () => {
|
|
2460
|
-
this.eventEmitter.emit(BarcodeSelectionBrushProviderEvents.inCallback, false);
|
|
2461
|
-
window.Capacitor.Plugins[Capacitor.pluginName].finishCallback({
|
|
2462
|
-
result: {
|
|
2463
|
-
enabled: this.isModeEnabled(),
|
|
2464
|
-
finishCallbackID: event.name,
|
|
2465
|
-
},
|
|
2466
|
-
});
|
|
2467
|
-
return { enabled: this.isModeEnabled() };
|
|
2468
|
-
};
|
|
2469
|
-
this.eventEmitter.emit(BarcodeSelectionBrushProviderEvents.inCallback, true);
|
|
2470
|
-
if (!event) {
|
|
2471
|
-
// The event could be undefined/null in case the plugin result did not pass a "message",
|
|
2472
|
-
// which could happen e.g. in case of "ok" results, which could signal e.g. successful
|
|
2473
|
-
// listener subscriptions.
|
|
2474
|
-
return done();
|
|
2475
|
-
}
|
|
2476
|
-
this.eventEmitter.emit(event.name, event.data);
|
|
2477
|
-
return done();
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
2171
|
class NativeBarcodePickProductProxy extends BaseNativeProxy {
|
|
2482
2172
|
constructor() {
|
|
2483
2173
|
super();
|
|
@@ -2727,12 +2417,6 @@ class NativeBarcodeFindViewProxy extends BaseNativeProxy {
|
|
|
2727
2417
|
hideView() {
|
|
2728
2418
|
return ScanditBarcodeFindPluginNative.hideFindView();
|
|
2729
2419
|
}
|
|
2730
|
-
onPause() {
|
|
2731
|
-
return ScanditBarcodeFindPluginNative.barcodeFindModePause();
|
|
2732
|
-
}
|
|
2733
|
-
onResume() {
|
|
2734
|
-
return ScanditBarcodeFindPluginNative.barcodeFindViewOnResume();
|
|
2735
|
-
}
|
|
2736
2420
|
startSearching() {
|
|
2737
2421
|
return ScanditBarcodeFindPluginNative.barcodeFindViewStartSearching();
|
|
2738
2422
|
}
|
|
@@ -2998,150 +2682,41 @@ class NativeBarcodeGeneratorProxy {
|
|
|
2998
2682
|
}
|
|
2999
2683
|
}
|
|
3000
2684
|
|
|
3001
|
-
class NativeBarcodeCountViewProxy extends
|
|
3002
|
-
|
|
3003
|
-
super();
|
|
3004
|
-
this.notifyListeners = this.notifyListeners.bind(this);
|
|
3005
|
-
}
|
|
3006
|
-
enableHardwareTrigger(hardwareTriggerKeyCode) {
|
|
2685
|
+
class NativeBarcodeCountViewProxy extends AdvancedNativeProxy {
|
|
2686
|
+
$enableBarcodeCountHardwareTrigger({ hardwareTriggerKeyCode }) {
|
|
3007
2687
|
// Hardware trigger is only supported on iOS
|
|
3008
2688
|
if (Capacitor$1.getPlatform() === 'ios') {
|
|
3009
2689
|
return Promise.resolve();
|
|
3010
2690
|
}
|
|
3011
2691
|
return ScanditBarcodeCountPluginNative.barcodeCountViewEnableHardwareTrigger({ hardwareTriggerKeyCode: hardwareTriggerKeyCode });
|
|
3012
2692
|
}
|
|
3013
|
-
createView(_nativeView, viewJson) {
|
|
3014
|
-
const payload = JSON.parse(viewJson);
|
|
3015
|
-
return ScanditBarcodeCountPluginNative.createView(payload);
|
|
3016
|
-
}
|
|
3017
|
-
removeView() {
|
|
3018
|
-
return ScanditBarcodeCountPluginNative.removeView();
|
|
3019
|
-
}
|
|
3020
|
-
updateView(viewJson) {
|
|
3021
|
-
const payload = JSON.parse(viewJson);
|
|
3022
|
-
return ScanditBarcodeCountPluginNative.updateView({ View: payload });
|
|
3023
|
-
}
|
|
3024
|
-
clearHighlights() {
|
|
3025
|
-
return ScanditBarcodeCountPluginNative.clearBarcodeCountViewHighlights();
|
|
3026
|
-
}
|
|
3027
|
-
finishBrushForRecognizedBarcodeCallback(_nativeView, brushJson, trackedBarcodeIdentifier) {
|
|
3028
|
-
return ScanditBarcodeCountPluginNative.finishBarcodeCountViewListenerBrushForRecognizedBarcode({
|
|
3029
|
-
brush: brushJson,
|
|
3030
|
-
trackedBarcodeId: trackedBarcodeIdentifier
|
|
3031
|
-
});
|
|
3032
|
-
}
|
|
3033
|
-
finishBrushForRecognizedBarcodeNotInListCallback(_nativeView, brushJson, trackedBarcodeIdentifier) {
|
|
3034
|
-
return ScanditBarcodeCountPluginNative.finishBarcodeCountViewListenerBrushForRecognizedBarcodeNotInList({
|
|
3035
|
-
brush: brushJson,
|
|
3036
|
-
trackedBarcodeId: trackedBarcodeIdentifier
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
finishBrushForAcceptedBarcodeCallback(_nativeView, brushJson, trackedBarcodeIdentifier) {
|
|
3040
|
-
return ScanditBarcodeCountPluginNative.finishBarcodeCountViewListenerOnBrushForAcceptedBarcode({
|
|
3041
|
-
brush: brushJson,
|
|
3042
|
-
trackedBarcodeId: trackedBarcodeIdentifier
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
finishBrushForRejectedBarcodeCallback(_nativeView, brushJson, trackedBarcodeIdentifier) {
|
|
3046
|
-
return ScanditBarcodeCountPluginNative.finishBarcodeCountViewListenerOnBrushForRejectedBarcode({
|
|
3047
|
-
brush: brushJson,
|
|
3048
|
-
trackedBarcodeId: trackedBarcodeIdentifier
|
|
3049
|
-
});
|
|
3050
|
-
}
|
|
3051
|
-
registerBarcodeCountViewListener() {
|
|
3052
|
-
return ScanditBarcodeCountPluginNative.registerBarcodeCountViewListener();
|
|
3053
|
-
}
|
|
3054
|
-
registerBarcodeCountViewUiListener() {
|
|
3055
|
-
return ScanditBarcodeCountPluginNative.registerBarcodeCountViewUiListener();
|
|
3056
|
-
}
|
|
3057
|
-
unregisterBarcodeCountViewListener() {
|
|
3058
|
-
return ScanditBarcodeCountPluginNative.unregisterBarcodeCountViewListener();
|
|
3059
|
-
}
|
|
3060
|
-
unregisterBarcodeCountViewUiListener() {
|
|
3061
|
-
return ScanditBarcodeCountPluginNative.unregisterBarcodeCountViewUiListener();
|
|
3062
|
-
}
|
|
3063
|
-
setPositionAndSize(top, left, width, height, shouldBeUnderWebView) {
|
|
3064
|
-
return ScanditBarcodeCountPluginNative.setViewPositionAndSize({ position: { top, left, width, height, shouldBeUnderWebView } });
|
|
3065
|
-
}
|
|
3066
|
-
show() {
|
|
3067
|
-
return ScanditBarcodeCountPluginNative.showView();
|
|
3068
|
-
}
|
|
3069
|
-
hide() {
|
|
3070
|
-
return ScanditBarcodeCountPluginNative.hideView();
|
|
3071
|
-
}
|
|
3072
|
-
subscribeListeners() {
|
|
3073
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3074
|
-
this.singleScanButtonTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3075
|
-
.addListener(BarcodeCountViewEvents.singleScanButtonTapped, this.notifyListeners);
|
|
3076
|
-
this.listButtonTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3077
|
-
.addListener(BarcodeCountViewEvents.listButtonTapped, this.notifyListeners);
|
|
3078
|
-
this.exitButtonTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3079
|
-
.addListener(BarcodeCountViewEvents.exitButtonTapped, this.notifyListeners);
|
|
3080
|
-
this.brushForRecognizedBarcodeListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3081
|
-
.addListener(BarcodeCountViewEvents.brushForRecognizedBarcode, this.notifyListeners);
|
|
3082
|
-
this.brushForRecognizedBarcodeNotInListListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3083
|
-
.addListener(BarcodeCountViewEvents.brushForRecognizedBarcodeNotInList, this.notifyListeners);
|
|
3084
|
-
this.brushForAcceptedBarcodeListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3085
|
-
.addListener(BarcodeCountViewEvents.brushForAcceptedBarcode, this.notifyListeners);
|
|
3086
|
-
this.brushForRejectedBarcodeListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3087
|
-
.addListener(BarcodeCountViewEvents.brushForRejectedBarcode, this.notifyListeners);
|
|
3088
|
-
this.filteredBarcodeTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3089
|
-
.addListener(BarcodeCountViewEvents.filteredBarcodeTapped, this.notifyListeners);
|
|
3090
|
-
this.recognizedBarcodeNotInListTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3091
|
-
.addListener(BarcodeCountViewEvents.recognizedBarcodeNotInListTapped, this.notifyListeners);
|
|
3092
|
-
this.recognizedBarcodeTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3093
|
-
.addListener(BarcodeCountViewEvents.recognizedBarcodeTapped, this.notifyListeners);
|
|
3094
|
-
this.acceptedBarcodeTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3095
|
-
.addListener(BarcodeCountViewEvents.acceptedBarcodeTapped, this.notifyListeners);
|
|
3096
|
-
this.rejectedBarcodeTappedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3097
|
-
.addListener(BarcodeCountViewEvents.rejectedBarcodeTapped, this.notifyListeners);
|
|
3098
|
-
this.captureListCompletedListenerHandle = yield window.Capacitor.Plugins[Capacitor.pluginName]
|
|
3099
|
-
.addListener(BarcodeCountViewEvents.captureListCompleted, this.notifyListeners);
|
|
3100
|
-
});
|
|
3101
|
-
}
|
|
3102
|
-
unsubscribeListeners() {
|
|
3103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3104
|
-
yield this.singleScanButtonTappedListenerHandle.remove();
|
|
3105
|
-
yield this.listButtonTappedListenerHandle.remove();
|
|
3106
|
-
yield this.exitButtonTappedListenerHandle.remove();
|
|
3107
|
-
yield this.brushForRecognizedBarcodeListenerHandle.remove();
|
|
3108
|
-
yield this.brushForRecognizedBarcodeNotInListListenerHandle.remove();
|
|
3109
|
-
yield this.brushForAcceptedBarcodeListenerHandle.remove();
|
|
3110
|
-
yield this.brushForRejectedBarcodeListenerHandle.remove();
|
|
3111
|
-
yield this.filteredBarcodeTappedListenerHandle.remove();
|
|
3112
|
-
yield this.recognizedBarcodeNotInListTappedListenerHandle.remove();
|
|
3113
|
-
yield this.recognizedBarcodeTappedListenerHandle.remove();
|
|
3114
|
-
yield this.acceptedBarcodeTappedListenerHandle.remove();
|
|
3115
|
-
yield this.rejectedBarcodeTappedListenerHandle.remove();
|
|
3116
|
-
yield this.captureListCompletedListenerHandle.remove();
|
|
3117
|
-
});
|
|
3118
|
-
}
|
|
3119
|
-
notifyListeners(event) {
|
|
3120
|
-
const done = () => {
|
|
3121
|
-
return {};
|
|
3122
|
-
};
|
|
3123
|
-
if (!event) {
|
|
3124
|
-
// The event could be undefined/null in case the plugin result did not pass a "message",
|
|
3125
|
-
// which could happen e.g. in case of "ok" results, which could signal e.g. successful
|
|
3126
|
-
// listener subscriptions.
|
|
3127
|
-
return done();
|
|
3128
|
-
}
|
|
3129
|
-
this.eventEmitter.emit(event.name, event.data);
|
|
3130
|
-
return done();
|
|
3131
|
-
}
|
|
3132
2693
|
}
|
|
3133
2694
|
|
|
3134
2695
|
function initBarcodeProxy() {
|
|
3135
|
-
FactoryMaker.
|
|
2696
|
+
FactoryMaker.bindLazyInstance('BarcodeCaptureListenerProxy', () => {
|
|
2697
|
+
return createAdvancedNativeProxy(capacitorBarcodeNativeCaller, BarcodeCaptureListenerEvents);
|
|
2698
|
+
});
|
|
3136
2699
|
FactoryMaker.bindInstance('BarcodeBatchListenerProxy', new NativeBarcodeBatchListenerProxy());
|
|
3137
2700
|
FactoryMaker.bindInstance('BarcodeBatchBasicOverlayProxy', new NativeBarcodeBatchBasicOverlayProxy());
|
|
3138
2701
|
FactoryMaker.bindInstance('BarcodeBatchAdvancedOverlayProxy', new NativeBarcodeBatchAdvancedOverlayProxy());
|
|
3139
|
-
FactoryMaker.
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
FactoryMaker.
|
|
3143
|
-
|
|
3144
|
-
|
|
2702
|
+
FactoryMaker.bindLazyInstance('BarcodeSelectionListenerProxy', () => {
|
|
2703
|
+
return createAdvancedNativeProxy(capacitorBarcodeNativeCaller, BarcodeSelectionListenerEvents);
|
|
2704
|
+
});
|
|
2705
|
+
FactoryMaker.bindLazyInstance('BarcodeSelectionOverlayProxy', () => {
|
|
2706
|
+
return createAdvancedNativeProxy(capacitorBarcodeNativeCaller, BarcodeSelectionBrushProviderEvents);
|
|
2707
|
+
});
|
|
2708
|
+
FactoryMaker.bindLazyInstance('BarcodeSelectionProxy', () => {
|
|
2709
|
+
return createAdvancedNativeProxy(capacitorBarcodeNativeCaller);
|
|
2710
|
+
});
|
|
2711
|
+
FactoryMaker.bindLazyInstance('BarcodeCountListenerProxy', () => {
|
|
2712
|
+
return createAdvancedNativeProxy(capacitorBarcodeNativeCaller, BarcodeCountListenerEvents);
|
|
2713
|
+
});
|
|
2714
|
+
FactoryMaker.bindLazyInstance('BarcodeCountSessionProxy', () => {
|
|
2715
|
+
return createAdvancedNativeProxy(capacitorBarcodeNativeCaller);
|
|
2716
|
+
});
|
|
2717
|
+
FactoryMaker.bindLazyInstance('BarcodeCountViewProxy', () => {
|
|
2718
|
+
return createAdvancedNativeFromCtorProxy(NativeBarcodeCountViewProxy, capacitorBarcodeNativeCaller, BarcodeCountViewEvents);
|
|
2719
|
+
});
|
|
3145
2720
|
FactoryMaker.bindInstance('BarcodePickListenerProxy', new NativeBarcodePickListenerProxy());
|
|
3146
2721
|
FactoryMaker.bindInstance('BarcodePickProductProxy', new NativeBarcodePickProductProxy());
|
|
3147
2722
|
FactoryMaker.bindInstance('BarcodePickViewProxy', new NativeBarcodePickViewProxy());
|
|
@@ -3282,9 +2857,8 @@ registerPlugin('ScanditBarcodePlugin', {
|
|
|
3282
2857
|
// tslint:disable-next-line:variable-name
|
|
3283
2858
|
const ScanditBarcodePlugin = new ScanditBarcodePluginImplementation();
|
|
3284
2859
|
const ScanditBarcodeCountPluginNative = registerPlugin('ScanditBarcodeNative');
|
|
3285
|
-
const ScanditBarcodeSelectionPluginNative = registerPlugin('ScanditBarcodeNative');
|
|
3286
2860
|
const ScanditBarcodePickPluginNative = registerPlugin('ScanditBarcodeNative');
|
|
3287
2861
|
const ScanditBarcodeFindPluginNative = registerPlugin('ScanditBarcodeNative');
|
|
3288
2862
|
const ScanditSparkScanPluginNative = registerPlugin('ScanditBarcodeNative');
|
|
3289
2863
|
|
|
3290
|
-
export { BarcodeBatchAdvancedOverlay, BarcodeCountView, BarcodeFindView, BarcodePickView, ScanditBarcodeCountPluginNative, ScanditBarcodeFindPluginNative, ScanditBarcodePickPluginNative, ScanditBarcodePlugin, ScanditBarcodePluginImplementation,
|
|
2864
|
+
export { BarcodeBatchAdvancedOverlay, BarcodeCountView, BarcodeFindView, BarcodePickView, ScanditBarcodeCountPluginNative, ScanditBarcodeFindPluginNative, ScanditBarcodePickPluginNative, ScanditBarcodePlugin, ScanditBarcodePluginImplementation, ScanditSparkScanPluginNative, SparkScanView, TrackedBarcodeView };
|