scandit-capacitor-datacapture-barcode 8.6.2 → 8.7.0
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/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.java +11 -7
- package/dist/barcode.js +13989 -5472
- package/dist/barcode.js.map +1 -1
- package/dist/dts/barcode.d.ts +14273 -4329
- package/dist/dts/index.d.ts +1436 -5
- package/dist/index.js +106 -16
- package/dist/index.js.map +1 -1
- package/ios/Sources/ScanditCapacitorBarcode/ScanditBarcodeCapture.swift +11 -10
- package/package.json +3 -2
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,16 +1,54 @@
|
|
|
1
|
-
import { BarcodeBatch, TrackedBarcode, BarcodeCountViewUiListener, BarcodeCountViewListener, BarcodeFilterHighlightSettings, BarcodeCountNotInListActionSettings, BarcodeCount, BarcodeCountMappingFlowSettings, BarcodeCountToolbarSettings, BarcodeCountStatusProvider, BarcodeFindViewProps, BarcodeFindViewUiListener, SparkScanViewUiListener, SparkScan, SparkScanViewSettings, SparkScanFeedbackDelegate, BarcodePickViewUiListener, BarcodePickViewListener, BarcodePickActionListener, BarcodePick, BarcodePickViewSettings, BarcodeArViewUiListener, BarcodeArAnnotationProvider, BarcodeArHighlightProvider, BarcodeAr, BarcodeArViewSettings } from './barcode';
|
|
2
|
-
export { ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotation, BarcodeArAnnotationProvider, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArFilter, BarcodeArHighlight, BarcodeArHighlightProvider, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationListener, BarcodeArInfoAnnotationWidthPreset, BarcodeArListener, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationAnchor, BarcodeArPopoverAnnotationButton, BarcodeArPopoverAnnotationListener, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArStatusIconAnnotationAnchor, BarcodeArViewSettings, BarcodeArViewUiListener, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayListener, BarcodeBatchBasicOverlayStyle, BarcodeBatchLicenseInfo, BarcodeBatchListener, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureLicenseInfo, BarcodeCaptureListener, BarcodeCaptureOverlay, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListListener, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountListener, BarcodeCountMappingFlowSettings, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProvider, BarcodeCountStatusProviderCallback, BarcodeCountStatusResult, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountViewListener, BarcodeCountViewStyle, BarcodeCountViewUiListener, BarcodeDataTransformer, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettings, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListener, BarcodeFindSession, BarcodeFindSettings, BarcodeFindTransformer, BarcodeFindViewProps, BarcodeFindViewSettings, BarcodeFindViewUiListener, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionListener, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderCallback, BarcodePickListener, BarcodePickProduct, BarcodePickProductProvider, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningListener, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewHighlightStyle, BarcodePickViewHighlightStyleAsyncProvider, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewProvider, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewListener, BarcodePickViewSettings, BarcodePickViewUiListener, BarcodeSelection, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProvider, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionLicenseInfo, BarcodeSelectionListener, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategy, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionType, BarcodeSpatialGrid, BatterySavingMode, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentDefinition, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponent, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanFeedbackDelegate, SparkScanLicenseInfo, SparkScanListener, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningMode, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewSettings, SparkScanViewState, SparkScanViewUiListener, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder } from './barcode';
|
|
3
|
-
import { DefaultSerializeable, Size, DataCaptureOverlay, Anchor, PointWithUnit, Brush, DataCaptureContext, Rect,
|
|
1
|
+
import { BarcodeBatch, TrackedBarcode, BarcodeCountIcon, BarcodeCountViewUiListener, BarcodeCountViewListener, BarcodeFilterHighlightSettings, BarcodeCountNotInListActionSettings, BarcodeCount, BarcodeCountMappingFlowSettings, BarcodeCountToolbarSettings, BarcodeCountStatusProvider, BarcodeFindViewProps, BarcodeFindViewUiListener, SparkScanViewUiListener, SparkScan, SparkScanViewSettings, SparkScanFeedbackDelegate, SparkScanScanningMode, BarcodePickViewUiListener, BarcodePickViewListener, BarcodePickActionListener, BarcodePick, BarcodePickViewSettings, BarcodeArViewUiListener, BarcodeArAnnotationProvider, BarcodeArHighlightProvider, BarcodeAr, BarcodeArViewSettings } from './barcode';
|
|
2
|
+
export { AdaptiveRecognitionErrorReason, AdaptiveRecognitionFrameMetadata, AdaptiveRecognitionServiceListener, ArucoDictionary, ArucoDictionaryPreset, ArucoMarker, AztecBarcodeGeneratorBuilder, Barcode, BarcodeAr, BarcodeArAnnotation, BarcodeArAnnotationProvider, BarcodeArAnnotationTrigger, BarcodeArCircleHighlight, BarcodeArCircleHighlightPreset, BarcodeArFeedback, BarcodeArFilter, BarcodeArHighlight, BarcodeArHighlightProvider, BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor, BarcodeArInfoAnnotationBodyComponent, BarcodeArInfoAnnotationFooter, BarcodeArInfoAnnotationHeader, BarcodeArInfoAnnotationListener, BarcodeArInfoAnnotationWidthPreset, BarcodeArListener, BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationAnchor, BarcodeArPopoverAnnotationButton, BarcodeArPopoverAnnotationListener, BarcodeArRectangleHighlight, BarcodeArResponsiveAnnotation, BarcodeArSession, BarcodeArSettings, BarcodeArStatusIconAnnotation, BarcodeArStatusIconAnnotationAnchor, BarcodeArViewSettings, BarcodeArViewUiListener, BarcodeBatch, BarcodeBatchBasicOverlay, BarcodeBatchBasicOverlayListener, BarcodeBatchBasicOverlayStyle, BarcodeBatchLicenseInfo, BarcodeBatchListener, BarcodeBatchSession, BarcodeBatchSettings, BarcodeCapture, BarcodeCaptureFeedback, BarcodeCaptureLicenseInfo, BarcodeCaptureListener, BarcodeCaptureOverlay, BarcodeCaptureSession, BarcodeCaptureSettings, BarcodeCount, BarcodeCountCaptureList, BarcodeCountCaptureListListener, BarcodeCountCaptureListSession, BarcodeCountFeedback, BarcodeCountIcon, BarcodeCountListener, BarcodeCountMappingFlowSettings, BarcodeCountNotInListActionSettings, BarcodeCountSession, BarcodeCountSessionSnapshot, BarcodeCountSettings, BarcodeCountStatus, BarcodeCountStatusItem, BarcodeCountStatusProvider, BarcodeCountStatusProviderCallback, BarcodeCountStatusResult, BarcodeCountStatusResultAbort, BarcodeCountStatusResultError, BarcodeCountStatusResultSuccess, BarcodeCountToolbarSettings, BarcodeCountViewListener, BarcodeCountViewStyle, BarcodeCountViewUiListener, BarcodeDataTransformer, BarcodeDefinition, BarcodeDefinitionBuilder, BarcodeFilterHighlightSettings, BarcodeFilterHighlightSettingsBrush, BarcodeFilterHighlightType, BarcodeFilterSettings, BarcodeFind, BarcodeFindFeedback, BarcodeFindItem, BarcodeFindItemContent, BarcodeFindItemSearchOptions, BarcodeFindListener, BarcodeFindSession, BarcodeFindSettings, BarcodeFindTransformer, BarcodeFindViewProps, BarcodeFindViewSettings, BarcodeFindViewUiListener, BarcodeGenerator, BarcodeGeneratorBuilder, BarcodeIdentifier, BarcodeInfo, BarcodePick, BarcodePickAction, BarcodePickActionCallback, BarcodePickActionListener, BarcodePickAsyncMapperProductProvider, BarcodePickAsyncMapperProductProviderCallback, BarcodePickListener, BarcodePickProduct, BarcodePickProductProvider, BarcodePickProductProviderCallback, BarcodePickProductProviderCallbackItem, BarcodePickScanningListener, BarcodePickScanningSession, BarcodePickSession, BarcodePickSettings, BarcodePickState, BarcodePickStatusIconSettings, BarcodePickStatusIconStyle, BarcodePickViewHighlightStyle, BarcodePickViewHighlightStyleAsyncProvider, BarcodePickViewHighlightStyleCustomView, BarcodePickViewHighlightStyleCustomViewProvider, BarcodePickViewHighlightStyleCustomViewResponse, BarcodePickViewHighlightStyleRequest, BarcodePickViewHighlightStyleResponse, BarcodePickViewHighlightStyleResponseBuilder, BarcodePickViewListener, BarcodePickViewSettings, BarcodePickViewUiListener, BarcodeSelection, BarcodeSelectionAimerBehavior, BarcodeSelectionAimerSelection, BarcodeSelectionAutoSelectionStrategy, BarcodeSelectionBasicOverlay, BarcodeSelectionBasicOverlayStyle, BarcodeSelectionBrushProvider, BarcodeSelectionFeedback, BarcodeSelectionFreezeBehavior, BarcodeSelectionLicenseInfo, BarcodeSelectionListener, BarcodeSelectionManualSelectionStrategy, BarcodeSelectionSession, BarcodeSelectionSettings, BarcodeSelectionStrategy, BarcodeSelectionTapBehavior, BarcodeSelectionTapSelection, BarcodeSelectionType, BarcodeSpatialGrid, BatterySavingMode, CapturePreset, Checksum, Cluster, Code128BarcodeGeneratorBuilder, Code39BarcodeGeneratorBuilder, CompositeFlag, CompositeType, CompositeTypeDescription, DataMatrixBarcodeGeneratorBuilder, Dot, DotWithIcons, Ean13BarcodeGeneratorBuilder, Ean13UpcaClassification, EncodingRange, InterleavedTwoOfFiveBarcodeGeneratorBuilder, LocalizedOnlyBarcode, Pdf417BarcodeGeneratorBuilder, Pdf417CompactionMode, Pdf417Dimensions, QrCodeBarcodeGeneratorBuilder, QrCodeErrorCorrectionLevel, Range, Rectangular, RectangularWithIcons, ScanComponentBarcodePreset, ScanComponentDefinition, ScanComponentTextSemanticType, ScanItemDefinition, ScanItemIdentifier, ScannedBarcode, ScannedComponent, ScannedComponentIdentifier, ScannedItem, ScannedItemIdentifier, ScannedText, SparkScan, SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback, SparkScanFeedbackDelegate, SparkScanLicenseInfo, SparkScanListener, SparkScanMiniPreviewSize, SparkScanPreviewBehavior, SparkScanScanningBehavior, SparkScanScanningMode, SparkScanScanningModeDefault, SparkScanScanningModeTarget, SparkScanSession, SparkScanSettings, SparkScanToastSettings, SparkScanViewSettings, SparkScanViewState, SparkScanViewUiListener, StructuredAppendData, Symbology, SymbologyDescription, SymbologySettings, TargetBarcode, TextDefinition, TextDefinitionBuilder, TextIdentifier, TrackedBarcode, TrackedObject, UpcaBarcodeGeneratorBuilder } from './barcode';
|
|
3
|
+
import { DefaultSerializeable, Size, DataCaptureOverlay, Anchor, PointWithUnit, Brush, LogoStyle, DataCaptureContext, Rect, FrameSourceState, Color, CameraSettings, ZoomSwitchOrientation } from 'scandit-capacitor-datacapture-core/dist/dts/core';
|
|
4
4
|
import { Anchor as Anchor$1, PointWithUnit as PointWithUnit$1 } from 'scandit-capacitor-datacapture-core';
|
|
5
5
|
|
|
6
|
+
type Optional<T> = T | null;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Provides a way to set different options for how the {@link TrackedBarcodeView} will be shown.
|
|
10
|
+
*
|
|
11
|
+
* @since 6.8.0
|
|
12
|
+
*/
|
|
6
13
|
interface TrackedBarcodeViewOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The expected size of the view.
|
|
16
|
+
*
|
|
17
|
+
* Sets either this or {@link TrackedBarcodeViewOptions.scale} to set a specific size for the {@link TrackedBarcodeView}.
|
|
18
|
+
*
|
|
19
|
+
* @since 6.8.0
|
|
20
|
+
*/
|
|
7
21
|
size?: Size;
|
|
22
|
+
/**
|
|
23
|
+
* The scaling factor to use to size the view. The value should be a positive number.
|
|
24
|
+
*
|
|
25
|
+
* Sets either this or {@link TrackedBarcodeViewOptions.size} to set a specific size for the {@link TrackedBarcodeView}.
|
|
26
|
+
*
|
|
27
|
+
* @since 6.8.0
|
|
28
|
+
*/
|
|
8
29
|
scale?: number;
|
|
9
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* A view that can be shown for a {@link TrackedBarcode} through a {@link BarcodeBatchAdvancedOverlay}.
|
|
33
|
+
*
|
|
34
|
+
* @since 6.8.0
|
|
35
|
+
*/
|
|
10
36
|
declare class TrackedBarcodeView extends DefaultSerializeable {
|
|
11
37
|
private data;
|
|
12
38
|
private options;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a view based on an HTML element.
|
|
41
|
+
*
|
|
42
|
+
* Certain elements, e.g. embedded images cannot be rendered this way. Suitable for simple HTML elements that e.g. consist of colors, shapes and text. For more advanced views, use {@link TrackedBarcodeView.withBase64EncodedData}. As acquiring the view this way causes quality loss, we suggest to pass a view that’s double the size of what’s expected and scale it down using {@link TrackedBarcodeViewOptions.scale}.
|
|
43
|
+
*
|
|
44
|
+
* @since 6.8.0
|
|
45
|
+
*/
|
|
13
46
|
static withHTMLElement(element: HTMLElement, options: Optional<TrackedBarcodeViewOptions>): Promise<TrackedBarcodeView>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a view based on base64 encoded data. The image data should be image/png.
|
|
49
|
+
*
|
|
50
|
+
* @since 6.8.0
|
|
51
|
+
*/
|
|
14
52
|
static withBase64EncodedData(data: string, options: Optional<TrackedBarcodeViewOptions>): Promise<TrackedBarcodeView>;
|
|
15
53
|
private static getEncodedImageData;
|
|
16
54
|
private static getSize;
|
|
@@ -20,17 +58,57 @@ declare class TrackedBarcodeView extends DefaultSerializeable {
|
|
|
20
58
|
private constructor();
|
|
21
59
|
}
|
|
22
60
|
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* An overlay for {@link DataCaptureView} that allows anchoring a single user-provided View to each tracked barcode.The provided view is visible on the top of the camera preview as long as its tracked barcode is and for all this time retains its relative position to it. This is useful when an additional information should be provided to tracked barcodes in real time. For instance, a user may overlay the price of an item or its expiry date for each corresponding barcode.To display the views, this overlay must be attached to a {@link DataCaptureView}. This can be done by passing this overlay to {@link DataCaptureView.addOverlay}.A user of this class may configure what view is displayed for the given barcode and the relative position between the two by implementing {@link BarcodeBatchAdvancedOverlayListener} or by calling {@link BarcodeBatchAdvancedOverlay.setViewForTrackedBarcode}, {@link BarcodeBatchAdvancedOverlay.setAnchorForTrackedBarcode} or {@link BarcodeBatchAdvancedOverlay.setOffsetForTrackedBarcode}.
|
|
65
|
+
*
|
|
66
|
+
* For additional information about using this overlay, refer to [Adding AR Overlays](https://docs.scandit.com/sdks/capacitor/matrixscan/advanced) .
|
|
67
|
+
*
|
|
68
|
+
* @since 7.0.0
|
|
69
|
+
*/
|
|
23
70
|
declare class BarcodeBatchAdvancedOverlay implements DataCaptureOverlay {
|
|
24
71
|
private baseBarcodeBatchOverlay;
|
|
25
72
|
private get type();
|
|
73
|
+
/**
|
|
74
|
+
* Whether to show scan area guides on top of the preview. This property is useful during development to visualize the current scan areas on screen. It is not meant to be used for production. By default this property is *false*.
|
|
75
|
+
*
|
|
76
|
+
* @since 7.0.0
|
|
77
|
+
*/
|
|
26
78
|
get shouldShowScanAreaGuides(): boolean;
|
|
27
79
|
set shouldShowScanAreaGuides(shouldShow: boolean);
|
|
80
|
+
/** @since 7.0.0 */
|
|
28
81
|
get listener(): BarcodeBatchAdvancedOverlayListener | null;
|
|
29
82
|
set listener(listener: BarcodeBatchAdvancedOverlayListener | null);
|
|
83
|
+
/**
|
|
84
|
+
* Constructs a new BarcodeBatchAdvancedOverlay. For the overlay to be displayed on screen, it must be added to a {@link DataCaptureView}.
|
|
85
|
+
*
|
|
86
|
+
* @since 7.6.0
|
|
87
|
+
*/
|
|
30
88
|
constructor(mode: BarcodeBatch);
|
|
89
|
+
/**
|
|
90
|
+
* The method can be called to change the view drawn for the given tracked barcode. Setting the view to *null* will unset the view from the tracked barcode and will effectively remove it from the overlay. This method is thread-safe, it can be called from any thread. The view set via this method will take precedence over the one set via {@link BarcodeBatchAdvancedOverlayListener.viewForTrackedBarcode}: in case a view is set before {@link BarcodeBatchAdvancedOverlayListener.viewForTrackedBarcode} got called, no call to {@link BarcodeBatchAdvancedOverlayListener.viewForTrackedBarcode} will happen.
|
|
91
|
+
*
|
|
92
|
+
* @since 7.0.0
|
|
93
|
+
*/
|
|
31
94
|
setViewForTrackedBarcode(view: Promise<TrackedBarcodeView | null>, trackedBarcode: TrackedBarcode): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* The method can be called to change the anchor point for the view associated with the given tracked barcode. This method is thread-safe, it can be called from any thread. The anchor set via this method will take precedence over the one set via {@link BarcodeBatchAdvancedOverlayListener.anchorForTrackedBarcode}: in case a view is set before {@link BarcodeBatchAdvancedOverlayListener.anchorForTrackedBarcode} got called, no call to {@link BarcodeBatchAdvancedOverlayListener.anchorForTrackedBarcode} will happen.
|
|
97
|
+
*
|
|
98
|
+
* @since 7.0.0
|
|
99
|
+
*/
|
|
32
100
|
setAnchorForTrackedBarcode(anchor: Anchor, trackedBarcode: TrackedBarcode): Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* The method can be called to change the offset for the view associated with the given tracked barcode. This method is thread-safe, it can be called from any thread. The offset set via this method will take precedence over the one set via {@link BarcodeBatchAdvancedOverlayListener.offsetForTrackedBarcode}: in case a view is set before {@link BarcodeBatchAdvancedOverlayListener.offsetForTrackedBarcode} got called, no call to {@link BarcodeBatchAdvancedOverlayListener.offsetForTrackedBarcode} will happen. If the {@link MeasureUnit} of the offset is {@link MeasureUnit.Fraction}, the offset is calculated relative to view’s dimensions.
|
|
103
|
+
*
|
|
104
|
+
* @since 7.0.0
|
|
105
|
+
*/
|
|
33
106
|
setOffsetForTrackedBarcode(offset: PointWithUnit, trackedBarcode: TrackedBarcode): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Clears all the views for the currently tracked barcodes from this overlay. This method is thread-safe, it can be called from any thread.
|
|
109
|
+
*
|
|
110
|
+
* @since 7.0.0
|
|
111
|
+
*/
|
|
34
112
|
clearTrackedBarcodeViews(): Promise<void>;
|
|
35
113
|
private set view(value);
|
|
36
114
|
private get view();
|
|
@@ -38,137 +116,697 @@ declare class BarcodeBatchAdvancedOverlay implements DataCaptureOverlay {
|
|
|
38
116
|
toJSON(): object;
|
|
39
117
|
}
|
|
40
118
|
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/** @since 7.0.0 */
|
|
41
122
|
interface BarcodeBatchAdvancedOverlayListener {
|
|
123
|
+
/**
|
|
124
|
+
* Callback method that can be used to define an action that should be performed when a view for a tracked barcode is tapped.
|
|
125
|
+
*
|
|
126
|
+
* @since 7.0.0
|
|
127
|
+
*/
|
|
42
128
|
didTapViewForTrackedBarcode?(overlay: BarcodeBatchAdvancedOverlay, trackedBarcode: TrackedBarcode): void;
|
|
129
|
+
/**
|
|
130
|
+
* View to be drawn corresponding to the given {@link TrackedBarcode}. This method will be called before {@link BarcodeBatchAdvancedOverlayListener.anchorForTrackedBarcode} and {@link BarcodeBatchAdvancedOverlayListener.offsetForTrackedBarcode}. Beware that this view can be overridden with {@link BarcodeBatchAdvancedOverlay.setViewForTrackedBarcode} method. This method will only be called for new tracked barcodes that do not have a view yet, e.g. a view set by a call to {@link BarcodeBatchAdvancedOverlay.setViewForTrackedBarcode}.
|
|
131
|
+
*
|
|
132
|
+
* Called from the main thread.
|
|
133
|
+
*
|
|
134
|
+
* @since 7.0.0
|
|
135
|
+
*/
|
|
43
136
|
viewForTrackedBarcode?(overlay: BarcodeBatchAdvancedOverlay, trackedBarcode: TrackedBarcode): Promise<TrackedBarcodeView | null>;
|
|
137
|
+
/**
|
|
138
|
+
* Anchor point that should be used for the view corresponding to the given {@link TrackedBarcode}. This method will be called after {@link BarcodeBatchAdvancedOverlayListener.viewForTrackedBarcode} and before {@link BarcodeBatchAdvancedOverlayListener.offsetForTrackedBarcode}. Beware that this anchor can be overridden with {@link BarcodeBatchAdvancedOverlay.setAnchorForTrackedBarcode} method. This method will only be called for new tracked barcodes that do not have an anchor yet, e.g. an anchor set by a call to {@link BarcodeBatchAdvancedOverlay.setAnchorForTrackedBarcode}.
|
|
139
|
+
*
|
|
140
|
+
* Called from the main thread.
|
|
141
|
+
*
|
|
142
|
+
* @since 7.0.0
|
|
143
|
+
*/
|
|
44
144
|
anchorForTrackedBarcode?(overlay: BarcodeBatchAdvancedOverlay, trackedBarcode: TrackedBarcode): Anchor$1;
|
|
145
|
+
/**
|
|
146
|
+
* Offset to be set to the view corresponding to the given {@link TrackedBarcode}. The offset is relative to the anchor point of the tracked barcode. This method will be called after {@link BarcodeBatchAdvancedOverlayListener.viewForTrackedBarcode} and {@link BarcodeBatchAdvancedOverlayListener.anchorForTrackedBarcode}. Beware that this offset can be overridden with {@link BarcodeBatchAdvancedOverlay.setOffsetForTrackedBarcode} method. This method will only be called for new tracked barcodes that do not have an offset yet, e.g. an offset set by a call to {@link BarcodeBatchAdvancedOverlay.setOffsetForTrackedBarcode}.
|
|
147
|
+
*
|
|
148
|
+
* Called from the main thread.
|
|
149
|
+
*
|
|
150
|
+
* @since 7.0.0
|
|
151
|
+
*/
|
|
45
152
|
offsetForTrackedBarcode?(overlay: BarcodeBatchAdvancedOverlay, trackedBarcode: TrackedBarcode): PointWithUnit$1;
|
|
46
153
|
}
|
|
47
154
|
|
|
155
|
+
/**
|
|
156
|
+
* The style of the {@link BarcodeCountView}
|
|
157
|
+
*
|
|
158
|
+
* @since 6.18.0
|
|
159
|
+
*/
|
|
48
160
|
declare enum BarcodeCountViewStyle {
|
|
161
|
+
/**
|
|
162
|
+
* Style that draws the highlights as icons and adds an animation for when a code newly appears.
|
|
163
|
+
*
|
|
164
|
+
* @since 6.18.0
|
|
165
|
+
*/
|
|
49
166
|
Icon = "icon",
|
|
167
|
+
/**
|
|
168
|
+
* Style that draws the highlights as a dot and adds an animation for when a code newly appears.
|
|
169
|
+
*
|
|
170
|
+
* @since 6.18.0
|
|
171
|
+
*/
|
|
50
172
|
Dot = "dot"
|
|
51
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* {@link BarcodeCount} comes with a ready-to-use UI. Add {@link BarcodeCountView} to the view hierarchy. Please note that this view should be presented full screen.
|
|
176
|
+
*
|
|
177
|
+
* @since 6.18.0
|
|
178
|
+
*/
|
|
52
179
|
declare class BarcodeCountView {
|
|
53
180
|
private viewId;
|
|
181
|
+
/**
|
|
182
|
+
* Returns the default brush to use for a recognized barcode. When setting a {@link BarcodeCountCaptureList} to the mode, this brush will be used for recognized barcodes that are part of the target list. Only used when setting the view {@link BarcodeCountView.style} to {@link BarcodeCountViewStyle.Dot}.
|
|
183
|
+
*
|
|
184
|
+
* @since 6.18.0
|
|
185
|
+
*/
|
|
54
186
|
static get defaultRecognizedBrush(): Brush;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the default brush to use for a recognized barcode that’s not part of the target {@link BarcodeCountCaptureList}. Only used when setting the view {@link BarcodeCountView.style} to {@link BarcodeCountViewStyle.Dot}.
|
|
189
|
+
*
|
|
190
|
+
* @since 6.18.0
|
|
191
|
+
*/
|
|
55
192
|
static get defaultNotInListBrush(): Brush;
|
|
193
|
+
/**
|
|
194
|
+
* Returns the default brush to use for accepted barcodes. Only used when setting the view {@link BarcodeCountView.style} to {@link BarcodeCountViewStyle.Dot}.
|
|
195
|
+
*
|
|
196
|
+
* @since 7.1.0
|
|
197
|
+
*/
|
|
56
198
|
static get defaultAcceptedBrush(): Brush;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the default brush to use for rejected barcodes. Only used when setting the view {@link BarcodeCountView.style} to {@link BarcodeCountViewStyle.Dot}.
|
|
201
|
+
*
|
|
202
|
+
* @since 7.1.0
|
|
203
|
+
*/
|
|
57
204
|
static get defaultRejectedBrush(): Brush;
|
|
205
|
+
/**
|
|
206
|
+
* Returns the default {@link BarcodeCountIcon} used for a recognized barcode. When setting a {@link BarcodeCountCaptureList} to the mode, this icon will be used for recognized barcodes that are part of the target list. Only used when the view {@link BarcodeCountView.style} is {@link BarcodeCountViewStyle.Icon}.
|
|
207
|
+
*
|
|
208
|
+
* @since 8.7.0
|
|
209
|
+
*/
|
|
210
|
+
static get defaultRecognizedIcon(): BarcodeCountIcon;
|
|
211
|
+
/**
|
|
212
|
+
* Returns the default {@link BarcodeCountIcon} used for a recognized barcode that’s not part of the target {@link BarcodeCountCaptureList}. Only used when the view {@link BarcodeCountView.style} is {@link BarcodeCountViewStyle.Icon}.
|
|
213
|
+
*
|
|
214
|
+
* @since 8.7.0
|
|
215
|
+
*/
|
|
216
|
+
static get defaultNotInListIcon(): BarcodeCountIcon;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the default {@link BarcodeCountIcon} used for an accepted barcode. Used regardless of the view {@link BarcodeCountView.style}.
|
|
219
|
+
*
|
|
220
|
+
* @since 8.7.0
|
|
221
|
+
*/
|
|
222
|
+
static get defaultAcceptedIcon(): BarcodeCountIcon;
|
|
223
|
+
/**
|
|
224
|
+
* Returns the default {@link BarcodeCountIcon} used for a rejected barcode. Used regardless of the view {@link BarcodeCountView.style}.
|
|
225
|
+
*
|
|
226
|
+
* @since 8.7.0
|
|
227
|
+
*/
|
|
228
|
+
static get defaultRejectedIcon(): BarcodeCountIcon;
|
|
229
|
+
/**
|
|
230
|
+
* Returns whether the device supports listening for hardware button events. This is true for devices with api >= 28.
|
|
231
|
+
*
|
|
232
|
+
* This method is only supported on Android devices.
|
|
233
|
+
*
|
|
234
|
+
* @since 7.1.0
|
|
235
|
+
*/
|
|
58
236
|
static get hardwareTriggerSupported(): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* The listener which is called whenever the exit or list button of the view did receive a tap.
|
|
239
|
+
*
|
|
240
|
+
* Using this listener requires the MatrixScan AR add-on.
|
|
241
|
+
*
|
|
242
|
+
* @since 6.18.0
|
|
243
|
+
*/
|
|
59
244
|
get uiListener(): BarcodeCountViewUiListener | null;
|
|
60
245
|
set uiListener(listener: BarcodeCountViewUiListener | null);
|
|
246
|
+
/**
|
|
247
|
+
* The listener which is called whenever a new {@link TrackedBarcode} is newly tracked or newly recognized.
|
|
248
|
+
*
|
|
249
|
+
* Using this listener requires the MatrixScan AR add-on.
|
|
250
|
+
*
|
|
251
|
+
* @since 6.18.0
|
|
252
|
+
*/
|
|
61
253
|
get listener(): BarcodeCountViewListener | null;
|
|
62
254
|
set listener(listener: BarcodeCountViewListener | null);
|
|
255
|
+
/**
|
|
256
|
+
* When set to *true*, user guidance and the loading view will be shown to the user. The user guidance prompts the user to scan, and to move closer or further away from the target barcodes in order to scan them properly.
|
|
257
|
+
*
|
|
258
|
+
* By default this property is *true*.
|
|
259
|
+
*
|
|
260
|
+
* @since 6.18.0
|
|
261
|
+
*/
|
|
63
262
|
get shouldShowUserGuidanceView(): boolean;
|
|
64
263
|
set shouldShowUserGuidanceView(newValue: boolean);
|
|
264
|
+
/**
|
|
265
|
+
* When set to *true*, a list button will be shown to the user in the lower left hand corner of the screen. When tapped, this button will freeze the mode. This button triggers a call to BarcodeCountViewUiListener.didTapListButton().
|
|
266
|
+
*
|
|
267
|
+
* By default this property is *true*.
|
|
268
|
+
*
|
|
269
|
+
* @since 6.18.0
|
|
270
|
+
*/
|
|
65
271
|
get shouldShowListButton(): boolean;
|
|
66
272
|
set shouldShowListButton(newValue: boolean);
|
|
273
|
+
/**
|
|
274
|
+
* When set to *true*, the mode will disable automatically when the default exit button is tapped.
|
|
275
|
+
*
|
|
276
|
+
* By default this property is *true*.
|
|
277
|
+
*
|
|
278
|
+
* @since 7.0.0
|
|
279
|
+
*/
|
|
67
280
|
get shouldDisableModeOnExitButtonTapped(): boolean;
|
|
68
281
|
set shouldDisableModeOnExitButtonTapped(newValue: boolean);
|
|
282
|
+
/**
|
|
283
|
+
* When set to *true*, an exit button will be shown in the lower right hand corner of the screen. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to BarcodeCountViewUiListener.didTapExitButton().
|
|
284
|
+
*
|
|
285
|
+
* By default this property is *true*.
|
|
286
|
+
*
|
|
287
|
+
* @since 6.18.0
|
|
288
|
+
*/
|
|
69
289
|
get shouldShowExitButton(): boolean;
|
|
70
290
|
set shouldShowExitButton(newValue: boolean);
|
|
291
|
+
/**
|
|
292
|
+
* When set to *true*, a shutter button will be shown to the user centered in the bottom of the screen. This button triggers the processing of the current video feed. The same functionality can be triggered by calling {@link BarcodeCount.startScanningPhase}.
|
|
293
|
+
*
|
|
294
|
+
* By default this property is *true*.
|
|
295
|
+
*
|
|
296
|
+
* @since 6.18.0
|
|
297
|
+
*/
|
|
71
298
|
get shouldShowShutterButton(): boolean;
|
|
72
299
|
set shouldShowShutterButton(newValue: boolean);
|
|
300
|
+
/**
|
|
301
|
+
* When set to *true*, this view will show some messages about currently scanned barcodes.
|
|
302
|
+
*
|
|
303
|
+
* By default this property is *true*.
|
|
304
|
+
*
|
|
305
|
+
* @since 6.18.0
|
|
306
|
+
*/
|
|
73
307
|
get shouldShowHints(): boolean;
|
|
74
308
|
set shouldShowHints(newValue: boolean);
|
|
309
|
+
/**
|
|
310
|
+
* When set to *true*, a button will be shown above the default shutter button. This button clears all currently shown barcodes highlights.
|
|
311
|
+
*
|
|
312
|
+
* @since 6.18.0
|
|
313
|
+
*/
|
|
75
314
|
get shouldShowClearHighlightsButton(): boolean;
|
|
76
315
|
set shouldShowClearHighlightsButton(newValue: boolean);
|
|
316
|
+
/**
|
|
317
|
+
* When set to *true*, a button will be shown to the user in the lower left corner of the preview. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to BarcodeCountViewUiListener.didTapSingleScanButton().
|
|
318
|
+
*
|
|
319
|
+
* By default this property is *false*.
|
|
320
|
+
*
|
|
321
|
+
* @since 6.18.0
|
|
322
|
+
*/
|
|
77
323
|
get shouldShowSingleScanButton(): boolean;
|
|
78
324
|
set shouldShowSingleScanButton(newValue: boolean);
|
|
325
|
+
/**
|
|
326
|
+
* When set to *true*, a floating shutter button will be visible on screen. This button can be dragged to any position and, when tapped, will trigger the processing of the current video feed.
|
|
327
|
+
*
|
|
328
|
+
* By default this property is *false*.
|
|
329
|
+
*
|
|
330
|
+
* @since 6.18.0
|
|
331
|
+
*/
|
|
79
332
|
get shouldShowFloatingShutterButton(): boolean;
|
|
80
333
|
set shouldShowFloatingShutterButton(newValue: boolean);
|
|
334
|
+
/**
|
|
335
|
+
* When set to *true*, a collapsable toolbar will be visible at the top of the preview. This toolbar contains a set of convenience buttons for easy preference setting during scanning.
|
|
336
|
+
*
|
|
337
|
+
* By default this property is *true*.
|
|
338
|
+
*
|
|
339
|
+
* @since 6.18.0
|
|
340
|
+
*/
|
|
81
341
|
get shouldShowToolbar(): boolean;
|
|
82
342
|
set shouldShowToolbar(newValue: boolean);
|
|
343
|
+
/**
|
|
344
|
+
* When set to *true*, a button will be shown to the user in the lower right corner of the preview. This button toggles “status mode”, in which the normal barcode highlights will be replaced by status indicators for each barcode.
|
|
345
|
+
*
|
|
346
|
+
* @since 8.3.0
|
|
347
|
+
*/
|
|
83
348
|
get shouldShowStatusModeButton(): boolean;
|
|
84
349
|
set shouldShowStatusModeButton(newValue: boolean);
|
|
350
|
+
/**
|
|
351
|
+
* When enabled, status icons will be loaded immediately after barcodes are scanned, without requiring manual activation of status mode.
|
|
352
|
+
*
|
|
353
|
+
* @since 8.3.0
|
|
354
|
+
*/
|
|
85
355
|
get shouldShowStatusIconsOnScan(): boolean;
|
|
86
356
|
set shouldShowStatusIconsOnScan(newValue: boolean);
|
|
357
|
+
/**
|
|
358
|
+
* When set to *true*, this view will visualize the active scan area used for BarcodeCount. This is useful to check {@link DataCaptureView.scanAreaMargins|margins} defined on the {@link DataCaptureView} are set correctly. This property is meant for debugging during development and is not intended for use in production.
|
|
359
|
+
*
|
|
360
|
+
* By default this property is *false*.
|
|
361
|
+
*
|
|
362
|
+
* @since 6.18.0
|
|
363
|
+
*/
|
|
87
364
|
get shouldShowScanAreaGuides(): boolean;
|
|
88
365
|
set shouldShowScanAreaGuides(newValue: boolean);
|
|
366
|
+
/**
|
|
367
|
+
* The brush applied to recognized tracked barcodes if {@link BarcodeCountViewListener} is not implemented. When setting a {@link BarcodeCountCaptureList} to the mode, this brush will be used for recognized barcodes that are part of the target list. Setting this brush to *null* hides all tracked barcodes.
|
|
368
|
+
*
|
|
369
|
+
* Defaults to a yellow-colored Brush.
|
|
370
|
+
*
|
|
371
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
372
|
+
*
|
|
373
|
+
* @since 6.18.0
|
|
374
|
+
*/
|
|
89
375
|
get recognizedBrush(): Brush | null;
|
|
90
376
|
set recognizedBrush(newValue: Brush | null);
|
|
377
|
+
/**
|
|
378
|
+
* The brush applied to recognized tracked barcodes that are not part of the target {@link BarcodeCountCaptureList}, and only if {@link BarcodeCountViewListener} is not implemented. When {@link BarcodeCountCaptureList} is not set, this method will never be called. Setting this brush to *null* hides all tracked barcodes.
|
|
379
|
+
*
|
|
380
|
+
* Defaults to a red-colored Brush.
|
|
381
|
+
*
|
|
382
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
383
|
+
*
|
|
384
|
+
* @since 6.18.0
|
|
385
|
+
*/
|
|
91
386
|
get notInListBrush(): Brush | null;
|
|
92
387
|
set notInListBrush(newValue: Brush | null);
|
|
388
|
+
/**
|
|
389
|
+
* The brush applied to accepted tracked barcodes if {@link BarcodeCountViewListener} is not implemented. Setting this brush to *null* hides all accepted barcodes.
|
|
390
|
+
*
|
|
391
|
+
* Defaults to a green-colored Brush.
|
|
392
|
+
*
|
|
393
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
394
|
+
*
|
|
395
|
+
* @since 7.1.0
|
|
396
|
+
*/
|
|
93
397
|
get acceptedBrush(): Brush | null;
|
|
94
398
|
set acceptedBrush(newValue: Brush | null);
|
|
399
|
+
/**
|
|
400
|
+
* The brush applied to rejected tracked barcodes if {@link BarcodeCountViewListener} is not implemented. Setting this brush to *null* hides all rejected barcodes.
|
|
401
|
+
*
|
|
402
|
+
* Defaults to a red-colored Brush.
|
|
403
|
+
*
|
|
404
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
405
|
+
*
|
|
406
|
+
* @since 7.1.0
|
|
407
|
+
*/
|
|
95
408
|
get rejectedBrush(): Brush | null;
|
|
96
409
|
set rejectedBrush(newValue: Brush | null);
|
|
410
|
+
/**
|
|
411
|
+
* The style of the logo, either the extended “Scanning By Scandit” or the minimal “Scandit”.
|
|
412
|
+
*
|
|
413
|
+
* Default is {@link LogoStyle.Minimal}.
|
|
414
|
+
*
|
|
415
|
+
* @since 8.7.0
|
|
416
|
+
*/
|
|
417
|
+
get logoStyle(): LogoStyle;
|
|
418
|
+
set logoStyle(newValue: LogoStyle);
|
|
419
|
+
/**
|
|
420
|
+
* The anchor point used to position the Scandit logo.
|
|
421
|
+
*
|
|
422
|
+
* Default is {@link Anchor.BottomLeft}.
|
|
423
|
+
*
|
|
424
|
+
* @since 8.7.0
|
|
425
|
+
*/
|
|
426
|
+
get logoAnchor(): Anchor;
|
|
427
|
+
set logoAnchor(newValue: Anchor);
|
|
428
|
+
/**
|
|
429
|
+
* Use this property to access or modify the current view settings for barcode filtering.
|
|
430
|
+
*
|
|
431
|
+
* @since 6.18.0
|
|
432
|
+
*/
|
|
97
433
|
get filterSettings(): BarcodeFilterHighlightSettings | null;
|
|
98
434
|
set filterSettings(newValue: BarcodeFilterHighlightSettings | null);
|
|
435
|
+
/**
|
|
436
|
+
* The view style. Defaults to {@link BarcodeCountViewStyle.Dot}.
|
|
437
|
+
*
|
|
438
|
+
* @since 6.18.0
|
|
439
|
+
*/
|
|
99
440
|
get style(): BarcodeCountViewStyle;
|
|
441
|
+
/**
|
|
442
|
+
* Use this property to access or modify the accessibility hint for the list button provided by the view.
|
|
443
|
+
*
|
|
444
|
+
* Default value is “List button”.
|
|
445
|
+
*
|
|
446
|
+
* This property has effect only when running on iOS.
|
|
447
|
+
*
|
|
448
|
+
* @since 6.18.0
|
|
449
|
+
*/
|
|
100
450
|
get listButtonAccessibilityHint(): string;
|
|
101
451
|
set listButtonAccessibilityHint(newValue: string);
|
|
452
|
+
/**
|
|
453
|
+
* Use this property to access or modify the accessibility label for the list button provided by the view.
|
|
454
|
+
*
|
|
455
|
+
* Default value is “List button”.
|
|
456
|
+
*
|
|
457
|
+
* This property has effect only when running on iOS.
|
|
458
|
+
*
|
|
459
|
+
* @since 6.18.0
|
|
460
|
+
*/
|
|
102
461
|
get listButtonAccessibilityLabel(): string;
|
|
103
462
|
set listButtonAccessibilityLabel(newValue: string);
|
|
463
|
+
/**
|
|
464
|
+
* Use this property to access or modify the content description of the list button provided by the view.
|
|
465
|
+
*
|
|
466
|
+
* Default value is “List button”.
|
|
467
|
+
*
|
|
468
|
+
* This property has effect only when running on Android.
|
|
469
|
+
*
|
|
470
|
+
* @since 6.18.0
|
|
471
|
+
*/
|
|
104
472
|
get listButtonContentDescription(): string;
|
|
105
473
|
set listButtonContentDescription(newValue: string);
|
|
474
|
+
/**
|
|
475
|
+
* Use this property to access or modify the accessibility hint for the exit button provided by the view.
|
|
476
|
+
*
|
|
477
|
+
* Default value is “Exit button”.
|
|
478
|
+
*
|
|
479
|
+
* This property has effect only when running on iOS.
|
|
480
|
+
*
|
|
481
|
+
* @since 6.18.0
|
|
482
|
+
*/
|
|
106
483
|
get exitButtonAccessibilityHint(): string;
|
|
107
484
|
set exitButtonAccessibilityHint(newValue: string);
|
|
485
|
+
/**
|
|
486
|
+
* Use this property to access or modify the accessibility label for the exit button provided by the view.
|
|
487
|
+
*
|
|
488
|
+
* Default value is “Exit button”.
|
|
489
|
+
*
|
|
490
|
+
* This property has effect only when running on iOS.
|
|
491
|
+
*
|
|
492
|
+
* @since 6.18.0
|
|
493
|
+
*/
|
|
108
494
|
get exitButtonAccessibilityLabel(): string;
|
|
109
495
|
set exitButtonAccessibilityLabel(newValue: string);
|
|
496
|
+
/**
|
|
497
|
+
* Use this property to access or modify the content description of the exit button provided by the view.
|
|
498
|
+
*
|
|
499
|
+
* Default value is “Exit button”.
|
|
500
|
+
*
|
|
501
|
+
* This property has effect only when running on Android.
|
|
502
|
+
*
|
|
503
|
+
* @since 6.18.0
|
|
504
|
+
*/
|
|
110
505
|
get exitButtonContentDescription(): string;
|
|
111
506
|
set exitButtonContentDescription(newValue: string);
|
|
507
|
+
/**
|
|
508
|
+
* Use this property to access or modify the accessibility hint for the shutter button provided by the view.
|
|
509
|
+
*
|
|
510
|
+
* Default value is “Shutter button”.
|
|
511
|
+
*
|
|
512
|
+
* This property has effect only when running on iOS.
|
|
513
|
+
*
|
|
514
|
+
* @since 6.18.0
|
|
515
|
+
*/
|
|
112
516
|
get shutterButtonAccessibilityHint(): string;
|
|
113
517
|
set shutterButtonAccessibilityHint(newValue: string);
|
|
518
|
+
/**
|
|
519
|
+
* Use this property to access or modify the accessibility label for the shutter button provided by the view.
|
|
520
|
+
*
|
|
521
|
+
* Default value is “Shutter button”.
|
|
522
|
+
*
|
|
523
|
+
* This property has effect only when running on iOS.
|
|
524
|
+
*
|
|
525
|
+
* @since 6.18.0
|
|
526
|
+
*/
|
|
114
527
|
get shutterButtonAccessibilityLabel(): string;
|
|
115
528
|
set shutterButtonAccessibilityLabel(newValue: string);
|
|
529
|
+
/**
|
|
530
|
+
* Use this property to access or modify the content description of the shutter button provided by the view.
|
|
531
|
+
*
|
|
532
|
+
* Default value is “Shutter button”.
|
|
533
|
+
*
|
|
534
|
+
* This property has effect only when running on Android.
|
|
535
|
+
*
|
|
536
|
+
* @since 6.18.0
|
|
537
|
+
*/
|
|
116
538
|
get shutterButtonContentDescription(): string;
|
|
117
539
|
set shutterButtonContentDescription(newValue: string);
|
|
540
|
+
/**
|
|
541
|
+
* Use this property to access or modify the accessibility hint for the floating shutter button provided by the view.
|
|
542
|
+
*
|
|
543
|
+
* Default value is “Floating shutter button”.
|
|
544
|
+
*
|
|
545
|
+
* This property has effect only when running on iOS.
|
|
546
|
+
*
|
|
547
|
+
* @since 6.18.0
|
|
548
|
+
*/
|
|
118
549
|
get floatingShutterButtonAccessibilityHint(): string;
|
|
119
550
|
set floatingShutterButtonAccessibilityHint(newValue: string);
|
|
551
|
+
/**
|
|
552
|
+
* Use this property to access or modify the accessibility label for the floating shutter button provided by the view.
|
|
553
|
+
*
|
|
554
|
+
* Default value is “Floating shutter button”.
|
|
555
|
+
*
|
|
556
|
+
* This property has effect only when running on iOS.
|
|
557
|
+
*
|
|
558
|
+
* @since 6.18.0
|
|
559
|
+
*/
|
|
120
560
|
get floatingShutterButtonAccessibilityLabel(): string;
|
|
121
561
|
set floatingShutterButtonAccessibilityLabel(newValue: string);
|
|
562
|
+
/**
|
|
563
|
+
* Use this property to access or modify the content description for the floating shutter button provided by the view.
|
|
564
|
+
*
|
|
565
|
+
* Default value is “Floating shutter button”.
|
|
566
|
+
*
|
|
567
|
+
* @since 6.18.0
|
|
568
|
+
*/
|
|
122
569
|
get floatingShutterButtonContentDescription(): string;
|
|
123
570
|
set floatingShutterButtonContentDescription(newValue: string);
|
|
571
|
+
/**
|
|
572
|
+
* Use this property to access or modify the accessibility hint for the clear highlights button provided by the view.
|
|
573
|
+
*
|
|
574
|
+
* Default value is “Clear highlights button”.
|
|
575
|
+
*
|
|
576
|
+
* This property has effect only when running on iOS.
|
|
577
|
+
*
|
|
578
|
+
* @since 6.18.0
|
|
579
|
+
*/
|
|
124
580
|
get clearHighlightsButtonAccessibilityHint(): string;
|
|
125
581
|
set clearHighlightsButtonAccessibilityHint(newValue: string);
|
|
582
|
+
/**
|
|
583
|
+
* Use this property to access or modify the accessibility label for the clear highlights button provided by the view.
|
|
584
|
+
*
|
|
585
|
+
* Default value is “Clear highlights button”.
|
|
586
|
+
*
|
|
587
|
+
* This property has effect only when running on iOS.
|
|
588
|
+
*
|
|
589
|
+
* @since 6.18.0
|
|
590
|
+
*/
|
|
126
591
|
get clearHighlightsButtonAccessibilityLabel(): string;
|
|
127
592
|
set clearHighlightsButtonAccessibilityLabel(newValue: string);
|
|
593
|
+
/**
|
|
594
|
+
* Use this property to access or modify the content description of the “clear highlights” button provided by the view.
|
|
595
|
+
*
|
|
596
|
+
* Default value is “Clear highlights button”.
|
|
597
|
+
*
|
|
598
|
+
* This property has effect only when running on Android.
|
|
599
|
+
*
|
|
600
|
+
* @since 6.18.0
|
|
601
|
+
*/
|
|
128
602
|
get clearHighlightsButtonContentDescription(): string;
|
|
129
603
|
set clearHighlightsButtonContentDescription(newValue: string);
|
|
604
|
+
/**
|
|
605
|
+
* Use this property to access or modify the accessibility hint for the single scan button provided by the view.
|
|
606
|
+
*
|
|
607
|
+
* Default value is “Single scan button”.
|
|
608
|
+
*
|
|
609
|
+
* This property has effect only when running on iOS.
|
|
610
|
+
*
|
|
611
|
+
* @since 6.18.0
|
|
612
|
+
*/
|
|
130
613
|
get singleScanButtonAccessibilityHint(): string;
|
|
131
614
|
set singleScanButtonAccessibilityHint(newValue: string);
|
|
615
|
+
/**
|
|
616
|
+
* Use this property to access or modify the accessibility label for the single scan button provided by the view.
|
|
617
|
+
*
|
|
618
|
+
* Default value is “Single scan button”.
|
|
619
|
+
*
|
|
620
|
+
* This property has effect only when running on iOS.
|
|
621
|
+
*
|
|
622
|
+
* @since 6.18.0
|
|
623
|
+
*/
|
|
132
624
|
get singleScanButtonAccessibilityLabel(): string;
|
|
133
625
|
set singleScanButtonAccessibilityLabel(newValue: string);
|
|
626
|
+
/**
|
|
627
|
+
* Use this property to access or modify the content description of the “single scan” button provided by the view.
|
|
628
|
+
*
|
|
629
|
+
* Default value is “Single scan button”.
|
|
630
|
+
*
|
|
631
|
+
* This property has effect only when running on Android.
|
|
632
|
+
*
|
|
633
|
+
* @since 6.18.0
|
|
634
|
+
*/
|
|
134
635
|
get singleScanButtonContentDescription(): string;
|
|
135
636
|
set singleScanButtonContentDescription(newValue: string);
|
|
637
|
+
/**
|
|
638
|
+
* Use this property to access or modify the accessibility hint for the status mode button provided by the view.
|
|
639
|
+
*
|
|
640
|
+
* Default value is “Status mode button”.
|
|
641
|
+
*
|
|
642
|
+
* @since 8.3.0
|
|
643
|
+
*/
|
|
136
644
|
get statusModeButtonAccessibilityHint(): string;
|
|
137
645
|
set statusModeButtonAccessibilityHint(newValue: string);
|
|
646
|
+
/**
|
|
647
|
+
* Use this property to access or modify the accessibility label for the single status mode button provided by the view.
|
|
648
|
+
*
|
|
649
|
+
* Default value is “Status mode button”.
|
|
650
|
+
*
|
|
651
|
+
* This property has effect only when running on iOS.
|
|
652
|
+
*
|
|
653
|
+
* @since 8.3.0
|
|
654
|
+
*/
|
|
138
655
|
get statusModeButtonAccessibilityLabel(): string;
|
|
139
656
|
set statusModeButtonAccessibilityLabel(newValue: string);
|
|
657
|
+
/**
|
|
658
|
+
* Gets or sets the content description for the status mode button provided by the view.
|
|
659
|
+
*
|
|
660
|
+
* Default value is “Status mode button”.
|
|
661
|
+
*
|
|
662
|
+
* This property has effect only when running on Android.
|
|
663
|
+
*
|
|
664
|
+
* @since 8.3.0
|
|
665
|
+
*/
|
|
140
666
|
get statusModeButtonContentDescription(): string;
|
|
141
667
|
set statusModeButtonContentDescription(newValue: string);
|
|
668
|
+
/**
|
|
669
|
+
* Use this property to access or modify the text of the clear button label provided by the view.
|
|
670
|
+
*
|
|
671
|
+
* Default value is “Clear screen”.
|
|
672
|
+
*
|
|
673
|
+
* @since 6.18.0
|
|
674
|
+
*/
|
|
142
675
|
get clearHighlightsButtonText(): string;
|
|
143
676
|
set clearHighlightsButtonText(newValue: string);
|
|
677
|
+
/**
|
|
678
|
+
* Use this property to access or modify the text of the exit button label provided by the view.
|
|
679
|
+
*
|
|
680
|
+
* Default value is “Finish”.
|
|
681
|
+
*
|
|
682
|
+
* @since 6.18.0
|
|
683
|
+
*/
|
|
144
684
|
get exitButtonText(): string;
|
|
145
685
|
set exitButtonText(newValue: string);
|
|
686
|
+
/**
|
|
687
|
+
* Use this property to access or modify the text of the hint which suggests to tap the shutter button.
|
|
688
|
+
*
|
|
689
|
+
* Default value is “Tap shutter to scan items”.
|
|
690
|
+
*
|
|
691
|
+
* @since 6.18.0
|
|
692
|
+
*/
|
|
146
693
|
get textForTapShutterToScanHint(): string;
|
|
147
694
|
set textForTapShutterToScanHint(newValue: string);
|
|
695
|
+
/**
|
|
696
|
+
* Use this property to access or modify the text of the hint displayed while scanning is in progress.
|
|
697
|
+
*
|
|
698
|
+
* Default value is “Scanning”.
|
|
699
|
+
*
|
|
700
|
+
* @since 6.18.0
|
|
701
|
+
*/
|
|
148
702
|
get textForScanningHint(): string;
|
|
149
703
|
set textForScanningHint(newValue: string);
|
|
704
|
+
/**
|
|
705
|
+
* Use this property to access or modify the text of the hint displayed when camera should be moved closer to rescan.
|
|
706
|
+
*
|
|
707
|
+
* Default value is “Move closer and tap shutter”.
|
|
708
|
+
*
|
|
709
|
+
* @since 6.18.0
|
|
710
|
+
*/
|
|
150
711
|
get textForMoveCloserAndRescanHint(): string;
|
|
151
712
|
set textForMoveCloserAndRescanHint(newValue: string);
|
|
713
|
+
/**
|
|
714
|
+
* Use this property to access or modify the text of the hint displayed when camera should be further away to rescan.
|
|
715
|
+
*
|
|
716
|
+
* Default value is “Step back and tap shutter”.
|
|
717
|
+
*
|
|
718
|
+
* @since 6.18.0
|
|
719
|
+
*/
|
|
152
720
|
get textForMoveFurtherAndRescanHint(): string;
|
|
153
721
|
set textForMoveFurtherAndRescanHint(newValue: string);
|
|
722
|
+
/**
|
|
723
|
+
* Use this property to access or modify the text of the hint displayed when a barcode not in list is scanned.
|
|
724
|
+
*
|
|
725
|
+
* Default value is “Wrong barcodes detected!”.
|
|
726
|
+
*
|
|
727
|
+
* @since 8.3.0
|
|
728
|
+
*/
|
|
154
729
|
get textForBarcodesNotInListDetectedHint(): string;
|
|
155
730
|
set textForBarcodesNotInListDetectedHint(newValue: string);
|
|
731
|
+
/**
|
|
732
|
+
* Use this property to access or modify the text of the hint displayed when screen is cleaned.
|
|
733
|
+
*
|
|
734
|
+
* Default value is “Screen cleaned up. All items saved.”.
|
|
735
|
+
*
|
|
736
|
+
* @since 8.3.0
|
|
737
|
+
*/
|
|
156
738
|
get textForScreenCleanedUpHint(): string;
|
|
157
739
|
set textForScreenCleanedUpHint(newValue: string);
|
|
740
|
+
/**
|
|
741
|
+
* Use this property to access or modify the text of the hint that suggests the user to use gestures to form clusters. Shown only when {@link BarcodeCountSettings.clusteringMode} is {@link ClusteringMode.Manual} or {@link ClusteringMode.AutoWithManualCorrection}.
|
|
742
|
+
*
|
|
743
|
+
* Default value is “Swipe or circle codes to group together.”.
|
|
744
|
+
*
|
|
745
|
+
* @since 8.3.0
|
|
746
|
+
*/
|
|
158
747
|
get textForClusteringGestureHint(): string;
|
|
159
748
|
set textForClusteringGestureHint(newValue: string);
|
|
749
|
+
/**
|
|
750
|
+
* When set to *true*, a progress bar will be shown to the user when a capture list has been set using {@link BarcodeCount.setBarcodeCountCaptureList}, indicating how many of the barcodes in the list have been scanned.
|
|
751
|
+
*
|
|
752
|
+
* By default this property is *true*.
|
|
753
|
+
*
|
|
754
|
+
* @since 6.25.0
|
|
755
|
+
*/
|
|
160
756
|
get shouldShowListProgressBar(): boolean;
|
|
161
757
|
set shouldShowListProgressBar(newValue: boolean);
|
|
758
|
+
/**
|
|
759
|
+
* Indicates whether the torch control button should be shown to the user.
|
|
760
|
+
*
|
|
761
|
+
* Default is *false*.
|
|
762
|
+
*
|
|
763
|
+
* @since 6.26.0
|
|
764
|
+
*/
|
|
162
765
|
get shouldShowTorchControl(): boolean;
|
|
163
766
|
set shouldShowTorchControl(newValue: boolean);
|
|
767
|
+
/**
|
|
768
|
+
* Updates the position of the torch control button.
|
|
769
|
+
*
|
|
770
|
+
* Only {@link Anchor.TopLeft}, {@link Anchor.TopRight}, {@link Anchor.BottomLeft} and {@link Anchor.BottomRight}, are supported.
|
|
771
|
+
*
|
|
772
|
+
* Any other value will default to {@link Anchor.TopLeft}.
|
|
773
|
+
*
|
|
774
|
+
* @since 6.26.0
|
|
775
|
+
*/
|
|
164
776
|
get torchControlPosition(): Anchor;
|
|
165
777
|
set torchControlPosition(newValue: Anchor);
|
|
778
|
+
/**
|
|
779
|
+
* Text of the hint displayed when the user deselects an item.
|
|
780
|
+
*
|
|
781
|
+
* Default value is “Barcode removed”.
|
|
782
|
+
*
|
|
783
|
+
* @since 7.0.0
|
|
784
|
+
*/
|
|
166
785
|
get textForTapToUncountHint(): string;
|
|
167
786
|
set textForTapToUncountHint(newValue: string);
|
|
787
|
+
/**
|
|
788
|
+
* Enables this feature to be able to deselect items by tapping on the highlights.
|
|
789
|
+
*
|
|
790
|
+
* Default value is *false*.
|
|
791
|
+
*
|
|
792
|
+
* @since 7.0.0
|
|
793
|
+
*/
|
|
168
794
|
get tapToUncountEnabled(): boolean;
|
|
169
795
|
set tapToUncountEnabled(newValue: boolean);
|
|
796
|
+
/**
|
|
797
|
+
* Use this object to customize barcode not in list actions.
|
|
798
|
+
*
|
|
799
|
+
* @since 7.1.0
|
|
800
|
+
*/
|
|
170
801
|
get barcodeNotInListActionSettings(): BarcodeCountNotInListActionSettings;
|
|
171
802
|
set barcodeNotInListActionSettings(newValue: BarcodeCountNotInListActionSettings);
|
|
803
|
+
/**
|
|
804
|
+
* Enables the {@link BarcodeCountView} to react to clicks of the volume button.
|
|
805
|
+
*
|
|
806
|
+
* This method is only supported on iOS devices.
|
|
807
|
+
*
|
|
808
|
+
* @since 7.1.0
|
|
809
|
+
*/
|
|
172
810
|
get hardwareTriggerEnabled(): boolean;
|
|
173
811
|
set hardwareTriggerEnabled(newValue: boolean);
|
|
174
812
|
private baseBarcodeCountView;
|
|
@@ -178,8 +816,25 @@ declare class BarcodeCountView {
|
|
|
178
816
|
private get htmlElementState();
|
|
179
817
|
private scrollListener;
|
|
180
818
|
private domObserver;
|
|
819
|
+
/**
|
|
820
|
+
* Constructs a new barcode count view.
|
|
821
|
+
*
|
|
822
|
+
* @since 6.18.0
|
|
823
|
+
*/
|
|
181
824
|
static forContextWithMode(context: DataCaptureContext, barcodeCount: BarcodeCount): BarcodeCountView;
|
|
825
|
+
/**
|
|
826
|
+
* Constructs a new barcode count view.
|
|
827
|
+
*
|
|
828
|
+
* @since 6.18.0
|
|
829
|
+
*/
|
|
182
830
|
static forContextWithModeAndStyle(context: DataCaptureContext, barcodeCount: BarcodeCount, style: BarcodeCountViewStyle): BarcodeCountView;
|
|
831
|
+
/**
|
|
832
|
+
* Constructs a new barcode count view to use with the grid mapping flow.
|
|
833
|
+
*
|
|
834
|
+
* The grid mapping flow only supports grids of 4 rows by 2 columns.
|
|
835
|
+
*
|
|
836
|
+
* @since 8.3.0
|
|
837
|
+
*/
|
|
183
838
|
static forMapping(context: DataCaptureContext, barcodeCount: BarcodeCount, style: BarcodeCountViewStyle, mappingFlowSettings: BarcodeCountMappingFlowSettings): BarcodeCountView;
|
|
184
839
|
constructor({ context, barcodeCount, style, mappingFlowSettings, }: {
|
|
185
840
|
context: DataCaptureContext;
|
|
@@ -188,18 +843,153 @@ declare class BarcodeCountView {
|
|
|
188
843
|
mappingFlowSettings?: BarcodeCountMappingFlowSettings;
|
|
189
844
|
});
|
|
190
845
|
private orientationChangeListener;
|
|
846
|
+
/**
|
|
847
|
+
* Clear all currently shown barcodes highlights. This only affects screen rendering, and all detected barcodes will still be available in the {@link BarcodeCountSession}.
|
|
848
|
+
*
|
|
849
|
+
* @since 6.18.0
|
|
850
|
+
*/
|
|
191
851
|
clearHighlights(): Promise<void>;
|
|
852
|
+
/**
|
|
853
|
+
* Pass an instance of {@link BarcodeCountToolbarSettings} to configure the text and accessibility options for the toolbar.
|
|
854
|
+
*
|
|
855
|
+
* @since 6.18.0
|
|
856
|
+
*/
|
|
192
857
|
setToolbarSettings(settings: BarcodeCountToolbarSettings): void;
|
|
858
|
+
/**
|
|
859
|
+
* Sets a {@link BarcodeCountStatusProvider} for this view. This provider will be queried when the “status mode” button is clicked.
|
|
860
|
+
*
|
|
861
|
+
* The Barcode Count status mode API is still in beta and may change in future versions of Scandit Data Capture SDK.
|
|
862
|
+
*
|
|
863
|
+
* @since 8.3.0
|
|
864
|
+
*/
|
|
193
865
|
setStatusProvider(provider: BarcodeCountStatusProvider): void;
|
|
866
|
+
/**
|
|
867
|
+
* Connect the data capture view to a given HTML element, so it’s size and position can be mirrored.
|
|
868
|
+
*
|
|
869
|
+
* To position the barcode count view below the WebView and show content over the camera preview, change the z-index of the element to be less than 0. If you do this, make sure that the background of your HTML page is transparent, so the barcode count view positioned under the WebView can be seen.
|
|
870
|
+
*
|
|
871
|
+
* Should not be used together with {@link BarcodeCountView.setFrame}. One strategy to size the capture view should be chosen.
|
|
872
|
+
*
|
|
873
|
+
* @since 6.18.0
|
|
874
|
+
*/
|
|
194
875
|
connectToElement(element: HTMLElement): void;
|
|
876
|
+
/**
|
|
877
|
+
* Detach the barcode count view from the currently connected HTML element. This releases the HTML element and removes any listeners or resources related to it.
|
|
878
|
+
*
|
|
879
|
+
* @since 6.18.0
|
|
880
|
+
*/
|
|
195
881
|
detachFromElement(): void;
|
|
882
|
+
/**
|
|
883
|
+
* Manually set a specific size and position for the barcode count view.
|
|
884
|
+
*
|
|
885
|
+
* To position the barcode count view below the WebView and show content over the camera preview, set the isUnderContent argument to *true*. If you do this, make sure that the background of your HTML page is transparent, so the barcode count view positioned under the WebView can be seen.
|
|
886
|
+
*
|
|
887
|
+
* Should not be used together with {@link BarcodeCountView.connectToElement}. One strategy to size the capture view should be chosen.
|
|
888
|
+
*
|
|
889
|
+
* @since 6.18.0
|
|
890
|
+
*/
|
|
196
891
|
setFrame(frame: Rect, isUnderContent?: boolean): Promise<void>;
|
|
892
|
+
/**
|
|
893
|
+
* Sets the view to be visible.
|
|
894
|
+
*
|
|
895
|
+
* Should only be used with {@link BarcodeCountView.setFrame}.
|
|
896
|
+
*
|
|
897
|
+
* @since 6.18.0
|
|
898
|
+
*/
|
|
197
899
|
show(): Promise<void>;
|
|
900
|
+
/**
|
|
901
|
+
* Sets the view not to be visible.
|
|
902
|
+
*
|
|
903
|
+
* Should only be used with {@link BarcodeCountView.setFrame}.
|
|
904
|
+
*
|
|
905
|
+
* @since 6.18.0
|
|
906
|
+
*/
|
|
198
907
|
hide(): Promise<void>;
|
|
908
|
+
/**
|
|
909
|
+
* Sets a {@link Brush} to be used for a particular recognized {@link TrackedBarcode}. This will override any other applicable brush for this particular barcode.
|
|
910
|
+
*
|
|
911
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
912
|
+
*
|
|
913
|
+
* @since 7.1.0
|
|
914
|
+
*/
|
|
199
915
|
setBrushForRecognizedBarcode(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
|
|
916
|
+
/**
|
|
917
|
+
* Sets a {@link Brush} to be used for a particular recognized {@link TrackedBarcode} that doesn’t belong to the capture list. This will only be applicable when using a capture list, and will override any other applicable brush for this particular barcode.
|
|
918
|
+
*
|
|
919
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
920
|
+
*
|
|
921
|
+
* @since 7.1.0
|
|
922
|
+
*/
|
|
200
923
|
setBrushForRecognizedBarcodeNotInList(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
|
|
924
|
+
/**
|
|
925
|
+
* Sets a {@link Brush} to be used for a particular accepted {@link TrackedBarcode}. This will override any other applicable brush for this particular barcode.
|
|
926
|
+
*
|
|
927
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
928
|
+
*
|
|
929
|
+
* @since 7.1.0
|
|
930
|
+
*/
|
|
201
931
|
setBrushForAcceptedBarcode(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
|
|
932
|
+
/**
|
|
933
|
+
* Sets a {@link Brush} to be used for a particular rejected {@link TrackedBarcode}. This will override any other applicable brush for this particular barcode.
|
|
934
|
+
*
|
|
935
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Dot} style.
|
|
936
|
+
*
|
|
937
|
+
* @since 7.1.0
|
|
938
|
+
*/
|
|
202
939
|
setBrushForRejectedBarcode(trackedBarcode: TrackedBarcode, brush: Brush | null): Promise<void>;
|
|
940
|
+
/**
|
|
941
|
+
* Sets a {@link BarcodeCountIcon} to be used for a particular recognized {@link TrackedBarcode}. This will override any other applicable icon for this particular barcode.
|
|
942
|
+
*
|
|
943
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Icon} style.
|
|
944
|
+
*
|
|
945
|
+
* On iOS, passing *null* suppresses the highlight for the given barcode. On Android, passing *null* removes the override, so the barcode reverts to its default or listener-provided icon.
|
|
946
|
+
*
|
|
947
|
+
* The icon is applied while answering the corresponding view listener callback for that barcode. Calling this method at another time resolves without changing the icon, as the pre-existing brush setters do.
|
|
948
|
+
*
|
|
949
|
+
* @since 8.7.0
|
|
950
|
+
*/
|
|
951
|
+
setIconForRecognizedBarcode(trackedBarcode: TrackedBarcode, icon: BarcodeCountIcon | null): Promise<void>;
|
|
952
|
+
/**
|
|
953
|
+
* Sets a {@link BarcodeCountIcon} to be used for a particular recognized {@link TrackedBarcode} that doesn’t belong to the capture list. This will only be applicable when using a capture list, and will override any other applicable icon for this particular barcode.
|
|
954
|
+
*
|
|
955
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Icon} style.
|
|
956
|
+
*
|
|
957
|
+
* On iOS, passing *null* suppresses the highlight for the given barcode. On Android, passing *null* removes the override, so the barcode reverts to its default or listener-provided icon.
|
|
958
|
+
*
|
|
959
|
+
* The icon is applied while answering the corresponding view listener callback for that barcode. Calling this method at another time resolves without changing the icon, as the pre-existing brush setters do.
|
|
960
|
+
*
|
|
961
|
+
* @since 8.7.0
|
|
962
|
+
*/
|
|
963
|
+
setIconForRecognizedBarcodeNotInList(trackedBarcode: TrackedBarcode, icon: BarcodeCountIcon | null): Promise<void>;
|
|
964
|
+
/**
|
|
965
|
+
* Sets a {@link BarcodeCountIcon} to be used for a particular accepted {@link TrackedBarcode}. This will override any other applicable icon for this particular barcode.
|
|
966
|
+
*
|
|
967
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Icon} style.
|
|
968
|
+
*
|
|
969
|
+
* On iOS, passing *null* suppresses the highlight for the given barcode. On Android, passing *null* removes the override, so the barcode reverts to its default or listener-provided icon.
|
|
970
|
+
*
|
|
971
|
+
* The icon is applied while answering the corresponding view listener callback for that barcode. Calling this method at another time resolves without changing the icon, as the pre-existing brush setters do.
|
|
972
|
+
*
|
|
973
|
+
* @since 8.7.0
|
|
974
|
+
*/
|
|
975
|
+
setIconForAcceptedBarcode(trackedBarcode: TrackedBarcode, icon: BarcodeCountIcon | null): Promise<void>;
|
|
976
|
+
/**
|
|
977
|
+
* Sets a {@link BarcodeCountIcon} to be used for a particular rejected {@link TrackedBarcode}. This will override any other applicable icon for this particular barcode.
|
|
978
|
+
*
|
|
979
|
+
* Used only when the view uses the {@link BarcodeCountViewStyle.Icon} style.
|
|
980
|
+
*
|
|
981
|
+
* On iOS, passing *null* suppresses the highlight for the given barcode. On Android, passing *null* removes the override, so the barcode reverts to its default or listener-provided icon.
|
|
982
|
+
*
|
|
983
|
+
* The icon is applied while answering the corresponding view listener callback for that barcode. Calling this method at another time resolves without changing the icon, as the pre-existing brush setters do.
|
|
984
|
+
*
|
|
985
|
+
* @since 8.7.0
|
|
986
|
+
*/
|
|
987
|
+
setIconForRejectedBarcode(trackedBarcode: TrackedBarcode, icon: BarcodeCountIcon | null): Promise<void>;
|
|
988
|
+
/**
|
|
989
|
+
* This method is only supported on Android devices and is only available on devices with api >= 28. Whether a device supports this can be checked at runtime with the {@link BarcodeCountView.hardwareTriggerSupported} flag.
|
|
990
|
+
*
|
|
991
|
+
* @since 7.1.0
|
|
992
|
+
*/
|
|
203
993
|
enableHardwareTrigger(hardwareTriggerKeyCode: number | null): Promise<void>;
|
|
204
994
|
private subscribeToChangesOnHTMLElement;
|
|
205
995
|
private unsubscribeFromChangesOnHTMLElement;
|
|
@@ -210,66 +1000,269 @@ declare class BarcodeCountView {
|
|
|
210
1000
|
private toJSON;
|
|
211
1001
|
}
|
|
212
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* {@link BarcodeFind} comes with a ready-to-use search UI that uses augmented reality overlays to highlight items that match predefined criteria. The BarcodeFindView integrates with any app in just a few lines of code.
|
|
1005
|
+
*
|
|
1006
|
+
* @since 6.22.0
|
|
1007
|
+
*/
|
|
213
1008
|
declare class BarcodeFindView {
|
|
214
1009
|
private baseBarcodeFindView;
|
|
215
1010
|
private htmlElement;
|
|
216
1011
|
private _htmlElementState;
|
|
217
1012
|
private scrollListener;
|
|
218
1013
|
private domObserver;
|
|
1014
|
+
/**
|
|
1015
|
+
* Constructs a new BarcodeFind view with the given view props.
|
|
1016
|
+
*
|
|
1017
|
+
* @since 7.6.0
|
|
1018
|
+
*/
|
|
219
1019
|
constructor(props: BarcodeFindViewProps);
|
|
220
1020
|
private set htmlElementState(value);
|
|
221
1021
|
private get htmlElementState();
|
|
222
1022
|
private updatePositionAndSize;
|
|
223
1023
|
private orientationChangeListener;
|
|
1024
|
+
/**
|
|
1025
|
+
* Sets the listener which is called whenever the finish button is tapped from the view.
|
|
1026
|
+
*
|
|
1027
|
+
* @since 6.22.0
|
|
1028
|
+
*/
|
|
224
1029
|
get barcodeFindViewUiListener(): BarcodeFindViewUiListener | null;
|
|
225
1030
|
set barcodeFindViewUiListener(value: BarcodeFindViewUiListener | null);
|
|
1031
|
+
/**
|
|
1032
|
+
* Returns whether the device supports listening for hardware button events. This is true for devices with api >= 28.
|
|
1033
|
+
*
|
|
1034
|
+
* @since 7.1.0
|
|
1035
|
+
*/
|
|
226
1036
|
static get hardwareTriggerSupported(): boolean;
|
|
1037
|
+
/**
|
|
1038
|
+
* Indicates whether guidance should be shown to the user.
|
|
1039
|
+
*
|
|
1040
|
+
* Default is *true*.
|
|
1041
|
+
*
|
|
1042
|
+
* @since 6.22.0
|
|
1043
|
+
*/
|
|
227
1044
|
get shouldShowUserGuidanceView(): boolean;
|
|
228
1045
|
set shouldShowUserGuidanceView(value: boolean);
|
|
1046
|
+
/**
|
|
1047
|
+
* Indicates whether hints should be shown to the user.
|
|
1048
|
+
*
|
|
1049
|
+
* Default is *true*.
|
|
1050
|
+
*
|
|
1051
|
+
* @since 6.22.0
|
|
1052
|
+
*/
|
|
229
1053
|
get shouldShowHints(): boolean;
|
|
230
1054
|
set shouldShowHints(value: boolean);
|
|
1055
|
+
/**
|
|
1056
|
+
* Indicates whether the item carousel should be shown to the user.
|
|
1057
|
+
*
|
|
1058
|
+
* Default is *true*.
|
|
1059
|
+
*
|
|
1060
|
+
* @since 6.22.0
|
|
1061
|
+
*/
|
|
231
1062
|
get shouldShowCarousel(): boolean;
|
|
232
1063
|
set shouldShowCarousel(value: boolean);
|
|
1064
|
+
/**
|
|
1065
|
+
* Indicates whether the pause button should be shown to the user.
|
|
1066
|
+
*
|
|
1067
|
+
* Default is *true*.
|
|
1068
|
+
*
|
|
1069
|
+
* @since 6.22.0
|
|
1070
|
+
*/
|
|
233
1071
|
get shouldShowPauseButton(): boolean;
|
|
234
1072
|
set shouldShowPauseButton(value: boolean);
|
|
1073
|
+
/**
|
|
1074
|
+
* Indicates whether the finish button should be shown to the user.
|
|
1075
|
+
*
|
|
1076
|
+
* Default is *true*.
|
|
1077
|
+
*
|
|
1078
|
+
* @since 6.22.0
|
|
1079
|
+
*/
|
|
235
1080
|
get shouldShowFinishButton(): boolean;
|
|
236
1081
|
set shouldShowFinishButton(value: boolean);
|
|
1082
|
+
/**
|
|
1083
|
+
* Indicates whether the progress bar should be shown to the user.
|
|
1084
|
+
*
|
|
1085
|
+
* Default is *false*.
|
|
1086
|
+
*
|
|
1087
|
+
* @since 6.22.0
|
|
1088
|
+
*/
|
|
237
1089
|
get shouldShowProgressBar(): boolean;
|
|
238
1090
|
set shouldShowProgressBar(value: boolean);
|
|
1091
|
+
/**
|
|
1092
|
+
* Indicates whether the torch control button should be shown to the user.
|
|
1093
|
+
*
|
|
1094
|
+
* Default is *false*.
|
|
1095
|
+
*
|
|
1096
|
+
* @since 6.22.0
|
|
1097
|
+
*/
|
|
239
1098
|
get shouldShowTorchControl(): boolean;
|
|
240
1099
|
set shouldShowTorchControl(value: boolean);
|
|
1100
|
+
/**
|
|
1101
|
+
* Indicates whether the zoom control should be shown to the user, allowing them to switch between the normal and ultra-wide lenses.
|
|
1102
|
+
*
|
|
1103
|
+
* Default is *false*.
|
|
1104
|
+
*
|
|
1105
|
+
* The zoom control requires a device with an ultra-wide camera. On devices without an ultra-wide camera, setting this property to *true* has no effect.
|
|
1106
|
+
*
|
|
1107
|
+
* @since 7.1.0
|
|
1108
|
+
*/
|
|
241
1109
|
get shouldShowZoomControl(): boolean;
|
|
242
1110
|
set shouldShowZoomControl(value: boolean);
|
|
1111
|
+
/**
|
|
1112
|
+
* Updates the position of the torch control button.
|
|
1113
|
+
*
|
|
1114
|
+
* Only {@link Anchor.TopLeft}, {@link Anchor.TopCenter}, {@link Anchor.TopRight} and {@link Anchor.BottomLeft} are supported.
|
|
1115
|
+
*
|
|
1116
|
+
* Any other value will default to {@link Anchor.TopLeft}.
|
|
1117
|
+
*
|
|
1118
|
+
* @since 6.22.0
|
|
1119
|
+
*/
|
|
243
1120
|
get torchControlPosition(): Anchor;
|
|
244
1121
|
set torchControlPosition(value: Anchor);
|
|
1122
|
+
/**
|
|
1123
|
+
* Overrides the default text displayed in the button for collapsing the item carousel.
|
|
1124
|
+
*
|
|
1125
|
+
* Default is *null*.
|
|
1126
|
+
*
|
|
1127
|
+
* @since 6.22.0
|
|
1128
|
+
*/
|
|
245
1129
|
get textForCollapseCardsButton(): string | null;
|
|
246
1130
|
set textForCollapseCardsButton(value: string | null);
|
|
1131
|
+
/**
|
|
1132
|
+
* Overrides the default text displayed in the green confirmation view shown when all items have been found.
|
|
1133
|
+
*
|
|
1134
|
+
* Default is *null*.
|
|
1135
|
+
*
|
|
1136
|
+
* @since 6.22.0
|
|
1137
|
+
*/
|
|
247
1138
|
get textForAllItemsFoundSuccessfullyHint(): string | null;
|
|
248
1139
|
set textForAllItemsFoundSuccessfullyHint(value: string | null);
|
|
1140
|
+
/**
|
|
1141
|
+
* Overrides the default text displayed in the confirmation view shown when the item list has been updated.
|
|
1142
|
+
*
|
|
1143
|
+
* Default is *null*.
|
|
1144
|
+
*
|
|
1145
|
+
* @since 6.24.0
|
|
1146
|
+
*/
|
|
249
1147
|
get textForItemListUpdatedHint(): string | null;
|
|
250
1148
|
set textForItemListUpdatedHint(value: string | null);
|
|
1149
|
+
/**
|
|
1150
|
+
* Overrides the default text displayed in the confirmation view shown when the item list has been updated and search is paused.
|
|
1151
|
+
*
|
|
1152
|
+
* Default is *null*.
|
|
1153
|
+
*
|
|
1154
|
+
* @since 6.24.0
|
|
1155
|
+
*/
|
|
251
1156
|
get textForItemListUpdatedWhenPausedHint(): string | null;
|
|
252
1157
|
set textForItemListUpdatedWhenPausedHint(value: string | null);
|
|
1158
|
+
/**
|
|
1159
|
+
* Overrides the default text for the “Point at barcodes to search” hint.
|
|
1160
|
+
*
|
|
1161
|
+
* Default is *null*.
|
|
1162
|
+
*
|
|
1163
|
+
* @since 6.22.0
|
|
1164
|
+
*/
|
|
253
1165
|
get textForPointAtBarcodesToSearchHint(): string | null;
|
|
254
1166
|
set textForPointAtBarcodesToSearchHint(value: string | null);
|
|
1167
|
+
/**
|
|
1168
|
+
* Overrides the default text for the “Move closer” hint.
|
|
1169
|
+
*
|
|
1170
|
+
* Default is *null*.
|
|
1171
|
+
*
|
|
1172
|
+
* @since 6.22.0
|
|
1173
|
+
*/
|
|
255
1174
|
get textForMoveCloserToBarcodesHint(): string | null;
|
|
256
1175
|
set textForMoveCloserToBarcodesHint(value: string | null);
|
|
1176
|
+
/**
|
|
1177
|
+
* Overrides the default text for “Tap shutter to pause” hint.
|
|
1178
|
+
*
|
|
1179
|
+
* Default is *null*.
|
|
1180
|
+
*
|
|
1181
|
+
* @since 6.22.0
|
|
1182
|
+
*/
|
|
257
1183
|
get textForTapShutterToPauseScreenHint(): string | null;
|
|
258
1184
|
set textForTapShutterToPauseScreenHint(value: string | null);
|
|
1185
|
+
/**
|
|
1186
|
+
* Overrides the default text for “Tap shutter to resume” hint.
|
|
1187
|
+
*
|
|
1188
|
+
* Default is *null*.
|
|
1189
|
+
*
|
|
1190
|
+
* @since 6.22.0
|
|
1191
|
+
*/
|
|
259
1192
|
get textForTapShutterToResumeSearchHint(): string | null;
|
|
260
1193
|
set textForTapShutterToResumeSearchHint(value: string | null);
|
|
1194
|
+
/**
|
|
1195
|
+
* The style of the logo, either the extended “Scanning By Scandit” or the minimal “Scandit”.
|
|
1196
|
+
*
|
|
1197
|
+
* Default is {@link LogoStyle.Extended}.
|
|
1198
|
+
*
|
|
1199
|
+
* @since 8.6.0
|
|
1200
|
+
*/
|
|
261
1201
|
get logoStyle(): LogoStyle;
|
|
262
1202
|
set logoStyle(value: LogoStyle);
|
|
1203
|
+
/**
|
|
1204
|
+
* The anchor point used to position the Scandit logo.
|
|
1205
|
+
*
|
|
1206
|
+
* Default is {@link Anchor.BottomRight}.
|
|
1207
|
+
*
|
|
1208
|
+
* @since 8.6.0
|
|
1209
|
+
*/
|
|
263
1210
|
get logoAnchor(): Anchor;
|
|
264
1211
|
set logoAnchor(value: Anchor);
|
|
1212
|
+
/**
|
|
1213
|
+
* Specifies the desired camera state when BarcodeFind stops searching. This property allows optimization of camera transitions when switching between different capture modes.
|
|
1214
|
+
*
|
|
1215
|
+
* On Flutter, Capacitor, Cordova and React Native this property is only effective on iOS; it is ignored on Android.
|
|
1216
|
+
*
|
|
1217
|
+
* For example, setting this to {@link FrameSourceState.Standby} instead of the default {@link FrameSourceState.Off} can improve camera startup times when transitioning to another mode (such as SparkScan) that uses standby state, as it avoids the On→Off→Standby transition sequence.
|
|
1218
|
+
*
|
|
1219
|
+
* Default is {@link FrameSourceState.Off}.
|
|
1220
|
+
*
|
|
1221
|
+
* @since 8.6.0
|
|
1222
|
+
*/
|
|
265
1223
|
get cameraStateOnStop(): FrameSourceState;
|
|
266
1224
|
set cameraStateOnStop(value: FrameSourceState);
|
|
1225
|
+
/**
|
|
1226
|
+
* Method to call for stopping the mode. For instance, it can be called when the view controller containing BarcodeFindView is about to disappear (i.e., UIViewController’s viewWillDisappear).
|
|
1227
|
+
*
|
|
1228
|
+
* @since 6.22.0
|
|
1229
|
+
*/
|
|
267
1230
|
stopSearching(): Promise<void>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Starts the searching process. You can call this method if you want to trigger the searching process without any user interaction.
|
|
1233
|
+
*
|
|
1234
|
+
* @since 6.22.0
|
|
1235
|
+
*/
|
|
268
1236
|
startSearching(): Promise<void>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Pauses the searching process. You can call this method if you want to trigger pausing the searching process without any user interaction.
|
|
1239
|
+
*
|
|
1240
|
+
* @since 6.22.0
|
|
1241
|
+
*/
|
|
269
1242
|
pauseSearching(): Promise<void>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Connect the barcode find view to a given HTML element, so it’s size and position can be mirrored.
|
|
1245
|
+
*
|
|
1246
|
+
* @since 6.22.0
|
|
1247
|
+
*/
|
|
270
1248
|
connectToElement(element: HTMLElement): void;
|
|
1249
|
+
/**
|
|
1250
|
+
* Detach the barcode find view from the currently connected HTML element. This releases the HTML element and removes any listeners or resources related to it.
|
|
1251
|
+
*
|
|
1252
|
+
* @since 6.22.0
|
|
1253
|
+
*/
|
|
271
1254
|
detachFromElement(): void;
|
|
1255
|
+
/**
|
|
1256
|
+
* Sets the view to be visible.
|
|
1257
|
+
*
|
|
1258
|
+
* @since 6.22.0
|
|
1259
|
+
*/
|
|
272
1260
|
show(): Promise<void>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Sets the view not to be visible.
|
|
1263
|
+
*
|
|
1264
|
+
* @since 6.22.0
|
|
1265
|
+
*/
|
|
273
1266
|
hide(): Promise<void>;
|
|
274
1267
|
private subscribeToChangesOnHTMLElement;
|
|
275
1268
|
private unsubscribeFromChangesOnHTMLElement;
|
|
@@ -279,63 +1272,264 @@ declare class BarcodeFindView {
|
|
|
279
1272
|
private toJSON;
|
|
280
1273
|
}
|
|
281
1274
|
|
|
1275
|
+
/**
|
|
1276
|
+
* {@link SparkScan} comes with a ready-to-use UI and scanning modes that are purpose-built to tackle high-volume scanning at close range. The SparkScanView integrates with any app without requiring app redesign or customization. It includes:
|
|
1277
|
+
*
|
|
1278
|
+
* camera preview screenlarge-sized scan buttonquick access toolbar to adjust scanning settings
|
|
1279
|
+
*
|
|
1280
|
+
* @since 6.22.0
|
|
1281
|
+
*/
|
|
282
1282
|
declare class SparkScanView {
|
|
283
1283
|
private baseSparkScanView;
|
|
1284
|
+
/**
|
|
1285
|
+
* Sets the listener which is called whenever a barcode find button or barcode count button is tapped from the toolbar.
|
|
1286
|
+
*
|
|
1287
|
+
* @since 6.22.0
|
|
1288
|
+
*/
|
|
284
1289
|
get uiListener(): SparkScanViewUiListener | null;
|
|
285
1290
|
set uiListener(newValue: SparkScanViewUiListener | null);
|
|
1291
|
+
/**
|
|
1292
|
+
* Constructs a new SparkScan view and adds it to the provided parentView. When the settings are provided, those will be used to set the default behaviour and look of the view.
|
|
1293
|
+
*
|
|
1294
|
+
* @since 6.22.0
|
|
1295
|
+
*/
|
|
286
1296
|
static forContext(context: DataCaptureContext, sparkScan: SparkScan, settings: SparkScanViewSettings | null): SparkScanView;
|
|
1297
|
+
/**
|
|
1298
|
+
* Returns the default brush used by the overlay.
|
|
1299
|
+
*
|
|
1300
|
+
* @since 6.22.0
|
|
1301
|
+
*/
|
|
287
1302
|
static get defaultBrush(): Brush;
|
|
288
1303
|
private constructor();
|
|
1304
|
+
/**
|
|
1305
|
+
* Indicates whether the mini preview size control should be shown to the user.
|
|
1306
|
+
*
|
|
1307
|
+
* Default is *true*.
|
|
1308
|
+
*
|
|
1309
|
+
* @since 6.23.0
|
|
1310
|
+
*/
|
|
289
1311
|
get previewSizeControlVisible(): boolean;
|
|
290
1312
|
set previewSizeControlVisible(newValue: boolean);
|
|
1313
|
+
/**
|
|
1314
|
+
* Indicates whether the scanning behavior button should be shown to the user.
|
|
1315
|
+
*
|
|
1316
|
+
* Default is *false*.
|
|
1317
|
+
*
|
|
1318
|
+
* @since 6.22.0
|
|
1319
|
+
*/
|
|
291
1320
|
get scanningBehaviorButtonVisible(): boolean;
|
|
292
1321
|
set scanningBehaviorButtonVisible(newValue: boolean);
|
|
1322
|
+
/**
|
|
1323
|
+
* Indicates whether the barcode count button should be shown to the user.
|
|
1324
|
+
*
|
|
1325
|
+
* Default is *false*.
|
|
1326
|
+
*
|
|
1327
|
+
* @since 6.22.0
|
|
1328
|
+
*/
|
|
293
1329
|
get barcodeCountButtonVisible(): boolean;
|
|
294
1330
|
set barcodeCountButtonVisible(newValue: boolean);
|
|
1331
|
+
/**
|
|
1332
|
+
* Indicates whether the barcode find button should be shown to the user.
|
|
1333
|
+
*
|
|
1334
|
+
* Default is *false*.
|
|
1335
|
+
*
|
|
1336
|
+
* @since 6.26.0
|
|
1337
|
+
*/
|
|
295
1338
|
get barcodeFindButtonVisible(): boolean;
|
|
296
1339
|
set barcodeFindButtonVisible(newValue: boolean);
|
|
1340
|
+
/**
|
|
1341
|
+
* Indicates whether the target mode button should be shown to the user.
|
|
1342
|
+
*
|
|
1343
|
+
* Default is *false*.
|
|
1344
|
+
*
|
|
1345
|
+
* @since 6.22.0
|
|
1346
|
+
*/
|
|
297
1347
|
get targetModeButtonVisible(): boolean;
|
|
298
1348
|
set targetModeButtonVisible(newValue: boolean);
|
|
1349
|
+
/**
|
|
1350
|
+
* Indicates whether the selection mode button should be shown to the user. The button toggles {@link SparkScanSettings.selectionMode} between {@link SelectionMode.On} and {@link SelectionMode.Off}.
|
|
1351
|
+
*
|
|
1352
|
+
* Renamed replacement for the deprecated {@link SparkScanView.targetModeButtonVisible}. Both properties share the same underlying state; when a deserialised JSON snapshot contains both keys, `selectionModeButtonVisible` wins.
|
|
1353
|
+
*
|
|
1354
|
+
* Default is *false*.
|
|
1355
|
+
*
|
|
1356
|
+
* @since 8.5.0
|
|
1357
|
+
*/
|
|
299
1358
|
get selectionModeButtonVisible(): boolean;
|
|
300
1359
|
set selectionModeButtonVisible(newValue: boolean);
|
|
1360
|
+
/**
|
|
1361
|
+
* Indicates whether the label capture button should be shown to the user.
|
|
1362
|
+
*
|
|
1363
|
+
* Default is *false*.
|
|
1364
|
+
*
|
|
1365
|
+
* @since 7.4.0
|
|
1366
|
+
*/
|
|
301
1367
|
get labelCaptureButtonVisible(): boolean;
|
|
302
1368
|
set labelCaptureButtonVisible(newValue: boolean);
|
|
1369
|
+
/**
|
|
1370
|
+
* Sets the toolbar background color.
|
|
1371
|
+
*
|
|
1372
|
+
* Default is *null*.
|
|
1373
|
+
*
|
|
1374
|
+
* @since 6.22.0
|
|
1375
|
+
*/
|
|
303
1376
|
get toolbarBackgroundColor(): Color | null;
|
|
304
1377
|
set toolbarBackgroundColor(newValue: Color | null);
|
|
1378
|
+
/**
|
|
1379
|
+
* Sets the toolbar icon active color.
|
|
1380
|
+
*
|
|
1381
|
+
* Default is *null*.
|
|
1382
|
+
*
|
|
1383
|
+
* @since 6.22.0
|
|
1384
|
+
*/
|
|
305
1385
|
get toolbarIconActiveTintColor(): Color | null;
|
|
306
1386
|
set toolbarIconActiveTintColor(newValue: Color | null);
|
|
1387
|
+
/**
|
|
1388
|
+
* Sets the toolbar icon inactive color.
|
|
1389
|
+
*
|
|
1390
|
+
* Default is *null*.
|
|
1391
|
+
*
|
|
1392
|
+
* @since 6.22.0
|
|
1393
|
+
*/
|
|
307
1394
|
get toolbarIconInactiveTintColor(): Color | null;
|
|
308
1395
|
set toolbarIconInactiveTintColor(newValue: Color | null);
|
|
1396
|
+
/**
|
|
1397
|
+
* Indicates whether the camera switch button should be shown to the user.
|
|
1398
|
+
*
|
|
1399
|
+
* Default is *false*.
|
|
1400
|
+
*
|
|
1401
|
+
* This API is still in beta and may change in future versions of Scandit Data Capture SDK.
|
|
1402
|
+
*
|
|
1403
|
+
* @since 6.24.0
|
|
1404
|
+
*/
|
|
309
1405
|
get cameraSwitchButtonVisible(): boolean;
|
|
310
1406
|
set cameraSwitchButtonVisible(newValue: boolean);
|
|
1407
|
+
/**
|
|
1408
|
+
* Indicates whether the torch control should be shown to the user.
|
|
1409
|
+
*
|
|
1410
|
+
* Default is *true*.
|
|
1411
|
+
*
|
|
1412
|
+
* If {@link SparkScanViewSettings.defaultTorchState} is set to {@link TorchState.Auto}, torch control is hidden.
|
|
1413
|
+
*
|
|
1414
|
+
* @since 7.0.0
|
|
1415
|
+
*/
|
|
311
1416
|
get torchControlVisible(): boolean;
|
|
312
1417
|
set torchControlVisible(newValue: boolean);
|
|
1418
|
+
/**
|
|
1419
|
+
* Indicates whether the zoom switch control should be shown to the user.
|
|
1420
|
+
*
|
|
1421
|
+
* Default is *true*.
|
|
1422
|
+
*
|
|
1423
|
+
* @since 8.4.0
|
|
1424
|
+
*/
|
|
313
1425
|
get zoomSwitchControlVisible(): boolean;
|
|
314
1426
|
set zoomSwitchControlVisible(newValue: boolean);
|
|
1427
|
+
/**
|
|
1428
|
+
* Indicates whether the mini preview close control should be shown to the user.
|
|
1429
|
+
*
|
|
1430
|
+
* Default is *true*.
|
|
1431
|
+
*
|
|
1432
|
+
* @since 7.0.0
|
|
1433
|
+
*/
|
|
315
1434
|
get previewCloseControlVisible(): boolean;
|
|
316
1435
|
set previewCloseControlVisible(newValue: boolean);
|
|
1436
|
+
/**
|
|
1437
|
+
* Sets the color of the pulsing animation around the trigger button, which is shown when the scanner is active.
|
|
1438
|
+
*
|
|
1439
|
+
* @since 7.0.0
|
|
1440
|
+
*/
|
|
317
1441
|
get triggerButtonAnimationColor(): Color | null;
|
|
318
1442
|
set triggerButtonAnimationColor(newValue: Color | null);
|
|
1443
|
+
/**
|
|
1444
|
+
* Sets the background color of the trigger button when button is expanded.
|
|
1445
|
+
*
|
|
1446
|
+
* @since 7.0.0
|
|
1447
|
+
*/
|
|
319
1448
|
get triggerButtonExpandedColor(): Color | null;
|
|
320
1449
|
set triggerButtonExpandedColor(newValue: Color | null);
|
|
1450
|
+
/**
|
|
1451
|
+
* Sets the background color of the trigger button when button is collapsed.
|
|
1452
|
+
*
|
|
1453
|
+
* @since 7.0.0
|
|
1454
|
+
*/
|
|
321
1455
|
get triggerButtonCollapsedColor(): Color | null;
|
|
322
1456
|
set triggerButtonCollapsedColor(newValue: Color | null);
|
|
1457
|
+
/**
|
|
1458
|
+
* Sets the trigger button tint color.
|
|
1459
|
+
*
|
|
1460
|
+
* @since 7.0.0
|
|
1461
|
+
*/
|
|
323
1462
|
get triggerButtonTintColor(): Color | null;
|
|
324
1463
|
set triggerButtonTintColor(newValue: Color | null);
|
|
1464
|
+
/**
|
|
1465
|
+
* Indicates whether the trigger button should be shown to the user.
|
|
1466
|
+
*
|
|
1467
|
+
* Default is *true*.
|
|
1468
|
+
*
|
|
1469
|
+
* @since 7.0.0
|
|
1470
|
+
*/
|
|
325
1471
|
get triggerButtonVisible(): boolean;
|
|
326
1472
|
set triggerButtonVisible(newValue: boolean);
|
|
1473
|
+
/**
|
|
1474
|
+
* The image displayed in the trigger button.
|
|
1475
|
+
*
|
|
1476
|
+
* @since 7.0.0
|
|
1477
|
+
*/
|
|
327
1478
|
get triggerButtonImage(): string | null;
|
|
328
1479
|
set triggerButtonImage(newValue: string | null);
|
|
1480
|
+
/** @since 6.22.0 */
|
|
329
1481
|
prepareScanning(): Promise<void>;
|
|
1482
|
+
/**
|
|
1483
|
+
* Starts the scanning process. You can call this method if you want to trigger the scanning process without any user interaction.
|
|
1484
|
+
*
|
|
1485
|
+
* @since 6.22.0
|
|
1486
|
+
*/
|
|
330
1487
|
startScanning(): Promise<void>;
|
|
1488
|
+
/**
|
|
1489
|
+
* Pauses the scanning process. You can call this method if you want to trigger pausing the scanning process without any user interaction.
|
|
1490
|
+
*
|
|
1491
|
+
* @since 6.22.0
|
|
1492
|
+
*/
|
|
331
1493
|
pauseScanning(): Promise<void>;
|
|
1494
|
+
/** @since 6.22.0 */
|
|
332
1495
|
stopScanning(): Promise<void>;
|
|
1496
|
+
/**
|
|
1497
|
+
* Disposes of the SparkScanView and releases all associated resources. Call this method when the view is no longer needed to free native resources.
|
|
1498
|
+
*
|
|
1499
|
+
* @since 6.22.0
|
|
1500
|
+
*/
|
|
333
1501
|
dispose(): Promise<void>;
|
|
1502
|
+
/**
|
|
1503
|
+
* Sets the view to be visible.
|
|
1504
|
+
*
|
|
1505
|
+
* @since 6.22.0
|
|
1506
|
+
*/
|
|
334
1507
|
show(): Promise<void>;
|
|
1508
|
+
/**
|
|
1509
|
+
* Sets the view not to be visible.
|
|
1510
|
+
*
|
|
1511
|
+
* @since 6.22.0
|
|
1512
|
+
*/
|
|
335
1513
|
hide(): Promise<void>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Sets the feedback delegate. If no delegate is set, the default {@link Success|SparkScanBarcodeFeedback.Success} feedback is emitted.
|
|
1516
|
+
*
|
|
1517
|
+
* @since 6.23.0
|
|
1518
|
+
*/
|
|
336
1519
|
get feedbackDelegate(): SparkScanFeedbackDelegate | null;
|
|
337
1520
|
set feedbackDelegate(delegate: SparkScanFeedbackDelegate | null);
|
|
1521
|
+
/**
|
|
1522
|
+
* Shows a toast with text inside the mini preview.
|
|
1523
|
+
*
|
|
1524
|
+
* @since 6.23.0
|
|
1525
|
+
*/
|
|
338
1526
|
showToast(text: string): Promise<void>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Returns the currently used SparkScanScanningMode.
|
|
1529
|
+
*
|
|
1530
|
+
* @since 8.7.0
|
|
1531
|
+
*/
|
|
1532
|
+
getScanningMode(): Promise<SparkScanScanningMode>;
|
|
339
1533
|
private toJSON;
|
|
340
1534
|
}
|
|
341
1535
|
|
|
@@ -346,6 +1540,11 @@ interface BarcodePickViewProps {
|
|
|
346
1540
|
cameraSettings: CameraSettings;
|
|
347
1541
|
style: any;
|
|
348
1542
|
}
|
|
1543
|
+
/**
|
|
1544
|
+
* BarcodePickView.
|
|
1545
|
+
*
|
|
1546
|
+
* @since 6.22.0
|
|
1547
|
+
*/
|
|
349
1548
|
declare class BarcodePickView extends DefaultSerializeable {
|
|
350
1549
|
private viewId;
|
|
351
1550
|
private baseBarcodePickView;
|
|
@@ -354,27 +1553,97 @@ declare class BarcodePickView extends DefaultSerializeable {
|
|
|
354
1553
|
private domObserver;
|
|
355
1554
|
private scrollListener;
|
|
356
1555
|
constructor(props: BarcodePickViewProps);
|
|
1556
|
+
/**
|
|
1557
|
+
* Sets the listener which is called whenever the finish button is tapped from the view.
|
|
1558
|
+
*
|
|
1559
|
+
* @since 6.23.0
|
|
1560
|
+
*/
|
|
357
1561
|
get uiListener(): BarcodePickViewUiListener | null;
|
|
358
1562
|
set uiListener(value: BarcodePickViewUiListener | null);
|
|
359
1563
|
private orientationChangeListener;
|
|
360
1564
|
private set htmlElementState(value);
|
|
361
1565
|
private get htmlElementState();
|
|
1566
|
+
/**
|
|
1567
|
+
* Connect the barcode pick view to a given HTML element, so it’s size and position can be mirrored.
|
|
1568
|
+
*
|
|
1569
|
+
* @since 6.22.0
|
|
1570
|
+
*/
|
|
362
1571
|
connectToElement(element: HTMLElement): void;
|
|
1572
|
+
/**
|
|
1573
|
+
* Detach the barcode pick view from the currently connected HTML element. This releases the HTML element and removes any listeners or resources related to it.
|
|
1574
|
+
*
|
|
1575
|
+
* @since 6.22.0
|
|
1576
|
+
*/
|
|
363
1577
|
detachFromElement(): void;
|
|
364
1578
|
private subscribeToChangesOnHTMLElement;
|
|
365
1579
|
private unsubscribeFromChangesOnHTMLElement;
|
|
366
1580
|
private elementDidChange;
|
|
367
1581
|
private updatePositionAndSize;
|
|
1582
|
+
/**
|
|
1583
|
+
* Starts the camera and the scanning process. Can be stopped by calling {@link BarcodePickView.stop}.
|
|
1584
|
+
*
|
|
1585
|
+
* @since 6.22.0
|
|
1586
|
+
*/
|
|
368
1587
|
start(): Promise<void>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Pauses the camera and the scanning process. It can be started again using {@link BarcodePickView.start}.
|
|
1590
|
+
*
|
|
1591
|
+
* @since 6.24.0
|
|
1592
|
+
*/
|
|
369
1593
|
stop(): Promise<void>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Freezes the camera and the highlights position to make the selection easier. The scanning can be started again using {@link BarcodePickView.start}.
|
|
1596
|
+
*
|
|
1597
|
+
* @since 6.23.0
|
|
1598
|
+
*/
|
|
370
1599
|
freeze(): Promise<void>;
|
|
1600
|
+
/**
|
|
1601
|
+
* Notifies the barcode pick view that the container has paused.
|
|
1602
|
+
*
|
|
1603
|
+
* @since 7.5.0
|
|
1604
|
+
*/
|
|
371
1605
|
pause(): Promise<void>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Notifies the barcode pick view that the container has resumed.
|
|
1608
|
+
*
|
|
1609
|
+
* @since 7.5.0
|
|
1610
|
+
*/
|
|
372
1611
|
resume(): Promise<void>;
|
|
1612
|
+
/**
|
|
1613
|
+
* Resets the picking flow. This will clear all picked items and restore the initial state.
|
|
1614
|
+
*
|
|
1615
|
+
* @since 8.1.0
|
|
1616
|
+
*/
|
|
373
1617
|
reset(): Promise<void>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Adds a {@link BarcodePickViewListener} to the mode. User actions will be notified to the listener.
|
|
1620
|
+
*
|
|
1621
|
+
* @since 6.23.0
|
|
1622
|
+
*/
|
|
374
1623
|
addListener(listener: BarcodePickViewListener): void;
|
|
1624
|
+
/**
|
|
1625
|
+
* Removes a {@link BarcodePickViewListener}.
|
|
1626
|
+
*
|
|
1627
|
+
* @since 6.23.0
|
|
1628
|
+
*/
|
|
375
1629
|
removeListener(listener: BarcodePickViewListener): void;
|
|
1630
|
+
/**
|
|
1631
|
+
* Adds a {@link BarcodePickActionListener} to the mode. User actions will be notified to the listener.
|
|
1632
|
+
*
|
|
1633
|
+
* @since 6.22.0
|
|
1634
|
+
*/
|
|
376
1635
|
addActionListener(listener: BarcodePickActionListener): void;
|
|
1636
|
+
/**
|
|
1637
|
+
* Removes a {@link BarcodePickActionListener}.
|
|
1638
|
+
*
|
|
1639
|
+
* @since 6.22.0
|
|
1640
|
+
*/
|
|
377
1641
|
removeActionListener(listener: BarcodePickActionListener): void;
|
|
1642
|
+
/**
|
|
1643
|
+
* Stops the camera and the scanning process. After this call the view should not be used anymore.
|
|
1644
|
+
*
|
|
1645
|
+
* @since 6.23.0
|
|
1646
|
+
*/
|
|
378
1647
|
release(): void;
|
|
379
1648
|
}
|
|
380
1649
|
|
|
@@ -387,6 +1656,11 @@ interface BarcodeArViewProps {
|
|
|
387
1656
|
annotationProvider?: BarcodeArAnnotationProvider;
|
|
388
1657
|
highlightProvider?: BarcodeArHighlightProvider;
|
|
389
1658
|
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Barcode AR comes with a ready-to-use UI that allows highlighting barcodes and displaying additional information over them. The BarcodeArView integrates with any app in just a few lines of code.
|
|
1661
|
+
*
|
|
1662
|
+
* @since 8.2.0
|
|
1663
|
+
*/
|
|
390
1664
|
declare class BarcodeArView extends DefaultSerializeable {
|
|
391
1665
|
private viewId;
|
|
392
1666
|
private baseBarcodeArView;
|
|
@@ -395,60 +1669,216 @@ declare class BarcodeArView extends DefaultSerializeable {
|
|
|
395
1669
|
private domObserver;
|
|
396
1670
|
private scrollListener;
|
|
397
1671
|
constructor(props: BarcodeArViewProps);
|
|
1672
|
+
/**
|
|
1673
|
+
* Sets the listener which is called whenever a barcode highlight is tapped in the view.
|
|
1674
|
+
*
|
|
1675
|
+
* @since 8.2.0
|
|
1676
|
+
*/
|
|
398
1677
|
get uiListener(): BarcodeArViewUiListener | null;
|
|
399
1678
|
set uiListener(value: BarcodeArViewUiListener | null);
|
|
1679
|
+
/**
|
|
1680
|
+
* Sets the provider which supplies annotation information for barcodes in the view. If *null*, no annotation will be displayed for any barcode.
|
|
1681
|
+
*
|
|
1682
|
+
* @since 8.2.0
|
|
1683
|
+
*/
|
|
400
1684
|
get annotationProvider(): BarcodeArAnnotationProvider | null;
|
|
401
1685
|
set annotationProvider(value: BarcodeArAnnotationProvider | null);
|
|
1686
|
+
/**
|
|
1687
|
+
* Sets the provider which supplies highlight information for barcodes in the view. If *null*, a default provider is used, which returns a predefined highlight for each barcode.
|
|
1688
|
+
*
|
|
1689
|
+
* @since 8.2.0
|
|
1690
|
+
*/
|
|
402
1691
|
get highlightProvider(): BarcodeArHighlightProvider | null;
|
|
403
1692
|
set highlightProvider(value: BarcodeArHighlightProvider | null);
|
|
404
1693
|
private orientationChangeListener;
|
|
405
1694
|
private set htmlElementState(value);
|
|
406
1695
|
private get htmlElementState();
|
|
407
1696
|
private setPositionAndSize;
|
|
1697
|
+
/**
|
|
1698
|
+
* Connect the barcode ar view to a given HTML element, so it’s size and position can be mirrored.
|
|
1699
|
+
*
|
|
1700
|
+
* @since 8.2.0
|
|
1701
|
+
*/
|
|
408
1702
|
connectToElement(element: HTMLElement): Promise<void>;
|
|
1703
|
+
/**
|
|
1704
|
+
* Detach the barcode ar view from the currently connected HTML element. This releases the HTML element and removes any listeners or resources related to it.
|
|
1705
|
+
*
|
|
1706
|
+
* @since 8.2.0
|
|
1707
|
+
*/
|
|
409
1708
|
detachFromElement(): Promise<void>;
|
|
410
1709
|
private subscribeToChangesOnHTMLElement;
|
|
411
1710
|
private unsubscribeFromChangesOnHTMLElement;
|
|
412
1711
|
private elementDidChange;
|
|
1712
|
+
/**
|
|
1713
|
+
* Starts the scanning process.
|
|
1714
|
+
*
|
|
1715
|
+
* @since 8.2.0
|
|
1716
|
+
*/
|
|
413
1717
|
start(): Promise<void>;
|
|
1718
|
+
/**
|
|
1719
|
+
* Stops the scanning process.
|
|
1720
|
+
*
|
|
1721
|
+
* On Android the highlights and annotations that are already shown are kept, and they are still there when scanning starts again. On iOS they are removed, and they are supplied again by the providers after the next start. Resetting or disposing the view removes them.
|
|
1722
|
+
*
|
|
1723
|
+
* @since 8.2.0
|
|
1724
|
+
*/
|
|
414
1725
|
stop(): Promise<void>;
|
|
1726
|
+
/**
|
|
1727
|
+
* Pauses the scanning process.
|
|
1728
|
+
*
|
|
1729
|
+
* The highlights and annotations that are already shown are kept, so they stay tappable while the view is paused and when scanning starts again. Resetting or disposing the view removes them.
|
|
1730
|
+
*
|
|
1731
|
+
* @since 8.2.0
|
|
1732
|
+
*/
|
|
415
1733
|
pause(): Promise<void>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Clears all highlights and annotations currently visible and calls {@link BarcodeArView.highlightProvider} and {@link BarcodeArView.annotationProvider} to supply new highlights and annotations.
|
|
1736
|
+
*
|
|
1737
|
+
* @since 8.2.0
|
|
1738
|
+
*/
|
|
416
1739
|
reset(): Promise<void>;
|
|
1740
|
+
/**
|
|
1741
|
+
* Indicates whether the torch control button should be shown to the user.
|
|
1742
|
+
*
|
|
1743
|
+
* Default is *false*.
|
|
1744
|
+
*
|
|
1745
|
+
* @since 8.2.0
|
|
1746
|
+
*/
|
|
417
1747
|
get shouldShowTorchControl(): boolean;
|
|
418
1748
|
set shouldShowTorchControl(value: boolean);
|
|
1749
|
+
/**
|
|
1750
|
+
* Updates the position of the torch control button.
|
|
1751
|
+
*
|
|
1752
|
+
* Default is {@link Anchor.TopLeft}.
|
|
1753
|
+
*
|
|
1754
|
+
* @since 8.2.0
|
|
1755
|
+
*/
|
|
419
1756
|
get torchControlPosition(): Anchor;
|
|
420
1757
|
set torchControlPosition(value: Anchor);
|
|
1758
|
+
/**
|
|
1759
|
+
* Indicates whether the zoom control button should be shown to the user.
|
|
1760
|
+
*
|
|
1761
|
+
* @since 8.2.0
|
|
1762
|
+
*/
|
|
421
1763
|
get shouldShowZoomControl(): boolean;
|
|
422
1764
|
set shouldShowZoomControl(value: boolean);
|
|
1765
|
+
/**
|
|
1766
|
+
* Updates the position of the zoom control button.
|
|
1767
|
+
*
|
|
1768
|
+
* Default is {@link Anchor.BottomRight}.
|
|
1769
|
+
*
|
|
1770
|
+
* @since 8.2.0
|
|
1771
|
+
*/
|
|
423
1772
|
get zoomControlPosition(): Anchor;
|
|
424
1773
|
set zoomControlPosition(value: Anchor);
|
|
1774
|
+
/**
|
|
1775
|
+
* Indicates whether the camera switch control button should be shown to the user.
|
|
1776
|
+
*
|
|
1777
|
+
* @since 8.2.0
|
|
1778
|
+
*/
|
|
425
1779
|
get shouldShowCameraSwitchControl(): boolean;
|
|
426
1780
|
set shouldShowCameraSwitchControl(value: boolean);
|
|
1781
|
+
/**
|
|
1782
|
+
* Updates the position of the camera switch control button.
|
|
1783
|
+
*
|
|
1784
|
+
* Default is {@link Anchor.TopRight}.
|
|
1785
|
+
*
|
|
1786
|
+
* @since 8.2.0
|
|
1787
|
+
*/
|
|
427
1788
|
get cameraSwitchControlPosition(): Anchor;
|
|
428
1789
|
set cameraSwitchControlPosition(value: Anchor);
|
|
1790
|
+
/**
|
|
1791
|
+
* Indicates whether the macro mode control button should be shown to the user.
|
|
1792
|
+
*
|
|
1793
|
+
* @since 8.2.0
|
|
1794
|
+
*/
|
|
429
1795
|
get shouldShowMacroModeControl(): boolean;
|
|
430
1796
|
set shouldShowMacroModeControl(value: boolean);
|
|
1797
|
+
/**
|
|
1798
|
+
* Updates the position of the macro mode control button.
|
|
1799
|
+
*
|
|
1800
|
+
* Default is {@link Anchor.TopRight}.
|
|
1801
|
+
*
|
|
1802
|
+
* @since 8.2.0
|
|
1803
|
+
*/
|
|
431
1804
|
get macroModeControlPosition(): Anchor;
|
|
432
1805
|
set macroModeControlPosition(value: Anchor);
|
|
1806
|
+
/**
|
|
1807
|
+
* Sets the visual offset of the torch control button.
|
|
1808
|
+
*
|
|
1809
|
+
* Assign null to reset the offset to its default position.
|
|
1810
|
+
*
|
|
1811
|
+
* @since 8.6.0
|
|
1812
|
+
*/
|
|
433
1813
|
get torchControlOffset(): PointWithUnit | null;
|
|
434
1814
|
set torchControlOffset(value: PointWithUnit | null);
|
|
1815
|
+
/**
|
|
1816
|
+
* Sets the visual offset of the zoom control button.
|
|
1817
|
+
*
|
|
1818
|
+
* Assign null to reset the offset to its default position.
|
|
1819
|
+
*
|
|
1820
|
+
* @since 8.6.0
|
|
1821
|
+
*/
|
|
435
1822
|
get zoomControlOffset(): PointWithUnit | null;
|
|
436
1823
|
set zoomControlOffset(value: PointWithUnit | null);
|
|
1824
|
+
/**
|
|
1825
|
+
* Sets the visual offset of the camera switch control button.
|
|
1826
|
+
*
|
|
1827
|
+
* Assign null to reset the offset to its default position.
|
|
1828
|
+
*
|
|
1829
|
+
* @since 8.6.0
|
|
1830
|
+
*/
|
|
437
1831
|
get cameraSwitchControlOffset(): PointWithUnit | null;
|
|
438
1832
|
set cameraSwitchControlOffset(value: PointWithUnit | null);
|
|
1833
|
+
/**
|
|
1834
|
+
* Sets the visual offset of the macro mode control button.
|
|
1835
|
+
*
|
|
1836
|
+
* Assign null to reset the offset to its default position.
|
|
1837
|
+
*
|
|
1838
|
+
* @since 8.6.0
|
|
1839
|
+
*/
|
|
439
1840
|
get macroModeControlOffset(): PointWithUnit | null;
|
|
440
1841
|
set macroModeControlOffset(value: PointWithUnit | null);
|
|
1842
|
+
/**
|
|
1843
|
+
* The style of the logo, either the extended “Scanning By Scandit” or the minimal “Scandit”.
|
|
1844
|
+
*
|
|
1845
|
+
* Default is {@link LogoStyle.Extended}.
|
|
1846
|
+
*
|
|
1847
|
+
* @since 8.6.0
|
|
1848
|
+
*/
|
|
441
1849
|
get logoStyle(): LogoStyle;
|
|
442
1850
|
set logoStyle(value: LogoStyle);
|
|
1851
|
+
/**
|
|
1852
|
+
* Sets the orientation of the zoom control button.
|
|
1853
|
+
*
|
|
1854
|
+
* Default is {@link ZoomSwitchOrientation.Default}.
|
|
1855
|
+
*
|
|
1856
|
+
* @since 8.6.0
|
|
1857
|
+
*/
|
|
443
1858
|
get zoomControlOrientation(): ZoomSwitchOrientation;
|
|
444
1859
|
set zoomControlOrientation(value: ZoomSwitchOrientation);
|
|
1860
|
+
/**
|
|
1861
|
+
* The anchor point used to position the Scandit logo. To shift the logo relative to the anchor, use {@link BarcodeArView.logoOffset}.
|
|
1862
|
+
*
|
|
1863
|
+
* Default is {@link Anchor.BottomRight}.
|
|
1864
|
+
*
|
|
1865
|
+
* @since 8.6.0
|
|
1866
|
+
*/
|
|
445
1867
|
get logoAnchor(): Anchor;
|
|
446
1868
|
set logoAnchor(value: Anchor);
|
|
1869
|
+
/**
|
|
1870
|
+
* The offset applied to the Scandit logo relative to the {@link BarcodeArView.logoAnchor|logo anchor}. When specified in pixels ({@link MeasureUnit.Pixel}) the offset is used as-is. When specified as a fraction ({@link MeasureUnit.Fraction}) the offset is computed relative to the view size minus the scan area margins.
|
|
1871
|
+
*
|
|
1872
|
+
* Default is a zero offset.
|
|
1873
|
+
*
|
|
1874
|
+
* @since 8.6.0
|
|
1875
|
+
*/
|
|
447
1876
|
get logoOffset(): PointWithUnit;
|
|
448
1877
|
set logoOffset(value: PointWithUnit);
|
|
449
1878
|
}
|
|
450
1879
|
|
|
451
|
-
|
|
1880
|
+
|
|
1881
|
+
|
|
452
1882
|
interface ScanditBarcodePluginInterface {
|
|
453
1883
|
initialize(coreDefaults: any): Promise<any>;
|
|
454
1884
|
}
|
|
@@ -458,5 +1888,6 @@ declare class ScanditBarcodePluginImplementation implements ScanditBarcodePlugin
|
|
|
458
1888
|
}
|
|
459
1889
|
declare const ScanditBarcodePlugin: ScanditBarcodePluginImplementation;
|
|
460
1890
|
|
|
461
|
-
export { BarcodeArView,
|
|
1891
|
+
export { BarcodeArView, BarcodeCountView, BarcodeFindView, BarcodePickView, ScanditBarcodePlugin, ScanditBarcodePluginImplementation, SparkScanView, TrackedBarcodeView };
|
|
462
1892
|
export type { BarcodeBatchAdvancedOverlayListener, Optional, ScanditBarcodePluginInterface };
|
|
1893
|
+
export { BarcodeBatchAdvancedOverlay };
|