scandit-react-native-datacapture-core 8.5.2 → 8.6.0-beta.1
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/android/build.gradle +1 -1
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ui/ScanditViewGroupManager.kt +15 -0
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/utils/ViewWindowEvents.kt +32 -0
- package/android/src/main/newArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +4 -0
- package/android/src/main/oldArch/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +4 -0
- package/dist/core.js +471 -1
- package/dist/core.js.flow +2337 -0
- package/dist/core.js.map +1 -1
- package/dist/dts/core.d.ts +2151 -0
- package/dist/dts/experimental.d.ts +1 -9
- package/dist/dts/index.d.ts +672 -96
- package/dist/experimental.js.flow +3 -3
- package/dist/index.js +583 -143
- package/dist/index.js.flow +948 -96
- package/dist/index.js.map +1 -1
- package/ios/Sources/ScanditDataCaptureCore.swift +10 -1
- package/ios/Sources/Shared/DataCaptureViewWrapper.swift +7 -0
- package/package.json +9 -8
- package/scandit-react-native-datacapture-core.podspec +1 -1
- package/dist/dts/DataCaptureVersion.d.ts +0 -4
- package/dist/dts/DataCaptureView.d.ts +0 -61
- package/dist/dts/hooks/ScanditProvider.d.ts +0 -46
- package/dist/dts/hooks/index.d.ts +0 -5
- package/dist/dts/hooks/useCameraPermission.d.ts +0 -28
- package/dist/dts/hooks/useIsForeground.d.ts +0 -11
- package/dist/dts/hooks/useScanditContext.d.ts +0 -21
- package/dist/dts/native/CoreNativeCallerProvider.d.ts +0 -4
- package/dist/dts/native/RNNativeCaller.d.ts +0 -23
- package/dist/dts/native/ScanditNativeModule.d.ts +0 -6
- package/dist/dts/native/initProxy.d.ts +0 -1
- package/dist/dts/private/Defaults.d.ts +0 -1
- package/dist/dts/private/hooks/useMode.d.ts +0 -49
- package/dist/dts/private/hooks/useModeListener.d.ts +0 -40
- package/dist/dts/private/hooks/useNativeControl.d.ts +0 -14
- package/dist/dts/private/hooks/useOverlay.d.ts +0 -68
- package/dist/dts/private/hooks/useStableProp.d.ts +0 -22
- package/dist/dts/private/hooks/useViewHandle.d.ts +0 -41
- package/dist/dts/private/index.d.ts +0 -11
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,2337 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flowtype definitions for core
|
|
3
|
+
* Generated by Flowgen from a Typescript Definition
|
|
4
|
+
* Flowgen v1.21.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import EventEmitter from "eventemitter3";
|
|
8
|
+
declare export { default as EventEmitter } from "eventemitter3";
|
|
9
|
+
|
|
10
|
+
declare var FontFamily: {|
|
|
11
|
+
+SystemDefault: "systemDefault", // "systemDefault"
|
|
12
|
+
+ModernMono: "modernMono", // "modernMono"
|
|
13
|
+
+SystemSans: "systemSans", // "systemSans"
|
|
14
|
+
|};
|
|
15
|
+
|
|
16
|
+
declare var TextAlignment: {|
|
|
17
|
+
+Left: "left", // "left"
|
|
18
|
+
+Right: "right", // "right"
|
|
19
|
+
+Center: "center", // "center"
|
|
20
|
+
+Start: "start", // "start"
|
|
21
|
+
+End: "end", // "end"
|
|
22
|
+
|};
|
|
23
|
+
declare interface Serializeable {
|
|
24
|
+
toJSON: () => { [key: string]: any };
|
|
25
|
+
}
|
|
26
|
+
declare interface StringSerializeable {
|
|
27
|
+
toJSON: () => string;
|
|
28
|
+
}
|
|
29
|
+
declare function ignoreFromSerialization(
|
|
30
|
+
target: any,
|
|
31
|
+
propertyName: string
|
|
32
|
+
): void;
|
|
33
|
+
declare function nameForSerialization(
|
|
34
|
+
customName: string
|
|
35
|
+
): (target: any, propertyName: string) => void;
|
|
36
|
+
declare function ignoreFromSerializationIfNull(
|
|
37
|
+
target: any,
|
|
38
|
+
propertyName: string
|
|
39
|
+
): void;
|
|
40
|
+
declare function serializationDefault(
|
|
41
|
+
defaultValue: any
|
|
42
|
+
): (target: any, propertyName: string) => void;
|
|
43
|
+
declare class DefaultSerializeable implements Serializeable {
|
|
44
|
+
toJSON(): { [key: string]: any };
|
|
45
|
+
}
|
|
46
|
+
declare interface PointJSON {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
}
|
|
50
|
+
declare interface PrivatePoint {
|
|
51
|
+
fromJSON(json: PointJSON): Point;
|
|
52
|
+
}
|
|
53
|
+
declare class Point mixins DefaultSerializeable {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
constructor(x: number, y: number): this;
|
|
57
|
+
}
|
|
58
|
+
declare interface QuadrilateralJSON {
|
|
59
|
+
topLeft: PointJSON;
|
|
60
|
+
topRight: PointJSON;
|
|
61
|
+
bottomRight: PointJSON;
|
|
62
|
+
bottomLeft: PointJSON;
|
|
63
|
+
}
|
|
64
|
+
declare interface PrivateQuadrilateral {
|
|
65
|
+
fromJSON(json: QuadrilateralJSON): Quadrilateral;
|
|
66
|
+
}
|
|
67
|
+
declare class Quadrilateral mixins DefaultSerializeable {
|
|
68
|
+
topLeft: Point;
|
|
69
|
+
topRight: Point;
|
|
70
|
+
bottomRight: Point;
|
|
71
|
+
bottomLeft: Point;
|
|
72
|
+
constructor(
|
|
73
|
+
topLeft: Point,
|
|
74
|
+
topRight: Point,
|
|
75
|
+
bottomRight: Point,
|
|
76
|
+
bottomLeft: Point
|
|
77
|
+
): this;
|
|
78
|
+
}
|
|
79
|
+
declare var MeasureUnit: {|
|
|
80
|
+
+DIP: "dip", // "dip"
|
|
81
|
+
+Pixel: "pixel", // "pixel"
|
|
82
|
+
+Fraction: "fraction", // "fraction"
|
|
83
|
+
|};
|
|
84
|
+
declare interface NumberWithUnitJSON {
|
|
85
|
+
value: number;
|
|
86
|
+
unit: string;
|
|
87
|
+
}
|
|
88
|
+
declare interface PrivateNumberWithUnit {
|
|
89
|
+
fromJSON(json: NumberWithUnitJSON): NumberWithUnit;
|
|
90
|
+
}
|
|
91
|
+
declare class NumberWithUnit mixins DefaultSerializeable {
|
|
92
|
+
value: number;
|
|
93
|
+
unit: $Values<typeof MeasureUnit>;
|
|
94
|
+
constructor(value: number, unit: $Values<typeof MeasureUnit>): this;
|
|
95
|
+
}
|
|
96
|
+
declare interface PointWithUnitJSON {
|
|
97
|
+
x: NumberWithUnitJSON;
|
|
98
|
+
y: NumberWithUnitJSON;
|
|
99
|
+
}
|
|
100
|
+
declare interface PrivatePointWithUnit {
|
|
101
|
+
+zero: PointWithUnit;
|
|
102
|
+
fromJSON(json: PointWithUnitJSON): PointWithUnit;
|
|
103
|
+
}
|
|
104
|
+
declare class PointWithUnit mixins DefaultSerializeable {
|
|
105
|
+
x: NumberWithUnit;
|
|
106
|
+
y: NumberWithUnit;
|
|
107
|
+
static zero: any;
|
|
108
|
+
constructor(x: NumberWithUnit, y: NumberWithUnit): this;
|
|
109
|
+
}
|
|
110
|
+
declare interface SizeJSON {
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
}
|
|
114
|
+
declare interface PrivateSize {
|
|
115
|
+
fromJSON(json: SizeJSON): Size;
|
|
116
|
+
}
|
|
117
|
+
declare class Size mixins DefaultSerializeable {
|
|
118
|
+
width: number;
|
|
119
|
+
height: number;
|
|
120
|
+
constructor(width: number, height: number): this;
|
|
121
|
+
}
|
|
122
|
+
declare class Rect mixins DefaultSerializeable {
|
|
123
|
+
origin: Point;
|
|
124
|
+
size: Size;
|
|
125
|
+
constructor(origin: Point, size: Size): this;
|
|
126
|
+
}
|
|
127
|
+
declare class SizeWithUnit mixins DefaultSerializeable {
|
|
128
|
+
width: NumberWithUnit;
|
|
129
|
+
height: NumberWithUnit;
|
|
130
|
+
constructor(width: NumberWithUnit, height: NumberWithUnit): this;
|
|
131
|
+
}
|
|
132
|
+
declare class RectWithUnit mixins DefaultSerializeable {
|
|
133
|
+
origin: PointWithUnit;
|
|
134
|
+
size: SizeWithUnit;
|
|
135
|
+
constructor(origin: PointWithUnit, size: SizeWithUnit): this;
|
|
136
|
+
}
|
|
137
|
+
declare type ColorJSON = string;
|
|
138
|
+
declare interface PrivateColor {
|
|
139
|
+
fromJSON(json: ColorJSON): Color;
|
|
140
|
+
}
|
|
141
|
+
declare class Color implements StringSerializeable {
|
|
142
|
+
redComponent: string;
|
|
143
|
+
greenComponent: string;
|
|
144
|
+
blueComponent: string;
|
|
145
|
+
alphaComponent: string;
|
|
146
|
+
red: number;
|
|
147
|
+
green: number;
|
|
148
|
+
blue: number;
|
|
149
|
+
alpha: number;
|
|
150
|
+
static fromHex(hex: string): Color;
|
|
151
|
+
static fromRGBA(
|
|
152
|
+
red: number,
|
|
153
|
+
green: number,
|
|
154
|
+
blue: number,
|
|
155
|
+
alpha?: number
|
|
156
|
+
): Color;
|
|
157
|
+
constructor(): this;
|
|
158
|
+
withAlpha(alpha: number): Color;
|
|
159
|
+
toJSON(): string;
|
|
160
|
+
}
|
|
161
|
+
declare var ScanditIconShape: {|
|
|
162
|
+
+Circle: "circle", // "circle"
|
|
163
|
+
+Square: "square", // "square"
|
|
164
|
+
|};
|
|
165
|
+
|
|
166
|
+
declare var ScanditIconType: {|
|
|
167
|
+
+ArrowRight: "arrowRight", // "arrowRight"
|
|
168
|
+
+ArrowLeft: "arrowLeft", // "arrowLeft"
|
|
169
|
+
+ArrowUp: "arrowUp", // "arrowUp"
|
|
170
|
+
+ArrowDown: "arrowDown", // "arrowDown"
|
|
171
|
+
+ToPick: "toPick", // "toPick"
|
|
172
|
+
+Checkmark: "checkmark", // "checkmark"
|
|
173
|
+
+XMark: "xMark", // "xMark"
|
|
174
|
+
+QuestionMark: "questionMark", // "questionMark"
|
|
175
|
+
+ExclamationMark: "exclamationMark", // "exclamationMark"
|
|
176
|
+
+LowStock: "lowStock", // "lowStock"
|
|
177
|
+
+ExpiredItem: "expiredItem", // "expiredItem"
|
|
178
|
+
+WrongItem: "wrongItem", // "wrongItem"
|
|
179
|
+
+FragileItem: "fragileItem", // "fragileItem"
|
|
180
|
+
+StarFilled: "starFilled", // "starFilled"
|
|
181
|
+
+StarHalfFilled: "starHalfFilled", // "starHalfFilled"
|
|
182
|
+
+ChevronUp: "chevronUp", // "chevronUp"
|
|
183
|
+
+ChevronDown: "chevronDown", // "chevronDown"
|
|
184
|
+
+ChevronLeft: "chevronLeft", // "chevronLeft"
|
|
185
|
+
+ChevronRight: "chevronRight", // "chevronRight"
|
|
186
|
+
+InspectItem: "inspectItem", // "inspectItem"
|
|
187
|
+
+StarOutlined: "starOutlined", // "starOutlined"
|
|
188
|
+
+Print: "print", // "print"
|
|
189
|
+
+Plus: "plus", // "plus"
|
|
190
|
+
+Minus: "minus", // "minus"
|
|
191
|
+
+Delete: "delete", // "delete"
|
|
192
|
+
+Slash: "slash", // "slash"
|
|
193
|
+
|};
|
|
194
|
+
declare type ScanditIconJSON = {
|
|
195
|
+
backgroundColor: Color | null,
|
|
196
|
+
backgroundShape: $Values<typeof ScanditIconShape> | null,
|
|
197
|
+
icon: $Values<typeof ScanditIconType> | null,
|
|
198
|
+
iconColor: Color | null,
|
|
199
|
+
backgroundStrokeColor: Color | null,
|
|
200
|
+
backgroundStrokeWidth: number,
|
|
201
|
+
...
|
|
202
|
+
};
|
|
203
|
+
declare interface PrivateScanditIcon {
|
|
204
|
+
fromJSON(json: ScanditIconJSON): ScanditIcon;
|
|
205
|
+
}
|
|
206
|
+
declare class ScanditIcon mixins DefaultSerializeable {
|
|
207
|
+
constructor(
|
|
208
|
+
iconColor: Color | null,
|
|
209
|
+
backgroundColor: Color | null,
|
|
210
|
+
backgroundShape: $Values<typeof ScanditIconShape> | null,
|
|
211
|
+
icon: $Values<typeof ScanditIconType> | null,
|
|
212
|
+
backgroundStrokeColor: Color | null,
|
|
213
|
+
backgroundStrokeWidth: number
|
|
214
|
+
): this;
|
|
215
|
+
backgroundColor: Color | null;
|
|
216
|
+
backgroundShape: $Values<typeof ScanditIconShape> | null;
|
|
217
|
+
icon: $Values<typeof ScanditIconType> | null;
|
|
218
|
+
iconColor: Color | null;
|
|
219
|
+
backgroundStrokeColor: Color | null;
|
|
220
|
+
backgroundStrokeWidth: number;
|
|
221
|
+
}
|
|
222
|
+
declare class ScanditIconBuilder {
|
|
223
|
+
withIconColor(iconColor: Color | null): ScanditIconBuilder;
|
|
224
|
+
withBackgroundColor(backgroundColor: Color | null): ScanditIconBuilder;
|
|
225
|
+
withBackgroundShape(
|
|
226
|
+
backgroundShape: $Values<typeof ScanditIconShape> | null
|
|
227
|
+
): ScanditIconBuilder;
|
|
228
|
+
withIcon(
|
|
229
|
+
iconType: $Values<typeof ScanditIconType> | null
|
|
230
|
+
): ScanditIconBuilder;
|
|
231
|
+
withBackgroundStrokeColor(
|
|
232
|
+
backgroundStrokeColor: Color | null
|
|
233
|
+
): ScanditIconBuilder;
|
|
234
|
+
withBackgroundStrokeWidth(backgroundStrokeWidth: number): ScanditIconBuilder;
|
|
235
|
+
build(): ScanditIcon;
|
|
236
|
+
}
|
|
237
|
+
declare class SizeWithAspect mixins DefaultSerializeable {
|
|
238
|
+
size: NumberWithUnit;
|
|
239
|
+
aspect: number;
|
|
240
|
+
constructor(size: NumberWithUnit, aspect: number): this;
|
|
241
|
+
}
|
|
242
|
+
declare var SizingMode: {|
|
|
243
|
+
+WidthAndHeight: "widthAndHeight", // "widthAndHeight"
|
|
244
|
+
+WidthAndAspectRatio: "widthAndAspectRatio", // "widthAndAspectRatio"
|
|
245
|
+
+HeightAndAspectRatio: "heightAndAspectRatio", // "heightAndAspectRatio"
|
|
246
|
+
+ShorterDimensionAndAspectRatio: "shorterDimensionAndAspectRatio", // "shorterDimensionAndAspectRatio"
|
|
247
|
+
|};
|
|
248
|
+
declare interface SizeWithUnitAndAspectJSON {
|
|
249
|
+
width?: NumberWithUnitJSON;
|
|
250
|
+
height?: NumberWithUnitJSON;
|
|
251
|
+
shorterDimension?: NumberWithUnitJSON;
|
|
252
|
+
aspect?: number;
|
|
253
|
+
}
|
|
254
|
+
declare interface PrivateSizeWithUnitAndAspect {
|
|
255
|
+
fromJSON(json: SizeWithUnitAndAspectJSON): SizeWithUnitAndAspect;
|
|
256
|
+
}
|
|
257
|
+
declare class SizeWithUnitAndAspect implements Serializeable {
|
|
258
|
+
widthAndHeight: SizeWithUnit | null;
|
|
259
|
+
widthAndAspectRatio: SizeWithAspect | null;
|
|
260
|
+
heightAndAspectRatio: SizeWithAspect | null;
|
|
261
|
+
shorterDimensionAndAspectRatio: SizeWithAspect | null;
|
|
262
|
+
sizingMode: $Values<typeof SizingMode>;
|
|
263
|
+
toJSON(): { [key: string]: any };
|
|
264
|
+
}
|
|
265
|
+
declare interface MarginsWithUnitJSON {
|
|
266
|
+
left: NumberWithUnitJSON;
|
|
267
|
+
right: NumberWithUnitJSON;
|
|
268
|
+
top: NumberWithUnitJSON;
|
|
269
|
+
bottom: NumberWithUnitJSON;
|
|
270
|
+
}
|
|
271
|
+
declare interface PrivateMarginsWithUnit {
|
|
272
|
+
+zero: MarginsWithUnit;
|
|
273
|
+
fromJSON(json: MarginsWithUnitJSON): MarginsWithUnit;
|
|
274
|
+
}
|
|
275
|
+
declare class MarginsWithUnit mixins DefaultSerializeable {
|
|
276
|
+
left: NumberWithUnit;
|
|
277
|
+
right: NumberWithUnit;
|
|
278
|
+
top: NumberWithUnit;
|
|
279
|
+
bottom: NumberWithUnit;
|
|
280
|
+
static zero: any;
|
|
281
|
+
constructor(
|
|
282
|
+
left: NumberWithUnit,
|
|
283
|
+
right: NumberWithUnit,
|
|
284
|
+
top: NumberWithUnit,
|
|
285
|
+
bottom: NumberWithUnit
|
|
286
|
+
): this;
|
|
287
|
+
}
|
|
288
|
+
declare interface PrivateBrush {
|
|
289
|
+
+copy: Brush;
|
|
290
|
+
defaults: mixed;
|
|
291
|
+
fromJSON(json: mixed): Brush;
|
|
292
|
+
toJSON(): BrushJSON;
|
|
293
|
+
}
|
|
294
|
+
declare interface BrushJSON {
|
|
295
|
+
fill: {
|
|
296
|
+
color: Color,
|
|
297
|
+
...
|
|
298
|
+
};
|
|
299
|
+
stroke: {
|
|
300
|
+
color: Color,
|
|
301
|
+
width: number,
|
|
302
|
+
...
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
declare class Brush mixins DefaultSerializeable {
|
|
306
|
+
static transparent: Brush;
|
|
307
|
+
fillColor: Color;
|
|
308
|
+
strokeColor: Color;
|
|
309
|
+
strokeWidth: number;
|
|
310
|
+
copy: any;
|
|
311
|
+
constructor(): this;
|
|
312
|
+
constructor(fillColor: Color, strokeColor: Color, strokeWidth: number): this;
|
|
313
|
+
}
|
|
314
|
+
declare var Anchor: {|
|
|
315
|
+
+TopLeft: "topLeft", // "topLeft"
|
|
316
|
+
+TopCenter: "topCenter", // "topCenter"
|
|
317
|
+
+TopRight: "topRight", // "topRight"
|
|
318
|
+
+CenterLeft: "centerLeft", // "centerLeft"
|
|
319
|
+
+Center: "center", // "center"
|
|
320
|
+
+CenterRight: "centerRight", // "centerRight"
|
|
321
|
+
+BottomLeft: "bottomLeft", // "bottomLeft"
|
|
322
|
+
+BottomCenter: "bottomCenter", // "bottomCenter"
|
|
323
|
+
+BottomRight: "bottomRight", // "bottomRight"
|
|
324
|
+
|};
|
|
325
|
+
|
|
326
|
+
declare var Orientation: {|
|
|
327
|
+
+Unknown: "unknown", // "unknown"
|
|
328
|
+
+Portrait: "portrait", // "portrait"
|
|
329
|
+
+PortraitUpsideDown: "portraitUpsideDown", // "portraitUpsideDown"
|
|
330
|
+
+LandscapeRight: "landscapeRight", // "landscapeRight"
|
|
331
|
+
+LandscapeLeft: "landscapeLeft", // "landscapeLeft"
|
|
332
|
+
|};
|
|
333
|
+
|
|
334
|
+
declare var Direction: {|
|
|
335
|
+
+None: "none", // "none"
|
|
336
|
+
+Horizontal: "horizontal", // "horizontal"
|
|
337
|
+
+LeftToRight: "leftToRight", // "leftToRight"
|
|
338
|
+
+RightToLeft: "rightToLeft", // "rightToLeft"
|
|
339
|
+
+Vertical: "vertical", // "vertical"
|
|
340
|
+
+TopToBottom: "topToBottom", // "topToBottom"
|
|
341
|
+
+BottomToTop: "bottomToTop", // "bottomToTop"
|
|
342
|
+
|};
|
|
343
|
+
|
|
344
|
+
declare var ScanIntention: {|
|
|
345
|
+
+Manual: "manual", // "manual"
|
|
346
|
+
+Smart: "smart", // "smart"
|
|
347
|
+
+SmartSelection: "smartSelection", // "smartSelection"
|
|
348
|
+
|};
|
|
349
|
+
|
|
350
|
+
declare var SelectionMode: {|
|
|
351
|
+
+Off: "off", // "off"
|
|
352
|
+
+On: "on", // "on"
|
|
353
|
+
+Auto: "auto", // "auto"
|
|
354
|
+
|};
|
|
355
|
+
|
|
356
|
+
declare var CameraPosition: {|
|
|
357
|
+
+WorldFacing: "worldFacing", // "worldFacing"
|
|
358
|
+
+UserFacing: "userFacing", // "userFacing"
|
|
359
|
+
+Unspecified: "unspecified", // "unspecified"
|
|
360
|
+
|};
|
|
361
|
+
|
|
362
|
+
declare var FrameSourceState: {|
|
|
363
|
+
+On: "on", // "on"
|
|
364
|
+
+Off: "off", // "off"
|
|
365
|
+
+Starting: "starting", // "starting"
|
|
366
|
+
+Stopping: "stopping", // "stopping"
|
|
367
|
+
+Standby: "standby", // "standby"
|
|
368
|
+
+BootingUp: "bootingUp", // "bootingUp"
|
|
369
|
+
+WakingUp: "wakingUp", // "wakingUp"
|
|
370
|
+
+GoingToSleep: "goingToSleep", // "goingToSleep"
|
|
371
|
+
+ShuttingDown: "shuttingDown", // "shuttingDown"
|
|
372
|
+
|};
|
|
373
|
+
declare interface DidChangeSizeEventPayload {
|
|
374
|
+
viewId: number;
|
|
375
|
+
size: SizeJSON;
|
|
376
|
+
orientation: string;
|
|
377
|
+
}
|
|
378
|
+
declare interface DidChangeStatusEventPayload {
|
|
379
|
+
status: string;
|
|
380
|
+
}
|
|
381
|
+
declare interface DidChangeStateEventPayload {
|
|
382
|
+
state: string;
|
|
383
|
+
}
|
|
384
|
+
declare interface EventPayload {
|
|
385
|
+
name: string;
|
|
386
|
+
data: string;
|
|
387
|
+
viewId?: number;
|
|
388
|
+
modeId?: number;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Symbol returned by parseIfShouldHandle when an event should be skipped
|
|
392
|
+
* (filtered out based on viewId/modeId mismatch).
|
|
393
|
+
*/
|
|
394
|
+
declare var SKIP: Symbol;
|
|
395
|
+
declare class EventDataParser {
|
|
396
|
+
/**
|
|
397
|
+
* Check if an event should be handled based on viewId/modeId filtering.
|
|
398
|
+
* Used by React Native new architecture for pre-parse filtering to avoid
|
|
399
|
+
* unnecessary JSON parsing of events not intended for this consumer.
|
|
400
|
+
* @param ev The event payload to check
|
|
401
|
+
* @param ids Object containing optional viewId and/or modeId to match against
|
|
402
|
+
* @returns true if the event should be handled, false if it should be skipped
|
|
403
|
+
*/
|
|
404
|
+
static shouldHandle(
|
|
405
|
+
ev: EventPayload,
|
|
406
|
+
ids: {
|
|
407
|
+
viewId?: number,
|
|
408
|
+
modeId?: number,
|
|
409
|
+
...
|
|
410
|
+
}
|
|
411
|
+
): boolean;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Parse event data if it should be handled, otherwise return SKIP.
|
|
415
|
+
*
|
|
416
|
+
* Filtering is performed in two stages:
|
|
417
|
+
* 1. Pre-parse: if the event wrapper carries viewId/modeId, skip parsing entirely on mismatch.
|
|
418
|
+
* 2. Post-parse: verify the parsed payload's viewId/modeId matches the expected ids.
|
|
419
|
+
* @param ev The event payload to check and parse
|
|
420
|
+
* @param ids Object containing optional viewId and/or modeId to match against
|
|
421
|
+
* @returns SKIP if filtered out, null if parse failed, or parsed data
|
|
422
|
+
*/
|
|
423
|
+
static parseIfShouldHandle<T>(
|
|
424
|
+
ev: EventPayload,
|
|
425
|
+
ids: {
|
|
426
|
+
viewId?: number,
|
|
427
|
+
modeId?: number,
|
|
428
|
+
...
|
|
429
|
+
}
|
|
430
|
+
): T | null | typeof SKIP;
|
|
431
|
+
}
|
|
432
|
+
declare interface NativeCallResult {
|
|
433
|
+
data: string;
|
|
434
|
+
}
|
|
435
|
+
declare interface FrameSourceDidChangeStateEventPayload {
|
|
436
|
+
state: $Values<typeof FrameSourceState>;
|
|
437
|
+
cameraPosition: $Values<typeof CameraPosition>;
|
|
438
|
+
}
|
|
439
|
+
declare interface PropertyChangeListener {
|
|
440
|
+
(property: string, value: any): void;
|
|
441
|
+
}
|
|
442
|
+
declare class Observable mixins DefaultSerializeable {
|
|
443
|
+
addListener(listener: PropertyChangeListener): void;
|
|
444
|
+
removeListener(listener: PropertyChangeListener): void;
|
|
445
|
+
notifyListeners(property: string, value: any): void;
|
|
446
|
+
}
|
|
447
|
+
declare class HtmlElementPosition {
|
|
448
|
+
+top: number;
|
|
449
|
+
+left: number;
|
|
450
|
+
constructor(top: number, left: number): this;
|
|
451
|
+
didChangeComparedTo(other: HtmlElementPosition | null): boolean;
|
|
452
|
+
}
|
|
453
|
+
declare class HtmlElementSize {
|
|
454
|
+
+width: number;
|
|
455
|
+
+height: number;
|
|
456
|
+
constructor(width: number, height: number): this;
|
|
457
|
+
didChangeComparedTo(other: HtmlElementSize | null): boolean;
|
|
458
|
+
}
|
|
459
|
+
declare class HTMLElementState {
|
|
460
|
+
isShown: boolean;
|
|
461
|
+
position: HtmlElementPosition | null;
|
|
462
|
+
size: HtmlElementSize | null;
|
|
463
|
+
shouldBeUnderContent: boolean;
|
|
464
|
+
isValid: boolean;
|
|
465
|
+
didChangeComparedTo(other: HTMLElementState | null): boolean;
|
|
466
|
+
}
|
|
467
|
+
declare interface FocusGestureListener {
|
|
468
|
+
didFocusGesture?: (focusGesture: FocusGesture, point: PointWithUnit) => void;
|
|
469
|
+
}
|
|
470
|
+
declare interface FocusGesture {
|
|
471
|
+
showUIIndicator: boolean;
|
|
472
|
+
addListener(listener: FocusGestureListener): void;
|
|
473
|
+
removeListener(listener: FocusGestureListener): void;
|
|
474
|
+
triggerFocus(point: PointWithUnit): Promise<void>;
|
|
475
|
+
}
|
|
476
|
+
declare var FocusGestureStrategy: {|
|
|
477
|
+
+None: "none", // "none"
|
|
478
|
+
+Manual: "manual", // "manual"
|
|
479
|
+
+ManualUntilCapture: "manualUntilCapture", // "manualUntilCapture"
|
|
480
|
+
+AutoOnLocation: "autoOnLocation", // "autoOnLocation"
|
|
481
|
+
|};
|
|
482
|
+
|
|
483
|
+
declare var FocusRange: {|
|
|
484
|
+
+Full: "full", // "full"
|
|
485
|
+
+Near: "near", // "near"
|
|
486
|
+
+Far: "far", // "far"
|
|
487
|
+
|};
|
|
488
|
+
|
|
489
|
+
declare var LogoStyle: {|
|
|
490
|
+
+Minimal: "minimal", // "minimal"
|
|
491
|
+
+Extended: "extended", // "extended"
|
|
492
|
+
|};
|
|
493
|
+
|
|
494
|
+
declare var MacroMode: {|
|
|
495
|
+
+Auto: "auto", // "auto"
|
|
496
|
+
+Off: "off", // "off"
|
|
497
|
+
+On: "on", // "on"
|
|
498
|
+
|};
|
|
499
|
+
|
|
500
|
+
declare var VideoResolution: {|
|
|
501
|
+
+Auto: "auto", // "auto"
|
|
502
|
+
+HD: "hd", // "hd"
|
|
503
|
+
+FullHD: "fullHd", // "fullHd"
|
|
504
|
+
+UHD4K: "uhd4k", // "uhd4k"
|
|
505
|
+
|};
|
|
506
|
+
declare interface ZoomGestureListener {
|
|
507
|
+
didZoomInGesture?: (zoomGesture: ZoomGesture) => void;
|
|
508
|
+
didZoomOutGesture?: (zoomGesture: ZoomGesture) => void;
|
|
509
|
+
}
|
|
510
|
+
declare interface ZoomGesture {
|
|
511
|
+
addListener(listener: ZoomGestureListener): void;
|
|
512
|
+
removeListener(listener: ZoomGestureListener): void;
|
|
513
|
+
triggerZoomIn(): Promise<void>;
|
|
514
|
+
triggerZoomOut(): Promise<void>;
|
|
515
|
+
}
|
|
516
|
+
declare interface ZoomGestureJSON {
|
|
517
|
+
type: string;
|
|
518
|
+
}
|
|
519
|
+
declare var ZoomSwitchOrientation: {|
|
|
520
|
+
+Default: "default", // "default"
|
|
521
|
+
+Horizontal: "horizontal", // "horizontal"
|
|
522
|
+
+Vertical: "vertical", // "vertical"
|
|
523
|
+
|};
|
|
524
|
+
declare interface RectangularViewfinderAnimationJSON {
|
|
525
|
+
+looping: boolean;
|
|
526
|
+
}
|
|
527
|
+
declare interface PrivateRectangularViewfinderAnimation {
|
|
528
|
+
fromJSON(
|
|
529
|
+
json: RectangularViewfinderAnimationJSON
|
|
530
|
+
): RectangularViewfinderAnimation;
|
|
531
|
+
}
|
|
532
|
+
declare class RectangularViewfinderAnimation mixins DefaultSerializeable {
|
|
533
|
+
isLooping: boolean;
|
|
534
|
+
constructor(isLooping: boolean): this;
|
|
535
|
+
}
|
|
536
|
+
declare var RectangularViewfinderLineStyle: {|
|
|
537
|
+
+Light: "light", // "light"
|
|
538
|
+
+Bold: "bold", // "bold"
|
|
539
|
+
|};
|
|
540
|
+
|
|
541
|
+
declare var RectangularViewfinderStyle: {|
|
|
542
|
+
+Rounded: "rounded", // "rounded"
|
|
543
|
+
+Square: "square", // "square"
|
|
544
|
+
|};
|
|
545
|
+
declare interface CameraSettingsDefaults {
|
|
546
|
+
preferredResolution: $Values<typeof VideoResolution>;
|
|
547
|
+
zoomFactor: number;
|
|
548
|
+
focusRange: $Values<typeof FocusRange>;
|
|
549
|
+
zoomGestureZoomFactor: number;
|
|
550
|
+
focusGestureStrategy: $Values<typeof FocusGestureStrategy>;
|
|
551
|
+
shouldPreferSmoothAutoFocus: boolean;
|
|
552
|
+
manualLensPosition: number;
|
|
553
|
+
focusStrategy: string;
|
|
554
|
+
zoomLevels: number[];
|
|
555
|
+
torchLevel: number;
|
|
556
|
+
macroMode: $Values<typeof MacroMode>;
|
|
557
|
+
adaptiveExposure: boolean;
|
|
558
|
+
properties: {
|
|
559
|
+
[key: string]: mixed,
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
declare interface ZoomSwitchControlDefaults {
|
|
563
|
+
orientation: $Values<typeof ZoomSwitchOrientation>;
|
|
564
|
+
isAlwaysExpanded: boolean;
|
|
565
|
+
isExpanded: boolean;
|
|
566
|
+
accessibilityLabel: string;
|
|
567
|
+
accessibilityHint: string;
|
|
568
|
+
}
|
|
569
|
+
declare interface CoreDefaults {
|
|
570
|
+
Camera: {
|
|
571
|
+
Settings: CameraSettingsDefaults,
|
|
572
|
+
defaultPosition: $Values<typeof CameraPosition> | null,
|
|
573
|
+
availablePositions: $Values<typeof CameraPosition>[],
|
|
574
|
+
...
|
|
575
|
+
};
|
|
576
|
+
ZoomSwitchControl: ZoomSwitchControlDefaults;
|
|
577
|
+
DataCaptureView: {
|
|
578
|
+
scanAreaMargins: MarginsWithUnit,
|
|
579
|
+
pointOfInterest: PointWithUnit,
|
|
580
|
+
logoAnchor: $Values<typeof Anchor>,
|
|
581
|
+
logoOffset: PointWithUnit,
|
|
582
|
+
focusGesture: FocusGesture | null,
|
|
583
|
+
zoomGesture: ZoomGesture | null,
|
|
584
|
+
zoomGestures: ZoomGesture[],
|
|
585
|
+
logoStyle: $Values<typeof LogoStyle>,
|
|
586
|
+
shouldShowZoomNotification?: boolean,
|
|
587
|
+
...
|
|
588
|
+
};
|
|
589
|
+
RectangularViewfinder: {
|
|
590
|
+
defaultStyle: string,
|
|
591
|
+
styles: {
|
|
592
|
+
[key: string]: {
|
|
593
|
+
size: SizeWithUnitAndAspect,
|
|
594
|
+
color: Color,
|
|
595
|
+
style: $Values<typeof RectangularViewfinderStyle>,
|
|
596
|
+
lineStyle: $Values<typeof RectangularViewfinderLineStyle>,
|
|
597
|
+
dimming: string,
|
|
598
|
+
disabledDimming: string,
|
|
599
|
+
animation: RectangularViewfinderAnimation | null,
|
|
600
|
+
disabledColor: Color,
|
|
601
|
+
...
|
|
602
|
+
},
|
|
603
|
+
},
|
|
604
|
+
...
|
|
605
|
+
};
|
|
606
|
+
AimerViewfinder: {
|
|
607
|
+
frameColor: Color,
|
|
608
|
+
dotColor: Color,
|
|
609
|
+
...
|
|
610
|
+
};
|
|
611
|
+
LaserlineViewfinder: {
|
|
612
|
+
width: NumberWithUnit,
|
|
613
|
+
enabledColor: Color,
|
|
614
|
+
disabledColor: Color,
|
|
615
|
+
...
|
|
616
|
+
};
|
|
617
|
+
Brush: Brush;
|
|
618
|
+
deviceID: string | null;
|
|
619
|
+
}
|
|
620
|
+
declare function getCoreDefaults(): CoreDefaults;
|
|
621
|
+
declare function setCoreDefaultsLoader(loader: () => void): void;
|
|
622
|
+
declare function ensureCoreDefaults(): CoreDefaults;
|
|
623
|
+
declare function loadCoreDefaults(jsonDefaults: mixed): void;
|
|
624
|
+
declare interface ContextStatusJSON {
|
|
625
|
+
code: number;
|
|
626
|
+
isValid: boolean;
|
|
627
|
+
message: string;
|
|
628
|
+
}
|
|
629
|
+
declare interface PrivateContextStatus {
|
|
630
|
+
fromJSON(json: ContextStatusJSON): ContextStatus;
|
|
631
|
+
}
|
|
632
|
+
declare class ContextStatus {
|
|
633
|
+
message: string;
|
|
634
|
+
code: number;
|
|
635
|
+
isValid: boolean;
|
|
636
|
+
}
|
|
637
|
+
declare var FocusGestureListenerEvents: {|
|
|
638
|
+
+onFocusGesture: "FocusGestureListener.onFocusGesture", // "FocusGestureListener.onFocusGesture"
|
|
639
|
+
|};
|
|
640
|
+
declare interface PrivateTapToFocus {
|
|
641
|
+
listeners: FocusGestureListener[];
|
|
642
|
+
onListenersChanged?: () => void;
|
|
643
|
+
_controller?: DataCaptureViewController | null;
|
|
644
|
+
}
|
|
645
|
+
declare class TapToFocus mixins DefaultSerializeable implements FocusGesture {
|
|
646
|
+
showUIIndicator: boolean;
|
|
647
|
+
constructor(): this;
|
|
648
|
+
addListener(listener: FocusGestureListener): void;
|
|
649
|
+
removeListener(listener: FocusGestureListener): void;
|
|
650
|
+
triggerFocus(point: PointWithUnit): Promise<void>;
|
|
651
|
+
}
|
|
652
|
+
declare interface FocusGestureJSON {
|
|
653
|
+
type: string;
|
|
654
|
+
}
|
|
655
|
+
declare class PrivateFocusGestureDeserializer {
|
|
656
|
+
static fromJSON(json: FocusGestureJSON | null): FocusGesture | null;
|
|
657
|
+
}
|
|
658
|
+
declare class PrivateZoomGestureDeserializer {
|
|
659
|
+
static fromJSON(json: ZoomGestureJSON | null): ZoomGesture | null;
|
|
660
|
+
static fromJSONArray(jsonArray: ZoomGestureJSON[]): ZoomGesture[];
|
|
661
|
+
}
|
|
662
|
+
declare var ZoomGestureListenerEvents: {|
|
|
663
|
+
+onZoomInGesture: "ZoomGestureListener.onZoomInGesture", // "ZoomGestureListener.onZoomInGesture"
|
|
664
|
+
+onZoomOutGesture: "ZoomGestureListener.onZoomOutGesture", // "ZoomGestureListener.onZoomOutGesture"
|
|
665
|
+
|};
|
|
666
|
+
declare interface FrameSourceListener {
|
|
667
|
+
didChangeState?: (
|
|
668
|
+
frameSource: FrameSource,
|
|
669
|
+
newState: $Values<typeof FrameSourceState>
|
|
670
|
+
) => void;
|
|
671
|
+
}
|
|
672
|
+
declare type FrameSource = {
|
|
673
|
+
+desiredState: $Values<typeof FrameSourceState>,
|
|
674
|
+
switchToDesiredState(
|
|
675
|
+
desiredState: $Values<typeof FrameSourceState>
|
|
676
|
+
): Promise<void>,
|
|
677
|
+
getCurrentState(): Promise<$Values<typeof FrameSourceState>>,
|
|
678
|
+
addListener(listener: FrameSourceListener): void,
|
|
679
|
+
removeListener(listener: FrameSourceListener): void,
|
|
680
|
+
...
|
|
681
|
+
} & Serializeable;
|
|
682
|
+
|
|
683
|
+
declare var TorchState: {|
|
|
684
|
+
+On: "on", // "on"
|
|
685
|
+
+Off: "off", // "off"
|
|
686
|
+
+Auto: "auto", // "auto"
|
|
687
|
+
|};
|
|
688
|
+
declare interface TorchListener {
|
|
689
|
+
didChangeTorchToState?: (state: $Values<typeof TorchState>) => void;
|
|
690
|
+
}
|
|
691
|
+
declare interface MacroModeListener {
|
|
692
|
+
didChangeMacroMode?: (macroMode: $Values<typeof MacroMode>) => void;
|
|
693
|
+
}
|
|
694
|
+
declare interface ZoomListener {
|
|
695
|
+
didChangeZoomLevel?: (oldZoomLevel: number, newZoomLevel: number) => void;
|
|
696
|
+
}
|
|
697
|
+
declare class ImageBuffer {
|
|
698
|
+
width: number;
|
|
699
|
+
height: number;
|
|
700
|
+
data: string;
|
|
701
|
+
}
|
|
702
|
+
declare interface PrivateImageBuffer {
|
|
703
|
+
_width: number;
|
|
704
|
+
_height: number;
|
|
705
|
+
_data: string;
|
|
706
|
+
}
|
|
707
|
+
declare interface ImageBufferJSON {
|
|
708
|
+
width: number;
|
|
709
|
+
height: number;
|
|
710
|
+
data: string;
|
|
711
|
+
}
|
|
712
|
+
declare interface FrameData {
|
|
713
|
+
+imageBuffers: ImageBuffer[];
|
|
714
|
+
+imageBuffer: ImageBuffer;
|
|
715
|
+
+orientation: number;
|
|
716
|
+
+timestamp: number;
|
|
717
|
+
}
|
|
718
|
+
declare interface FrameDataJSON {
|
|
719
|
+
imageBuffers: ImageBufferJSON[];
|
|
720
|
+
orientation: number;
|
|
721
|
+
timestamp?: number;
|
|
722
|
+
}
|
|
723
|
+
declare class PrivateFrameData implements FrameData {
|
|
724
|
+
imageBuffers: ImageBuffer[];
|
|
725
|
+
imageBuffer: ImageBuffer;
|
|
726
|
+
orientation: number;
|
|
727
|
+
timestamp: number;
|
|
728
|
+
static fromJSON(json: FrameDataJSON): FrameData;
|
|
729
|
+
static empty(): FrameData;
|
|
730
|
+
}
|
|
731
|
+
declare class FrameDataSettings mixins DefaultSerializeable {
|
|
732
|
+
constructor(): this;
|
|
733
|
+
isFileSystemCacheEnabled: boolean;
|
|
734
|
+
-isFileSystemCacheEnabled: any;
|
|
735
|
+
imageQuality: number;
|
|
736
|
+
-imageQuality: any;
|
|
737
|
+
isAutoRotateEnabled: boolean;
|
|
738
|
+
-isAutoRotateEnabled: any;
|
|
739
|
+
}
|
|
740
|
+
declare class FrameDataSettingsBuilder {
|
|
741
|
+
constructor(settings: FrameDataSettings): this;
|
|
742
|
+
enableFileSystemCache(enabled: boolean): FrameDataSettingsBuilder;
|
|
743
|
+
setImageQuality(quality: number): FrameDataSettingsBuilder;
|
|
744
|
+
enableAutoRotate(enabled: boolean): FrameDataSettingsBuilder;
|
|
745
|
+
}
|
|
746
|
+
declare class BaseController<PROXY> {
|
|
747
|
+
_proxy: PROXY;
|
|
748
|
+
constructor(proxyName: string): this;
|
|
749
|
+
}
|
|
750
|
+
declare interface BaseProxy {
|
|
751
|
+
subscribeForEvents(events: string[]): void;
|
|
752
|
+
unsubscribeFromEvents(events: string[]): void;
|
|
753
|
+
dispose(): void;
|
|
754
|
+
eventEmitter: EventEmitter;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* The datacapture core module
|
|
758
|
+
* Generated from schema definition.
|
|
759
|
+
*
|
|
760
|
+
* Single entry point interface - all operations go through $executeCore.
|
|
761
|
+
* The CoreController handles method-specific logic and calls this proxy.
|
|
762
|
+
* The NativeProxy automatically handles the `$` prefix for native method calls.
|
|
763
|
+
*/
|
|
764
|
+
declare type CoreProxy = {
|
|
765
|
+
/**
|
|
766
|
+
* Single entry point for all Core operations.
|
|
767
|
+
* Routes to appropriate native command based on moduleName and methodName.
|
|
768
|
+
* @param params Object containing:
|
|
769
|
+
* - moduleName: The name of the module to execute against
|
|
770
|
+
* - methodName: The name of the method to execute
|
|
771
|
+
* - ...other parameters specific to the method
|
|
772
|
+
* @returns Promise resolving to the result (type depends on methodName)
|
|
773
|
+
*
|
|
774
|
+
* Note: This method is called with the `$` prefix ($executeCore) which is
|
|
775
|
+
* automatically handled by NativeProxy to route to native implementation.
|
|
776
|
+
*/
|
|
777
|
+
$executeCore(params: {
|
|
778
|
+
moduleName: string,
|
|
779
|
+
methodName: string,
|
|
780
|
+
[key: string]: any,
|
|
781
|
+
}): Promise<any>,
|
|
782
|
+
...
|
|
783
|
+
} & BaseProxy;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Adapter class for Core operations.
|
|
787
|
+
* Provides typed methods that internally call $executeCore.
|
|
788
|
+
* Generated from schema definition to ensure parameter and method name consistency.
|
|
789
|
+
*/
|
|
790
|
+
declare class CoreProxyAdapter {
|
|
791
|
+
constructor(proxy: CoreProxy): this;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Gets the camera state for a given position
|
|
795
|
+
* @param cameraPosition Camera position as JSON string
|
|
796
|
+
*/
|
|
797
|
+
getCameraState(x: {
|
|
798
|
+
cameraPosition: string,
|
|
799
|
+
...
|
|
800
|
+
}): Promise<$Values<typeof FrameSourceState>>;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Switches the camera to the desired state
|
|
804
|
+
* @param stateJson Desired camera state as JSON string
|
|
805
|
+
*/
|
|
806
|
+
switchCameraToDesiredState(x: {
|
|
807
|
+
stateJson: string,
|
|
808
|
+
...
|
|
809
|
+
}): Promise<void>;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Checks if torch is available for the given camera position
|
|
813
|
+
* @param cameraPosition Camera position as JSON string
|
|
814
|
+
*/
|
|
815
|
+
isTorchAvailable(x: {
|
|
816
|
+
cameraPosition: string,
|
|
817
|
+
...
|
|
818
|
+
}): Promise<boolean>;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Checks if macro mode is available for the current device
|
|
822
|
+
*/
|
|
823
|
+
isMacroModeAvailable(): Promise<boolean>;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Registers a persistent listener for frame source state change events
|
|
827
|
+
*/
|
|
828
|
+
registerFrameSourceListener(): Promise<void>;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Unregisters the frame source event listener
|
|
832
|
+
*/
|
|
833
|
+
unregisterFrameSourceListener(): Promise<void>;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Adds an NV21 frame to the tracked sequence frame source with the given id
|
|
837
|
+
* @param frameSourceId The id of the sequence frame source the frame is added to
|
|
838
|
+
* @param width Frame width in pixels
|
|
839
|
+
* @param height Frame height in pixels
|
|
840
|
+
* @param frameData Base64-encoded NV21 frame bytes
|
|
841
|
+
*/
|
|
842
|
+
addFrameToSequenceFrameSource(x: {
|
|
843
|
+
frameSourceId: string,
|
|
844
|
+
width: number,
|
|
845
|
+
height: number,
|
|
846
|
+
frameData: string,
|
|
847
|
+
...
|
|
848
|
+
}): Promise<void>;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Returns the current state of the tracked sequence frame source with the given id
|
|
852
|
+
* @param frameSourceId The id of the sequence frame source to get the state of
|
|
853
|
+
*/
|
|
854
|
+
getSequenceFrameSourceState(x: {
|
|
855
|
+
frameSourceId: string,
|
|
856
|
+
...
|
|
857
|
+
}): Promise<$Values<typeof FrameSourceState>>;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Registers a persistent listener for torch state change events
|
|
861
|
+
*/
|
|
862
|
+
registerTorchStateListener(): Promise<void>;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Unregisters the torch state event listener
|
|
866
|
+
*/
|
|
867
|
+
unregisterTorchStateListener(): Promise<void>;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Registers a persistent listener for zoom level change events
|
|
871
|
+
*/
|
|
872
|
+
registerZoomLevelListener(): Promise<void>;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Unregisters the zoom level event listener
|
|
876
|
+
*/
|
|
877
|
+
unregisterZoomLevelListener(): Promise<void>;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Selects the zoom level on the ZoomSwitchControl. Returns the actual zoom level applied.
|
|
881
|
+
* @param viewId View identifier
|
|
882
|
+
* @param zoomLevel Desired zoom level as a zoom factor
|
|
883
|
+
*/
|
|
884
|
+
selectZoomLevel(x: {
|
|
885
|
+
viewId: number,
|
|
886
|
+
zoomLevel: number,
|
|
887
|
+
...
|
|
888
|
+
}): Promise<number>;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Registers a persistent listener for macro mode change events
|
|
892
|
+
*/
|
|
893
|
+
registerMacroModeListener(): Promise<void>;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Unregisters the macro mode event listener
|
|
897
|
+
*/
|
|
898
|
+
unregisterMacroModeListener(): Promise<void>;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Gets the last frame data by frame ID as JSON
|
|
902
|
+
* @param frameId Unique frame identifier
|
|
903
|
+
*/
|
|
904
|
+
getLastFrameAsJson(x: {
|
|
905
|
+
frameId: string,
|
|
906
|
+
...
|
|
907
|
+
}): Promise<string>;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Gets the last frame data by frame ID as JSON, or null if not found
|
|
911
|
+
* @param frameId Unique frame identifier
|
|
912
|
+
*/
|
|
913
|
+
getLastFrameOrNullAsJson(x: {
|
|
914
|
+
frameId: string,
|
|
915
|
+
...
|
|
916
|
+
}): Promise<string | null>;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Creates a DataCaptureContext from JSON
|
|
920
|
+
* @param contextJson DataCaptureContext configuration as JSON string
|
|
921
|
+
*/
|
|
922
|
+
createContextFromJson(x: {
|
|
923
|
+
contextJson: string,
|
|
924
|
+
...
|
|
925
|
+
}): Promise<void>;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Updates a DataCaptureContext from JSON
|
|
929
|
+
* @param contextJson Updated DataCaptureContext configuration as JSON string
|
|
930
|
+
*/
|
|
931
|
+
updateContextFromJson(x: {
|
|
932
|
+
contextJson: string,
|
|
933
|
+
...
|
|
934
|
+
}): Promise<void>;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Subscribes to context events with persistent listener
|
|
938
|
+
*/
|
|
939
|
+
subscribeContextListener(): Promise<void>;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Unsubscribes from context events
|
|
943
|
+
*/
|
|
944
|
+
unsubscribeContextListener(): Promise<void>;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Adds a mode to the DataCaptureContext
|
|
948
|
+
* @param modeJson Mode configuration as JSON string
|
|
949
|
+
*/
|
|
950
|
+
addModeToContext(x: {
|
|
951
|
+
modeJson: string,
|
|
952
|
+
...
|
|
953
|
+
}): Promise<void>;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Removes a mode from the DataCaptureContext
|
|
957
|
+
* @param modeJson Mode configuration as JSON string
|
|
958
|
+
*/
|
|
959
|
+
removeModeFromContext(x: {
|
|
960
|
+
modeJson: string,
|
|
961
|
+
...
|
|
962
|
+
}): Promise<void>;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Removes all modes from the DataCaptureContext
|
|
966
|
+
*/
|
|
967
|
+
removeAllModes(): Promise<void>;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Gets open source software license information
|
|
971
|
+
*/
|
|
972
|
+
getOpenSourceSoftwareLicenseInfo(): Promise<string>;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Disposes the DataCaptureContext and releases resources
|
|
976
|
+
*/
|
|
977
|
+
disposeContext(): Promise<void>;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Converts a point from frame coordinates to view coordinates
|
|
981
|
+
* @param viewId View identifier
|
|
982
|
+
* @param pointJson Point in frame coordinates as JSON string
|
|
983
|
+
*/
|
|
984
|
+
viewPointForFramePoint(x: {
|
|
985
|
+
viewId: number,
|
|
986
|
+
pointJson: string,
|
|
987
|
+
...
|
|
988
|
+
}): Promise<string>;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Converts a quadrilateral from frame coordinates to view coordinates
|
|
992
|
+
* @param viewId View identifier
|
|
993
|
+
* @param quadrilateralJson Quadrilateral in frame coordinates as JSON string
|
|
994
|
+
*/
|
|
995
|
+
viewQuadrilateralForFrameQuadrilateral(x: {
|
|
996
|
+
viewId: number,
|
|
997
|
+
quadrilateralJson: string,
|
|
998
|
+
...
|
|
999
|
+
}): Promise<string>;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Registers persistent event listener for view events
|
|
1003
|
+
* @param viewId View identifier
|
|
1004
|
+
*/
|
|
1005
|
+
registerListenerForViewEvents(x: {
|
|
1006
|
+
viewId: number,
|
|
1007
|
+
...
|
|
1008
|
+
}): Promise<void>;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Unregisters the view event listener
|
|
1012
|
+
* @param viewId View identifier
|
|
1013
|
+
*/
|
|
1014
|
+
unregisterListenerForViewEvents(x: {
|
|
1015
|
+
viewId: number,
|
|
1016
|
+
...
|
|
1017
|
+
}): Promise<void>;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Registers a persistent listener for focus gesture events
|
|
1021
|
+
* @param viewId View identifier
|
|
1022
|
+
*/
|
|
1023
|
+
registerFocusGestureListener(x: {
|
|
1024
|
+
viewId: number,
|
|
1025
|
+
...
|
|
1026
|
+
}): Promise<void>;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Unregisters the focus gesture event listener
|
|
1030
|
+
* @param viewId View identifier
|
|
1031
|
+
*/
|
|
1032
|
+
unregisterFocusGestureListener(x: {
|
|
1033
|
+
viewId: number,
|
|
1034
|
+
...
|
|
1035
|
+
}): Promise<void>;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Triggers a focus as if the focus gesture was performed
|
|
1039
|
+
* @param viewId View identifier
|
|
1040
|
+
* @param pointJson Point in view coordinates as JSON string
|
|
1041
|
+
*/
|
|
1042
|
+
triggerFocus(x: {
|
|
1043
|
+
viewId: number,
|
|
1044
|
+
pointJson: string,
|
|
1045
|
+
...
|
|
1046
|
+
}): Promise<void>;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Triggers a zoom in gesture as if the zoom gesture was performed
|
|
1050
|
+
* @param viewId View identifier
|
|
1051
|
+
*/
|
|
1052
|
+
triggerZoomIn(x: {
|
|
1053
|
+
viewId: number,
|
|
1054
|
+
...
|
|
1055
|
+
}): Promise<void>;
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Triggers a zoom out gesture as if the zoom gesture was performed
|
|
1059
|
+
* @param viewId View identifier
|
|
1060
|
+
*/
|
|
1061
|
+
triggerZoomOut(x: {
|
|
1062
|
+
viewId: number,
|
|
1063
|
+
...
|
|
1064
|
+
}): Promise<void>;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Registers a persistent listener for zoom gesture events
|
|
1068
|
+
* @param viewId View identifier
|
|
1069
|
+
*/
|
|
1070
|
+
registerZoomGestureListener(x: {
|
|
1071
|
+
viewId: number,
|
|
1072
|
+
...
|
|
1073
|
+
}): Promise<void>;
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Unregisters the zoom gesture event listener
|
|
1077
|
+
* @param viewId View identifier
|
|
1078
|
+
*/
|
|
1079
|
+
unregisterZoomGestureListener(x: {
|
|
1080
|
+
viewId: number,
|
|
1081
|
+
...
|
|
1082
|
+
}): Promise<void>;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Updates the DataCaptureView configuration
|
|
1086
|
+
* @param viewJson Updated view configuration as JSON string
|
|
1087
|
+
*/
|
|
1088
|
+
updateDataCaptureView(x: {
|
|
1089
|
+
viewJson: { [key: string]: any } | string,
|
|
1090
|
+
...
|
|
1091
|
+
}): Promise<void>;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Emits haptic/audio feedback
|
|
1095
|
+
* @param feedbackJson Feedback configuration as JSON string
|
|
1096
|
+
*/
|
|
1097
|
+
emitFeedback(x: {
|
|
1098
|
+
feedbackJson: string,
|
|
1099
|
+
...
|
|
1100
|
+
}): Promise<void>;
|
|
1101
|
+
}
|
|
1102
|
+
declare class ImageFrameSource
|
|
1103
|
+
mixins DefaultSerializeable
|
|
1104
|
+
implements FrameSource
|
|
1105
|
+
{
|
|
1106
|
+
-context: any;
|
|
1107
|
+
context: any;
|
|
1108
|
+
desiredState: $Values<typeof FrameSourceState>;
|
|
1109
|
+
static create(image: string): ImageFrameSource;
|
|
1110
|
+
constructor(): this;
|
|
1111
|
+
switchToDesiredState(state: $Values<typeof FrameSourceState>): Promise<void>;
|
|
1112
|
+
addListener(listener: FrameSourceListener | null): void;
|
|
1113
|
+
removeListener(listener: FrameSourceListener | null): void;
|
|
1114
|
+
getCurrentState(): Promise<$Values<typeof FrameSourceState>>;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* [object Object],[object Object],[object Object]
|
|
1118
|
+
*/
|
|
1119
|
+
declare class SequenceFrameSource
|
|
1120
|
+
mixins DefaultSerializeable
|
|
1121
|
+
implements FrameSource
|
|
1122
|
+
{
|
|
1123
|
+
-context: any;
|
|
1124
|
+
context: any;
|
|
1125
|
+
desiredState: $Values<typeof FrameSourceState>;
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Creates a sequence frame source for the given camera position. On iOS the lens position
|
|
1129
|
+
* (0.0-1.0) sets the capture device lens position; on Android it is ignored.
|
|
1130
|
+
*/
|
|
1131
|
+
static create(
|
|
1132
|
+
position: $Values<typeof CameraPosition>,
|
|
1133
|
+
lensPosition?: number
|
|
1134
|
+
): SequenceFrameSource;
|
|
1135
|
+
constructor(): this;
|
|
1136
|
+
switchToDesiredState(state: $Values<typeof FrameSourceState>): Promise<void>;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Adds a frame with the given width and height. The frame data must be the Base64 encoding
|
|
1140
|
+
* of the raw NV21 bytes of the frame. If this frame source is on and connected to a
|
|
1141
|
+
* data capture context, this is the next frame that will be processed.
|
|
1142
|
+
*/
|
|
1143
|
+
addFrame(width: number, height: number, frameData: string): Promise<void>;
|
|
1144
|
+
addListener(listener: FrameSourceListener): void;
|
|
1145
|
+
removeListener(listener: FrameSourceListener): void;
|
|
1146
|
+
getCurrentState(): Promise<$Values<typeof FrameSourceState>>;
|
|
1147
|
+
}
|
|
1148
|
+
declare interface CameraSettingsJSON {
|
|
1149
|
+
preferredResolution: string;
|
|
1150
|
+
zoomFactor: number;
|
|
1151
|
+
zoomGestureZoomFactor: number;
|
|
1152
|
+
zoomLevels?: number[];
|
|
1153
|
+
macroMode?: string;
|
|
1154
|
+
adaptiveExposure?: boolean;
|
|
1155
|
+
torchLevel?: number;
|
|
1156
|
+
focusRange?: string;
|
|
1157
|
+
focusGestureStrategy?: string;
|
|
1158
|
+
shouldPreferSmoothAutoFocus: boolean;
|
|
1159
|
+
properties?: {
|
|
1160
|
+
[key: string]: any,
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
declare interface PrivateCameraSettings {
|
|
1164
|
+
fromJSON(json: CameraSettingsJSON): CameraSettings;
|
|
1165
|
+
}
|
|
1166
|
+
declare class CameraSettings mixins DefaultSerializeable {
|
|
1167
|
+
preferredResolution: $Values<typeof VideoResolution>;
|
|
1168
|
+
zoomFactor: number;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* @deprecated Use zoomLevels instead.
|
|
1172
|
+
*/
|
|
1173
|
+
zoomGestureZoomFactor: number;
|
|
1174
|
+
zoomLevels: number[];
|
|
1175
|
+
torchLevel: number;
|
|
1176
|
+
macroMode: $Values<typeof MacroMode>;
|
|
1177
|
+
adaptiveExposure: boolean;
|
|
1178
|
+
static coreDefaults: any;
|
|
1179
|
+
focusRange: $Values<typeof FocusRange>;
|
|
1180
|
+
-focusRange: any;
|
|
1181
|
+
focusGestureStrategy: $Values<typeof FocusGestureStrategy>;
|
|
1182
|
+
-focusGestureStrategy: any;
|
|
1183
|
+
shouldPreferSmoothAutoFocus: boolean;
|
|
1184
|
+
-shouldPreferSmoothAutoFocus: any;
|
|
1185
|
+
constructor(): this;
|
|
1186
|
+
constructor(settings: CameraSettings): this;
|
|
1187
|
+
setProperty(name: string, value: any): void;
|
|
1188
|
+
getProperty(name: string): any;
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Camera lifecycle and operation handling:
|
|
1192
|
+
*
|
|
1193
|
+
* Phase 1 - Initial State (before native creation starts):
|
|
1194
|
+
* - Camera object exists in TypeScript but not yet being created on native side
|
|
1195
|
+
* - State changes (torch, desired state, settings) only update TypeScript properties
|
|
1196
|
+
* - No native calls are triggered
|
|
1197
|
+
*
|
|
1198
|
+
* Phase 2 - Native Creation In Progress (after setFrameSource, before context set):
|
|
1199
|
+
* - setFrameSource() called on DataCaptureContext, triggering setNativeFrameSourceIsBeingCreated()
|
|
1200
|
+
* - A promise is created that will resolve when the native camera is ready
|
|
1201
|
+
* - State changes during this phase await the native ready promise before executing
|
|
1202
|
+
* - Native camera is created asynchronously
|
|
1203
|
+
*
|
|
1204
|
+
* Phase 3 - Active State (after context set):
|
|
1205
|
+
* - Native camera is ready and available
|
|
1206
|
+
* - The native ready promise is resolved
|
|
1207
|
+
* - All state changes execute immediately on native side
|
|
1208
|
+
*/
|
|
1209
|
+
declare class Camera mixins DefaultSerializeable implements FrameSource {
|
|
1210
|
+
static coreDefaults: any;
|
|
1211
|
+
static create(
|
|
1212
|
+
position?: $Values<typeof CameraPosition>,
|
|
1213
|
+
settings?: CameraSettings | null,
|
|
1214
|
+
desiredTorchState?: $Values<typeof TorchState>,
|
|
1215
|
+
desiredState?: $Values<typeof FrameSourceState>
|
|
1216
|
+
): Camera | null;
|
|
1217
|
+
static withSettings(settings: CameraSettings): Camera | null;
|
|
1218
|
+
static asPositionWithSettings(
|
|
1219
|
+
cameraPosition: $Values<typeof CameraPosition>,
|
|
1220
|
+
settings: CameraSettings
|
|
1221
|
+
): Camera | null;
|
|
1222
|
+
static atPosition(
|
|
1223
|
+
cameraPosition: $Values<typeof CameraPosition>
|
|
1224
|
+
): Camera | null;
|
|
1225
|
+
constructor(): this;
|
|
1226
|
+
switchToDesiredState(state: $Values<typeof FrameSourceState>): Promise<void>;
|
|
1227
|
+
getCurrentState(): Promise<$Values<typeof FrameSourceState>>;
|
|
1228
|
+
getIsTorchAvailable(): Promise<boolean>;
|
|
1229
|
+
addListener(listener: FrameSourceListener | null): void;
|
|
1230
|
+
removeListener(listener: FrameSourceListener | null): void;
|
|
1231
|
+
addTorchListener(listener: TorchListener): void;
|
|
1232
|
+
removeTorchListener(listener: TorchListener): void;
|
|
1233
|
+
addMacroModeListener(listener: MacroModeListener): void;
|
|
1234
|
+
removeMacroModeListener(listener: MacroModeListener): void;
|
|
1235
|
+
addZoomListener(listener: ZoomListener): void;
|
|
1236
|
+
removeZoomListener(listener: ZoomListener): void;
|
|
1237
|
+
applySettings(settings: CameraSettings): Promise<void>;
|
|
1238
|
+
-context: any;
|
|
1239
|
+
context: any;
|
|
1240
|
+
isActiveCamera: any;
|
|
1241
|
+
static default: Camera | null;
|
|
1242
|
+
static isMacroModeAvailable(): Promise<boolean>;
|
|
1243
|
+
position: $Values<typeof CameraPosition>;
|
|
1244
|
+
isTorchAvailable: Promise<boolean>;
|
|
1245
|
+
desiredState: $Values<typeof FrameSourceState>;
|
|
1246
|
+
-desiredTorchState: any;
|
|
1247
|
+
desiredTorchState: $Values<typeof TorchState>;
|
|
1248
|
+
}
|
|
1249
|
+
declare interface PrivateCamera {
|
|
1250
|
+
context: DataCaptureContext | null;
|
|
1251
|
+
_position: $Values<typeof CameraPosition>;
|
|
1252
|
+
_desiredState: $Values<typeof FrameSourceState>;
|
|
1253
|
+
currentCameraState: $Values<typeof FrameSourceState>;
|
|
1254
|
+
desiredTorchState: $Values<typeof TorchState>;
|
|
1255
|
+
settings: CameraSettings | null;
|
|
1256
|
+
listeners: FrameSourceListener[];
|
|
1257
|
+
torchListeners: TorchListener[];
|
|
1258
|
+
macroModeListeners: MacroModeListener[];
|
|
1259
|
+
zoomListeners: ZoomListener[];
|
|
1260
|
+
controller: CameraController;
|
|
1261
|
+
isActiveCamera: boolean;
|
|
1262
|
+
initialize: () => void;
|
|
1263
|
+
didChange: () => Promise<void>;
|
|
1264
|
+
}
|
|
1265
|
+
declare class CameraController mixins BaseController<CoreProxy> {
|
|
1266
|
+
constructor(camera: Camera): this;
|
|
1267
|
+
privateCamera: any;
|
|
1268
|
+
getCurrentState(): Promise<$Values<typeof FrameSourceState>>;
|
|
1269
|
+
getIsTorchAvailable(): Promise<boolean>;
|
|
1270
|
+
switchCameraToDesiredState(
|
|
1271
|
+
desiredState: $Values<typeof FrameSourceState>
|
|
1272
|
+
): Promise<void>;
|
|
1273
|
+
subscribeListener(): Promise<void>;
|
|
1274
|
+
unsubscribeListener(): Promise<void>;
|
|
1275
|
+
subscribeTorchListener(): Promise<void>;
|
|
1276
|
+
unsubscribeTorchListener(): Promise<void>;
|
|
1277
|
+
subscribeMacroModeListener(): Promise<void>;
|
|
1278
|
+
unsubscribeMacroModeListener(): Promise<void>;
|
|
1279
|
+
subscribeZoomListener(): Promise<void>;
|
|
1280
|
+
unsubscribeZoomListener(): Promise<void>;
|
|
1281
|
+
dispose(): void;
|
|
1282
|
+
}
|
|
1283
|
+
declare class CameraSwitchControl
|
|
1284
|
+
mixins DefaultSerializeable
|
|
1285
|
+
implements Control
|
|
1286
|
+
{
|
|
1287
|
+
view: any;
|
|
1288
|
+
-view: any;
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* @internal Read-only view access for the sync controller.
|
|
1292
|
+
*/
|
|
1293
|
+
attachedView: BaseDataCaptureView | null;
|
|
1294
|
+
accessibilityLabelWhenWorldFacing: string | null;
|
|
1295
|
+
accessibilityHintWhenWorldFacing: string | null;
|
|
1296
|
+
accessibilityLabelWhenUserFacing: string | null;
|
|
1297
|
+
accessibilityHintWhenUserFacing: string | null;
|
|
1298
|
+
constructor(primaryCamera: Camera, secondaryCamera: Camera): this;
|
|
1299
|
+
primaryCamera: Camera;
|
|
1300
|
+
secondaryCamera: Camera;
|
|
1301
|
+
primaryCameraImage: string | null;
|
|
1302
|
+
-primaryCameraImage: any;
|
|
1303
|
+
primaryCameraPressedImage: string | null;
|
|
1304
|
+
-primaryCameraPressedImage: any;
|
|
1305
|
+
secondaryCameraImage: string | null;
|
|
1306
|
+
-secondaryCameraImage: any;
|
|
1307
|
+
secondaryCameraPressedImage: string | null;
|
|
1308
|
+
-secondaryCameraPressedImage: any;
|
|
1309
|
+
setPrimaryCameraImage(resource: string): void;
|
|
1310
|
+
setPrimaryCameraPressedImage(resource: string): void;
|
|
1311
|
+
setSecondaryCameraImage(resource: string): void;
|
|
1312
|
+
setSecondaryCameraPressedImage(resource: string): void;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Keeps the TS-side camera state in sync with the native camera switcher.
|
|
1316
|
+
*
|
|
1317
|
+
* The native `CameraSwitchControl` swaps the DataCaptureContext's active camera on its own when
|
|
1318
|
+
* tapped; the TS layer is never told, so `DataCaptureContext.frameSource` and the two cameras'
|
|
1319
|
+
* `_desiredState` drift out of sync (leading to "Unable to switch the camera" rejections when the
|
|
1320
|
+
* app later acts on a camera native no longer treats as active). This controller listens to the
|
|
1321
|
+
* frame-source state events (which carry the camera position) and repoints the TS state to mirror
|
|
1322
|
+
* the native switch — without issuing any native call, since native is already in that state.
|
|
1323
|
+
*/
|
|
1324
|
+
declare class CameraSwitchControlController mixins BaseController<CoreProxy> {
|
|
1325
|
+
constructor(control: CameraSwitchControl): this;
|
|
1326
|
+
subscribe(): Promise<void>;
|
|
1327
|
+
unsubscribe(): void;
|
|
1328
|
+
}
|
|
1329
|
+
declare class FrameDataController mixins BaseController<CoreProxy> {
|
|
1330
|
+
constructor(): this;
|
|
1331
|
+
getFrame(frameId: string): Promise<FrameData>;
|
|
1332
|
+
getFrameOrNull(frameId: string): Promise<FrameData | null>;
|
|
1333
|
+
}
|
|
1334
|
+
declare class ZoomSwitchControl mixins DefaultSerializeable implements Control {
|
|
1335
|
+
static coreDefaults: any;
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* @deprecated Use the unified `accessibilityLabel` property instead.
|
|
1339
|
+
*/
|
|
1340
|
+
contentDescriptionWhenZoomedOut: string | null;
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* @deprecated Use the unified `accessibilityLabel` property instead.
|
|
1344
|
+
*/
|
|
1345
|
+
contentDescriptionWhenZoomedIn: string | null;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* @deprecated Use the unified `accessibilityLabel` property instead.
|
|
1349
|
+
*/
|
|
1350
|
+
accessibilityLabelWhenZoomedOut: string | null;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* @deprecated Use the unified `accessibilityLabel` property instead.
|
|
1354
|
+
*/
|
|
1355
|
+
accessibilityLabelWhenZoomedIn: string | null;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* @deprecated Use the unified `accessibilityHint` property instead.
|
|
1359
|
+
*/
|
|
1360
|
+
accessibilityHintWhenZoomedOut: string | null;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* @deprecated Use the unified `accessibilityHint` property instead.
|
|
1364
|
+
*/
|
|
1365
|
+
accessibilityHintWhenZoomedIn: string | null;
|
|
1366
|
+
orientation: $Values<typeof ZoomSwitchOrientation>;
|
|
1367
|
+
isAlwaysExpanded: boolean;
|
|
1368
|
+
isExpanded: boolean;
|
|
1369
|
+
accessibilityLabel: string;
|
|
1370
|
+
accessibilityHint: string;
|
|
1371
|
+
selectedZoomLevel: number;
|
|
1372
|
+
constructor(): this;
|
|
1373
|
+
selectZoomLevel(level: number): Promise<number>;
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1377
|
+
*/
|
|
1378
|
+
zoomedOutImage: string | null;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1382
|
+
*/
|
|
1383
|
+
-zoomedOutImage: any;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1387
|
+
*/
|
|
1388
|
+
zoomedInImage: string | null;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1392
|
+
*/
|
|
1393
|
+
-zoomedInImage: any;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1397
|
+
*/
|
|
1398
|
+
zoomedInPressedImage: string | null;
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1402
|
+
*/
|
|
1403
|
+
-zoomedInPressedImage: any;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1407
|
+
*/
|
|
1408
|
+
zoomedOutPressedImage: string | null;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1412
|
+
*/
|
|
1413
|
+
-zoomedOutPressedImage: any;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1417
|
+
*/
|
|
1418
|
+
setZoomedInImage(resource: string): void;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1422
|
+
*/
|
|
1423
|
+
setZoomedInPressedImage(resource: string): void;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1427
|
+
*/
|
|
1428
|
+
setZoomedOutImage(resource: string): void;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* @deprecated Use the new ZoomSwitchControl v2 API. Image-based customization will be removed in 9.0.
|
|
1432
|
+
*/
|
|
1433
|
+
setZoomedOutPressedImage(resource: string): void;
|
|
1434
|
+
}
|
|
1435
|
+
declare class TorchSwitchControl
|
|
1436
|
+
mixins DefaultSerializeable
|
|
1437
|
+
implements Control
|
|
1438
|
+
{
|
|
1439
|
+
accessibilityLabelWhenOff: string | null;
|
|
1440
|
+
accessibilityHintWhenOff: string | null;
|
|
1441
|
+
accessibilityLabelWhenOn: string | null;
|
|
1442
|
+
accessibilityHintWhenOn: string | null;
|
|
1443
|
+
constructor(): this;
|
|
1444
|
+
torchOffImage: string | null;
|
|
1445
|
+
-torchOffImage: any;
|
|
1446
|
+
torchOffPressedImage: string | null;
|
|
1447
|
+
-torchOffPressedImage: any;
|
|
1448
|
+
torchOnImage: string | null;
|
|
1449
|
+
-torchOnImage: any;
|
|
1450
|
+
torchOnPressedImage: string | null;
|
|
1451
|
+
setTorchOffImage(resource: string): void;
|
|
1452
|
+
setTorchOffPressedImage(resource: string): void;
|
|
1453
|
+
setTorchOnImage(resource: string): void;
|
|
1454
|
+
setTorchOnPressedImage(resource: string): void;
|
|
1455
|
+
setImageResource(resource: string): void;
|
|
1456
|
+
-torchOnPressedImage: any;
|
|
1457
|
+
}
|
|
1458
|
+
declare interface PrivateSwipeToZoom {
|
|
1459
|
+
listeners: ZoomGestureListener[];
|
|
1460
|
+
onListenersChanged?: () => void;
|
|
1461
|
+
_controller?: DataCaptureViewController | null;
|
|
1462
|
+
}
|
|
1463
|
+
declare class SwipeToZoom mixins DefaultSerializeable implements ZoomGesture {
|
|
1464
|
+
constructor(): this;
|
|
1465
|
+
addListener(listener: ZoomGestureListener): void;
|
|
1466
|
+
removeListener(listener: ZoomGestureListener): void;
|
|
1467
|
+
triggerZoomIn(): Promise<void>;
|
|
1468
|
+
triggerZoomOut(): Promise<void>;
|
|
1469
|
+
}
|
|
1470
|
+
declare interface PrivatePinchToZoom {
|
|
1471
|
+
listeners: ZoomGestureListener[];
|
|
1472
|
+
onListenersChanged?: () => void;
|
|
1473
|
+
_controller?: DataCaptureViewController | null;
|
|
1474
|
+
}
|
|
1475
|
+
declare class PinchToZoom mixins DefaultSerializeable implements ZoomGesture {
|
|
1476
|
+
constructor(): this;
|
|
1477
|
+
addListener(listener: ZoomGestureListener): void;
|
|
1478
|
+
removeListener(listener: ZoomGestureListener): void;
|
|
1479
|
+
triggerZoomIn(): Promise<void>;
|
|
1480
|
+
triggerZoomOut(): Promise<void>;
|
|
1481
|
+
}
|
|
1482
|
+
declare type DataCaptureOverlay = { ... } & Serializeable;
|
|
1483
|
+
declare interface PrivateDataCaptureOverlay {
|
|
1484
|
+
view: BaseDataCaptureView | null;
|
|
1485
|
+
}
|
|
1486
|
+
declare interface DataCaptureViewListener {
|
|
1487
|
+
didChangeSize?: (
|
|
1488
|
+
view: DataCaptureView,
|
|
1489
|
+
size: Size,
|
|
1490
|
+
orientation: $Values<typeof Orientation>
|
|
1491
|
+
) => void;
|
|
1492
|
+
}
|
|
1493
|
+
declare interface DataCaptureView {
|
|
1494
|
+
addOverlay(overlay: DataCaptureOverlay): void;
|
|
1495
|
+
removeOverlay(overlay: DataCaptureOverlay): void;
|
|
1496
|
+
}
|
|
1497
|
+
declare class BaseDataCaptureView mixins DefaultSerializeable {
|
|
1498
|
+
viewComponent: DataCaptureView;
|
|
1499
|
+
parentId: number | null;
|
|
1500
|
+
overlays: DataCaptureOverlay[];
|
|
1501
|
+
listeners: DataCaptureViewListener[];
|
|
1502
|
+
context: DataCaptureContext | null;
|
|
1503
|
+
-context: any;
|
|
1504
|
+
coreDefaults: any;
|
|
1505
|
+
scanAreaMargins: MarginsWithUnit;
|
|
1506
|
+
viewId: number;
|
|
1507
|
+
-viewId: any;
|
|
1508
|
+
-scanAreaMargins: any;
|
|
1509
|
+
pointOfInterest: PointWithUnit;
|
|
1510
|
+
-pointOfInterest: any;
|
|
1511
|
+
logoAnchor: $Values<typeof Anchor>;
|
|
1512
|
+
-logoAnchor: any;
|
|
1513
|
+
logoOffset: PointWithUnit;
|
|
1514
|
+
-logoOffset: any;
|
|
1515
|
+
focusGesture: FocusGesture | null;
|
|
1516
|
+
-focusGesture: any;
|
|
1517
|
+
zoomGestures: ZoomGesture[];
|
|
1518
|
+
-zoomGestures: any;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* @deprecated Use zoomGestures instead. Will be removed in a future version.
|
|
1522
|
+
*/
|
|
1523
|
+
zoomGesture: ZoomGesture | null;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* @deprecated Use zoomGestures instead. Will be removed in a future version.
|
|
1527
|
+
*/
|
|
1528
|
+
-zoomGesture: any;
|
|
1529
|
+
logoStyle: $Values<typeof LogoStyle>;
|
|
1530
|
+
-logoStyle: any;
|
|
1531
|
+
shouldShowZoomNotification: boolean;
|
|
1532
|
+
-shouldShowZoomNotification: any;
|
|
1533
|
+
privateContext: any;
|
|
1534
|
+
static forContext(context: DataCaptureContext | null): BaseDataCaptureView;
|
|
1535
|
+
constructor(context: DataCaptureContext | null): this;
|
|
1536
|
+
addOverlay(overlay: DataCaptureOverlay): Promise<void>;
|
|
1537
|
+
removeOverlay(overlay: DataCaptureOverlay): Promise<void>;
|
|
1538
|
+
removeAllOverlays(): void;
|
|
1539
|
+
addListener(listener: DataCaptureViewListener): void;
|
|
1540
|
+
removeListener(listener: DataCaptureViewListener): void;
|
|
1541
|
+
viewPointForFramePoint(point: Point): Promise<Point>;
|
|
1542
|
+
viewQuadrilateralForFrameQuadrilateral(
|
|
1543
|
+
quadrilateral: Quadrilateral
|
|
1544
|
+
): Promise<Quadrilateral>;
|
|
1545
|
+
triggerFocus(point: PointWithUnit): Promise<void>;
|
|
1546
|
+
triggerZoomIn(): Promise<void>;
|
|
1547
|
+
triggerZoomOut(): Promise<void>;
|
|
1548
|
+
addControl(control: Control): Promise<void>;
|
|
1549
|
+
addControlWithAnchorAndOffset(
|
|
1550
|
+
control: Control,
|
|
1551
|
+
anchor: $Values<typeof Anchor>,
|
|
1552
|
+
offset: PointWithUnit
|
|
1553
|
+
): void;
|
|
1554
|
+
removeControl(control: Control): void;
|
|
1555
|
+
controlUpdated(): Promise<void>;
|
|
1556
|
+
createNativeView(viewId: number): Promise<void>;
|
|
1557
|
+
removeNativeView(): Promise<void>;
|
|
1558
|
+
dispose(): void;
|
|
1559
|
+
setFrame(frame: Rect, isUnderContent?: boolean): Promise<void>;
|
|
1560
|
+
setPositionAndSize(
|
|
1561
|
+
top: number,
|
|
1562
|
+
left: number,
|
|
1563
|
+
width: number,
|
|
1564
|
+
height: number,
|
|
1565
|
+
shouldBeUnderWebView: boolean
|
|
1566
|
+
): Promise<void>;
|
|
1567
|
+
show(): Promise<void>;
|
|
1568
|
+
hide(): Promise<void>;
|
|
1569
|
+
setProperty<T>(name: string, value: T): void;
|
|
1570
|
+
selectZoomLevel(zoomLevel: number): Promise<number>;
|
|
1571
|
+
}
|
|
1572
|
+
declare interface Control {}
|
|
1573
|
+
declare interface PrivateControl {
|
|
1574
|
+
view: BaseDataCaptureView | null;
|
|
1575
|
+
anchor: $Values<typeof Anchor> | null;
|
|
1576
|
+
offset: PointWithUnit | null;
|
|
1577
|
+
}
|
|
1578
|
+
declare class ControlImage mixins DefaultSerializeable {
|
|
1579
|
+
static fromBase64EncodedImage(data: string | null): ControlImage | null;
|
|
1580
|
+
static fromResourceName(resource: string): ControlImage;
|
|
1581
|
+
constructor(): this;
|
|
1582
|
+
isBase64EncodedImage(): boolean;
|
|
1583
|
+
data: string | null;
|
|
1584
|
+
}
|
|
1585
|
+
declare type DataCaptureViewProxy = {
|
|
1586
|
+
$showDataCaptureView(x: {
|
|
1587
|
+
viewId: number,
|
|
1588
|
+
...
|
|
1589
|
+
}): Promise<void>,
|
|
1590
|
+
$hideDataCaptureView(x: {
|
|
1591
|
+
viewId: number,
|
|
1592
|
+
...
|
|
1593
|
+
}): Promise<void>,
|
|
1594
|
+
$createDataCaptureView(x: {
|
|
1595
|
+
viewJson: string,
|
|
1596
|
+
...
|
|
1597
|
+
}): Promise<void>,
|
|
1598
|
+
$removeDataCaptureView(x: {
|
|
1599
|
+
viewId: number,
|
|
1600
|
+
...
|
|
1601
|
+
}): Promise<void>,
|
|
1602
|
+
$setDataCaptureViewPositionAndSize(x: {
|
|
1603
|
+
top: number,
|
|
1604
|
+
left: number,
|
|
1605
|
+
width: number,
|
|
1606
|
+
height: number,
|
|
1607
|
+
shouldBeUnderWebView: boolean,
|
|
1608
|
+
...
|
|
1609
|
+
}): Promise<void>,
|
|
1610
|
+
...
|
|
1611
|
+
} & CoreProxy;
|
|
1612
|
+
|
|
1613
|
+
declare var DataCaptureViewEvents: {|
|
|
1614
|
+
+didChangeSize: "DataCaptureViewListener.onSizeChanged", // "DataCaptureViewListener.onSizeChanged"
|
|
1615
|
+
+onFocusGesture: "FocusGestureListener.onFocusGesture", // "FocusGestureListener.onFocusGesture"
|
|
1616
|
+
|};
|
|
1617
|
+
declare class DataCaptureViewController
|
|
1618
|
+
mixins BaseController<DataCaptureViewProxy>
|
|
1619
|
+
{
|
|
1620
|
+
constructor(view: BaseDataCaptureView): this;
|
|
1621
|
+
viewPointForFramePoint(point: Point): Promise<Point>;
|
|
1622
|
+
viewQuadrilateralForFrameQuadrilateral(
|
|
1623
|
+
quadrilateral: Quadrilateral
|
|
1624
|
+
): Promise<Quadrilateral>;
|
|
1625
|
+
triggerFocus(point: PointWithUnit): Promise<void>;
|
|
1626
|
+
triggerZoomIn(): Promise<void>;
|
|
1627
|
+
triggerZoomOut(): Promise<void>;
|
|
1628
|
+
setPositionAndSize(
|
|
1629
|
+
top: number,
|
|
1630
|
+
left: number,
|
|
1631
|
+
width: number,
|
|
1632
|
+
height: number,
|
|
1633
|
+
shouldBeUnderWebView: boolean
|
|
1634
|
+
): Promise<void>;
|
|
1635
|
+
show(): Promise<void>;
|
|
1636
|
+
hide(): Promise<void>;
|
|
1637
|
+
createNativeView(): Promise<void>;
|
|
1638
|
+
removeNativeView(): Promise<void>;
|
|
1639
|
+
updateView(): Promise<void>;
|
|
1640
|
+
dispose(): void;
|
|
1641
|
+
subscribeListener(): Promise<void>;
|
|
1642
|
+
unsubscribeListener(): Promise<void>;
|
|
1643
|
+
updateFocusGestureListenerSubscription(
|
|
1644
|
+
focusGesture: FocusGesture | null,
|
|
1645
|
+
shouldSubscribe: boolean
|
|
1646
|
+
): Promise<void>;
|
|
1647
|
+
updateZoomGestureListenerSubscription(
|
|
1648
|
+
zoomGesture: ZoomGesture | null,
|
|
1649
|
+
shouldSubscribe: boolean
|
|
1650
|
+
): Promise<void>;
|
|
1651
|
+
selectZoomLevel(zoomLevel: number): Promise<number>;
|
|
1652
|
+
}
|
|
1653
|
+
declare interface CameraOwner {
|
|
1654
|
+
+id: string;
|
|
1655
|
+
}
|
|
1656
|
+
declare type DataCaptureMode = {
|
|
1657
|
+
isEnabled: boolean,
|
|
1658
|
+
+context: DataCaptureContext | null,
|
|
1659
|
+
...
|
|
1660
|
+
} & Serializeable;
|
|
1661
|
+
declare interface PrivateDataCaptureMode {
|
|
1662
|
+
_context: DataCaptureContext | null;
|
|
1663
|
+
modeId: number;
|
|
1664
|
+
}
|
|
1665
|
+
declare class OpenSourceSoftwareLicenseInfo {
|
|
1666
|
+
constructor(licenseText: string): this;
|
|
1667
|
+
licenseText: string;
|
|
1668
|
+
}
|
|
1669
|
+
declare type DataCaptureContextProxy = {
|
|
1670
|
+
framework: string,
|
|
1671
|
+
frameworkVersion: string,
|
|
1672
|
+
...
|
|
1673
|
+
} & CoreProxy;
|
|
1674
|
+
|
|
1675
|
+
declare var DataCaptureContextEvents: {|
|
|
1676
|
+
+didChangeStatus: "DataCaptureContextListener.onStatusChanged", // "DataCaptureContextListener.onStatusChanged"
|
|
1677
|
+
+didStartObservingContext: "DataCaptureContextListener.onObservationStarted", // "DataCaptureContextListener.onObservationStarted"
|
|
1678
|
+
|};
|
|
1679
|
+
declare class DataCaptureContextController
|
|
1680
|
+
mixins BaseController<DataCaptureContextProxy>
|
|
1681
|
+
{
|
|
1682
|
+
framework: string;
|
|
1683
|
+
frameworkVersion: string;
|
|
1684
|
+
privateContext: any;
|
|
1685
|
+
static forDataCaptureContext(
|
|
1686
|
+
context: DataCaptureContext
|
|
1687
|
+
): DataCaptureContextController;
|
|
1688
|
+
static getOpenSourceSoftwareLicenseInfo(): Promise<OpenSourceSoftwareLicenseInfo>;
|
|
1689
|
+
constructor(): this;
|
|
1690
|
+
subscribeListener(): Promise<void>;
|
|
1691
|
+
updateContextFromJSON(): Promise<void>;
|
|
1692
|
+
addModeToContext(mode: DataCaptureMode): Promise<void>;
|
|
1693
|
+
removeModeFromContext(mode: DataCaptureMode): Promise<void>;
|
|
1694
|
+
removeAllModesFromContext(): Promise<void>;
|
|
1695
|
+
dispose(): void;
|
|
1696
|
+
unsubscribeListener(): Promise<void>;
|
|
1697
|
+
initialize(): Promise<void>;
|
|
1698
|
+
}
|
|
1699
|
+
declare interface DataCaptureContextCreationOptions {
|
|
1700
|
+
deviceName?: string | null;
|
|
1701
|
+
}
|
|
1702
|
+
declare interface DataCaptureContextListener {
|
|
1703
|
+
didChangeStatus?: (
|
|
1704
|
+
context: DataCaptureContext,
|
|
1705
|
+
contextStatus: ContextStatus
|
|
1706
|
+
) => void;
|
|
1707
|
+
didStartObservingContext?: (context: DataCaptureContext) => void;
|
|
1708
|
+
}
|
|
1709
|
+
declare class DataCaptureContextSettings mixins DefaultSerializeable {
|
|
1710
|
+
constructor(): this;
|
|
1711
|
+
frameDataSettings: FrameDataSettings;
|
|
1712
|
+
-frameDataSettings: any;
|
|
1713
|
+
frameDataSettingsBuilder(): FrameDataSettingsBuilder;
|
|
1714
|
+
setProperty(name: string, value: any): void;
|
|
1715
|
+
getProperty(name: string): any;
|
|
1716
|
+
}
|
|
1717
|
+
declare class DataCaptureContext mixins DefaultSerializeable {
|
|
1718
|
+
static sharedInstance: DataCaptureContext;
|
|
1719
|
+
static getOpenSourceSoftwareLicenseInfo(): Promise<OpenSourceSoftwareLicenseInfo>;
|
|
1720
|
+
static coreDefaults: any;
|
|
1721
|
+
frameSource: FrameSource | null;
|
|
1722
|
+
static deviceID: string | null;
|
|
1723
|
+
static forLicenseKey(licenseKey: string): DataCaptureContext;
|
|
1724
|
+
static forLicenseKeyWithSettings(
|
|
1725
|
+
licenseKey: string,
|
|
1726
|
+
settings: DataCaptureContextSettings | null
|
|
1727
|
+
): DataCaptureContext;
|
|
1728
|
+
static forLicenseKeyWithOptions(
|
|
1729
|
+
licenseKey: string,
|
|
1730
|
+
options: DataCaptureContextCreationOptions | null
|
|
1731
|
+
): DataCaptureContext;
|
|
1732
|
+
static initialize(
|
|
1733
|
+
licenseKey: string,
|
|
1734
|
+
options?: DataCaptureContextCreationOptions | null,
|
|
1735
|
+
settings?: DataCaptureContextSettings | null
|
|
1736
|
+
): DataCaptureContext;
|
|
1737
|
+
constructor(): this;
|
|
1738
|
+
setFrameSource(frameSource: FrameSource | null): Promise<void>;
|
|
1739
|
+
addListener(listener: DataCaptureContextListener): Promise<void>;
|
|
1740
|
+
removeListener(listener: DataCaptureContextListener): Promise<void>;
|
|
1741
|
+
addMode(mode: DataCaptureMode): Promise<void>;
|
|
1742
|
+
setMode(mode: DataCaptureMode): Promise<void>;
|
|
1743
|
+
removeCurrentMode(): Promise<void>;
|
|
1744
|
+
removeMode(mode: DataCaptureMode): Promise<void>;
|
|
1745
|
+
removeAllModes(): Promise<void>;
|
|
1746
|
+
dispose(): Promise<void>;
|
|
1747
|
+
applySettings(settings: DataCaptureContextSettings): Promise<void>;
|
|
1748
|
+
}
|
|
1749
|
+
declare interface PrivateDataCaptureContext {
|
|
1750
|
+
controller: DataCaptureContextController;
|
|
1751
|
+
modes: [DataCaptureMode];
|
|
1752
|
+
components: [DataCaptureComponent];
|
|
1753
|
+
listeners: DataCaptureContextListener[];
|
|
1754
|
+
view: BaseDataCaptureView | null;
|
|
1755
|
+
update: () => Promise<void>;
|
|
1756
|
+
initialize(): void;
|
|
1757
|
+
adoptActiveFrameSource(frameSource: FrameSource): void;
|
|
1758
|
+
}
|
|
1759
|
+
declare interface DataCaptureComponent {
|
|
1760
|
+
+id: string;
|
|
1761
|
+
}
|
|
1762
|
+
declare interface PrivateDataCaptureComponent {
|
|
1763
|
+
_context: DataCaptureContext;
|
|
1764
|
+
}
|
|
1765
|
+
declare var VibrationType: {|
|
|
1766
|
+
+default: "default", // "default"
|
|
1767
|
+
+selectionHaptic: "selectionHaptic", // "selectionHaptic"
|
|
1768
|
+
+successHaptic: "successHaptic", // "successHaptic"
|
|
1769
|
+
+failureHaptic: "failureHaptic", // "failureHaptic"
|
|
1770
|
+
+waveForm: "waveForm", // "waveForm"
|
|
1771
|
+
+impactHaptic: "impactHaptic", // "impactHaptic"
|
|
1772
|
+
|};
|
|
1773
|
+
declare interface VibrationJSON {
|
|
1774
|
+
type: string;
|
|
1775
|
+
timings: number[] | null;
|
|
1776
|
+
amplitudes: number[] | null;
|
|
1777
|
+
}
|
|
1778
|
+
declare interface PrivateVibration {
|
|
1779
|
+
fromJSON(json: VibrationJSON): Vibration;
|
|
1780
|
+
}
|
|
1781
|
+
declare class Vibration mixins DefaultSerializeable {
|
|
1782
|
+
static defaultVibration: Vibration;
|
|
1783
|
+
static selectionHapticFeedback: Vibration;
|
|
1784
|
+
static successHapticFeedback: Vibration;
|
|
1785
|
+
static failureHapticFeedback: Vibration;
|
|
1786
|
+
static impactHapticFeedback: Vibration;
|
|
1787
|
+
constructor(type: $Values<typeof VibrationType>): this;
|
|
1788
|
+
}
|
|
1789
|
+
declare class WaveFormVibration mixins Vibration {
|
|
1790
|
+
timings: number[];
|
|
1791
|
+
amplitudes: number[] | null;
|
|
1792
|
+
constructor(timings: number[], amplitudes?: number[] | null): this;
|
|
1793
|
+
}
|
|
1794
|
+
declare interface SoundJSON {
|
|
1795
|
+
resource: string | null;
|
|
1796
|
+
}
|
|
1797
|
+
declare interface PrivateSound {
|
|
1798
|
+
fromJSON(json: SoundJSON): Sound;
|
|
1799
|
+
}
|
|
1800
|
+
declare class Sound mixins DefaultSerializeable {
|
|
1801
|
+
resource: string | null;
|
|
1802
|
+
static defaultSound: Sound;
|
|
1803
|
+
constructor(resource: string | null): this;
|
|
1804
|
+
}
|
|
1805
|
+
declare interface FeedbackJSON {
|
|
1806
|
+
vibration: VibrationJSON | null;
|
|
1807
|
+
sound: SoundJSON | null;
|
|
1808
|
+
}
|
|
1809
|
+
declare interface PrivateFeedback {
|
|
1810
|
+
fromJSON(json: FeedbackJSON): Feedback;
|
|
1811
|
+
}
|
|
1812
|
+
declare class Feedback mixins DefaultSerializeable {
|
|
1813
|
+
static defaultFeedback: Feedback;
|
|
1814
|
+
vibration: Vibration | null;
|
|
1815
|
+
sound: Sound | null;
|
|
1816
|
+
constructor(vibration: Vibration | null, sound: Sound | null): this;
|
|
1817
|
+
emit(): void;
|
|
1818
|
+
toJSON(): { [key: string]: any };
|
|
1819
|
+
}
|
|
1820
|
+
declare var FrameSourceListenerEvents: {|
|
|
1821
|
+
+didChangeState: "FrameSourceListener.onStateChanged", // "FrameSourceListener.onStateChanged"
|
|
1822
|
+
|};
|
|
1823
|
+
|
|
1824
|
+
declare var TorchListenerEvents: {|
|
|
1825
|
+
+didChangeTorchToState: "TorchListener.onTorchStateChanged", // "TorchListener.onTorchStateChanged"
|
|
1826
|
+
|};
|
|
1827
|
+
|
|
1828
|
+
declare var MacroModeListenerEvents: {|
|
|
1829
|
+
+didChangeMacroMode: "MacroModeListener.onMacroModeChanged", // "MacroModeListener.onMacroModeChanged"
|
|
1830
|
+
|};
|
|
1831
|
+
declare class CameraOwnershipManager {
|
|
1832
|
+
static getInstance(): CameraOwnershipManager;
|
|
1833
|
+
constructor(): this;
|
|
1834
|
+
requestOwnership(
|
|
1835
|
+
position: $Values<typeof CameraPosition>,
|
|
1836
|
+
owner: CameraOwner
|
|
1837
|
+
): boolean;
|
|
1838
|
+
requestOwnershipAsync(
|
|
1839
|
+
position: $Values<typeof CameraPosition>,
|
|
1840
|
+
owner: CameraOwner,
|
|
1841
|
+
timeoutMs?: number
|
|
1842
|
+
): Promise<boolean>;
|
|
1843
|
+
releaseOwnership(
|
|
1844
|
+
position: $Values<typeof CameraPosition>,
|
|
1845
|
+
owner: CameraOwner
|
|
1846
|
+
): boolean;
|
|
1847
|
+
isOwner(
|
|
1848
|
+
position: $Values<typeof CameraPosition>,
|
|
1849
|
+
owner: CameraOwner
|
|
1850
|
+
): boolean;
|
|
1851
|
+
getCurrentOwner(position: $Values<typeof CameraPosition>): CameraOwner | null;
|
|
1852
|
+
checkOwnership(
|
|
1853
|
+
position: $Values<typeof CameraPosition>,
|
|
1854
|
+
owner: CameraOwner
|
|
1855
|
+
): boolean;
|
|
1856
|
+
getOwnedPosition(owner: CameraOwner): $Values<typeof CameraPosition> | null;
|
|
1857
|
+
getAllOwnedPositions(owner: CameraOwner): $Values<typeof CameraPosition>[];
|
|
1858
|
+
}
|
|
1859
|
+
declare class CameraOwnershipHelper {
|
|
1860
|
+
/**
|
|
1861
|
+
* Get camera instance for the owner (only works if you own it)
|
|
1862
|
+
*/
|
|
1863
|
+
static getCamera(
|
|
1864
|
+
position: $Values<typeof CameraPosition>,
|
|
1865
|
+
owner: CameraOwner
|
|
1866
|
+
): Camera | null;
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Safely execute camera operations (only works if you own the camera)
|
|
1870
|
+
*/
|
|
1871
|
+
static withCamera<T>(
|
|
1872
|
+
position: $Values<typeof CameraPosition>,
|
|
1873
|
+
owner: CameraOwner,
|
|
1874
|
+
operation: (camera: Camera) => Promise<T> | T
|
|
1875
|
+
): Promise<T | null>;
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Execute camera operations, waiting for ownership if necessary
|
|
1879
|
+
*/
|
|
1880
|
+
static withCameraWhenAvailable<T>(
|
|
1881
|
+
position: $Values<typeof CameraPosition>,
|
|
1882
|
+
owner: CameraOwner,
|
|
1883
|
+
operation: (camera: Camera) => Promise<T> | T,
|
|
1884
|
+
timeoutMs?: number
|
|
1885
|
+
): Promise<T | null>;
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* Request ownership and wait if necessary
|
|
1889
|
+
*/
|
|
1890
|
+
static requestOwnership(
|
|
1891
|
+
position: $Values<typeof CameraPosition>,
|
|
1892
|
+
owner: CameraOwner,
|
|
1893
|
+
timeoutMs?: number
|
|
1894
|
+
): Promise<boolean>;
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* Release ownership
|
|
1898
|
+
*/
|
|
1899
|
+
static releaseOwnership(
|
|
1900
|
+
position: $Values<typeof CameraPosition>,
|
|
1901
|
+
owner: CameraOwner
|
|
1902
|
+
): boolean;
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Check if owner has ownership
|
|
1906
|
+
*/
|
|
1907
|
+
static hasOwnership(
|
|
1908
|
+
position: $Values<typeof CameraPosition>,
|
|
1909
|
+
owner: CameraOwner
|
|
1910
|
+
): boolean;
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* Get the camera position currently owned by the owner (if unknown)
|
|
1914
|
+
*/
|
|
1915
|
+
static getOwnedPosition(
|
|
1916
|
+
owner: CameraOwner
|
|
1917
|
+
): $Values<typeof CameraPosition> | null;
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* Get all camera positions currently owned by the owner
|
|
1921
|
+
*/
|
|
1922
|
+
static getAllOwnedPositions(
|
|
1923
|
+
owner: CameraOwner
|
|
1924
|
+
): $Values<typeof CameraPosition>[];
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Release ownership of all cameras owned by the owner
|
|
1928
|
+
*/
|
|
1929
|
+
static releaseAllOwnerships(owner: CameraOwner): void;
|
|
1930
|
+
}
|
|
1931
|
+
declare var ZoomListenerEvents: {|
|
|
1932
|
+
+didChangeZoomLevel: "ZoomListener.onZoomLevelChanged", // "ZoomListener.onZoomLevelChanged"
|
|
1933
|
+
|};
|
|
1934
|
+
declare interface Viewfinder {}
|
|
1935
|
+
declare var NoViewfinder: {
|
|
1936
|
+
type: string,
|
|
1937
|
+
...
|
|
1938
|
+
};
|
|
1939
|
+
declare class RectangularViewfinder
|
|
1940
|
+
mixins DefaultSerializeable
|
|
1941
|
+
implements Viewfinder
|
|
1942
|
+
{
|
|
1943
|
+
color: Color;
|
|
1944
|
+
sizeWithUnitAndAspect: SizeWithUnitAndAspect;
|
|
1945
|
+
-sizeWithUnitAndAspect: any;
|
|
1946
|
+
coreDefaults: any;
|
|
1947
|
+
constructor(): this;
|
|
1948
|
+
constructor(style: $Values<typeof RectangularViewfinderStyle>): this;
|
|
1949
|
+
constructor(
|
|
1950
|
+
style: $Values<typeof RectangularViewfinderStyle>,
|
|
1951
|
+
lineStyle: $Values<typeof RectangularViewfinderLineStyle>
|
|
1952
|
+
): this;
|
|
1953
|
+
style: $Values<typeof RectangularViewfinderStyle>;
|
|
1954
|
+
lineStyle: $Values<typeof RectangularViewfinderLineStyle>;
|
|
1955
|
+
dimming: number;
|
|
1956
|
+
-dimming: any;
|
|
1957
|
+
disabledDimming: number;
|
|
1958
|
+
-disabledDimming: any;
|
|
1959
|
+
animation: RectangularViewfinderAnimation | null;
|
|
1960
|
+
-animation: any;
|
|
1961
|
+
setSize(size: SizeWithUnit): void;
|
|
1962
|
+
setWidthAndAspectRatio(
|
|
1963
|
+
width: NumberWithUnit,
|
|
1964
|
+
heightToWidthAspectRatio: number
|
|
1965
|
+
): void;
|
|
1966
|
+
setHeightAndAspectRatio(
|
|
1967
|
+
height: NumberWithUnit,
|
|
1968
|
+
widthToHeightAspectRatio: number
|
|
1969
|
+
): void;
|
|
1970
|
+
setShorterDimensionAndAspectRatio(
|
|
1971
|
+
fraction: number,
|
|
1972
|
+
aspectRatio: number
|
|
1973
|
+
): void;
|
|
1974
|
+
disabledColor: Color;
|
|
1975
|
+
-disabledColor: any;
|
|
1976
|
+
}
|
|
1977
|
+
declare class AimerViewfinder
|
|
1978
|
+
mixins DefaultSerializeable
|
|
1979
|
+
implements Viewfinder
|
|
1980
|
+
{
|
|
1981
|
+
frameColor: Color;
|
|
1982
|
+
dotColor: Color;
|
|
1983
|
+
coreDefaults: any;
|
|
1984
|
+
constructor(): this;
|
|
1985
|
+
}
|
|
1986
|
+
declare class LaserlineViewfinder
|
|
1987
|
+
mixins DefaultSerializeable
|
|
1988
|
+
implements Viewfinder
|
|
1989
|
+
{
|
|
1990
|
+
width: NumberWithUnit;
|
|
1991
|
+
enabledColor: Color;
|
|
1992
|
+
disabledColor: Color;
|
|
1993
|
+
coreDefaults: any;
|
|
1994
|
+
constructor(): this;
|
|
1995
|
+
}
|
|
1996
|
+
declare interface LocationSelection {}
|
|
1997
|
+
declare var NoneLocationSelection: {
|
|
1998
|
+
type: string,
|
|
1999
|
+
...
|
|
2000
|
+
};
|
|
2001
|
+
declare interface RadiusLocationSelectionJSON {
|
|
2002
|
+
radius: NumberWithUnitJSON;
|
|
2003
|
+
}
|
|
2004
|
+
declare interface PrivateRadiusLocationSelection {
|
|
2005
|
+
fromJSON(JSON: RadiusLocationSelectionJSON): RadiusLocationSelection;
|
|
2006
|
+
}
|
|
2007
|
+
declare class RadiusLocationSelection
|
|
2008
|
+
mixins DefaultSerializeable
|
|
2009
|
+
implements LocationSelection
|
|
2010
|
+
{
|
|
2011
|
+
radius: NumberWithUnit;
|
|
2012
|
+
static fromJSON(
|
|
2013
|
+
locationSelectionJson: RadiusLocationSelectionJSON
|
|
2014
|
+
): RadiusLocationSelection;
|
|
2015
|
+
constructor(radius: NumberWithUnit): this;
|
|
2016
|
+
}
|
|
2017
|
+
declare interface RectangularLocationSelectionJSON {
|
|
2018
|
+
aspect: SizeWithUnitAndAspectJSON;
|
|
2019
|
+
}
|
|
2020
|
+
declare interface PrivateRectangularLocationSelection {
|
|
2021
|
+
fromJSON(
|
|
2022
|
+
JSON: RectangularLocationSelectionJSON
|
|
2023
|
+
): RectangularLocationSelection;
|
|
2024
|
+
}
|
|
2025
|
+
declare class RectangularLocationSelection
|
|
2026
|
+
mixins DefaultSerializeable
|
|
2027
|
+
implements LocationSelection
|
|
2028
|
+
{
|
|
2029
|
+
sizeWithUnitAndAspect: SizeWithUnitAndAspect;
|
|
2030
|
+
static withSize(size: SizeWithUnit): RectangularLocationSelection;
|
|
2031
|
+
static withWidthAndAspectRatio(
|
|
2032
|
+
width: NumberWithUnit,
|
|
2033
|
+
heightToWidthAspectRatio: number
|
|
2034
|
+
): RectangularLocationSelection;
|
|
2035
|
+
static withHeightAndAspectRatio(
|
|
2036
|
+
height: NumberWithUnit,
|
|
2037
|
+
widthToHeightAspectRatio: number
|
|
2038
|
+
): RectangularLocationSelection;
|
|
2039
|
+
static fromJSON(
|
|
2040
|
+
rectangularLocationSelectionJSON: RectangularLocationSelectionJSON
|
|
2041
|
+
): RectangularLocationSelection;
|
|
2042
|
+
}
|
|
2043
|
+
declare var Expiration: {|
|
|
2044
|
+
+Available: "available", // "available"
|
|
2045
|
+
+Perpetual: "perpetual", // "perpetual"
|
|
2046
|
+
+NotAvailable: "notAvailable", // "notAvailable"
|
|
2047
|
+
|};
|
|
2048
|
+
declare class LicenseInfo mixins DefaultSerializeable {
|
|
2049
|
+
expiration: $Values<typeof Expiration>;
|
|
2050
|
+
}
|
|
2051
|
+
declare interface ProxyEvent {
|
|
2052
|
+
name: string;
|
|
2053
|
+
nativeEventName: string;
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* Framework specific native calls provider
|
|
2057
|
+
*/
|
|
2058
|
+
declare interface NativeCaller {
|
|
2059
|
+
callFn(
|
|
2060
|
+
fnName: string,
|
|
2061
|
+
args: { [key: string]: any } | void | null,
|
|
2062
|
+
meta?: {
|
|
2063
|
+
isEventRegistration?: boolean,
|
|
2064
|
+
...
|
|
2065
|
+
}
|
|
2066
|
+
): Promise<mixed>;
|
|
2067
|
+
registerEvent(
|
|
2068
|
+
evName: string,
|
|
2069
|
+
handler: (args: mixed) => Promise<void>
|
|
2070
|
+
): Promise<mixed>;
|
|
2071
|
+
unregisterEvent(evName: string, subscription: mixed): Promise<void>;
|
|
2072
|
+
eventHook(args: mixed): mixed;
|
|
2073
|
+
}
|
|
2074
|
+
declare class NativeProxy {
|
|
2075
|
+
eventEmitter: EventEmitter;
|
|
2076
|
+
nativeCaller: NativeCaller;
|
|
2077
|
+
eventSubscriptions: Map<string, mixed>;
|
|
2078
|
+
[k: string]: mixed;
|
|
2079
|
+
constructor(nativeCaller: NativeCaller): this;
|
|
2080
|
+
framework: string;
|
|
2081
|
+
frameworkVersion: string;
|
|
2082
|
+
subscribeForEvents(events: string[]): Promise<void>;
|
|
2083
|
+
unsubscribeFromEvents(events: string[]): Promise<void>;
|
|
2084
|
+
dispose(): Promise<void>;
|
|
2085
|
+
_call(
|
|
2086
|
+
fnName: string,
|
|
2087
|
+
args: { [key: string]: any } | void | null
|
|
2088
|
+
): Promise<mixed>;
|
|
2089
|
+
_callEventRegistration(
|
|
2090
|
+
fnName: string,
|
|
2091
|
+
args: { [key: string]: any } | void | null
|
|
2092
|
+
): Promise<any>;
|
|
2093
|
+
}
|
|
2094
|
+
declare function createNativeProxy<PROXY>(nativeCaller: NativeCaller): PROXY;
|
|
2095
|
+
declare interface NativeCallerProvider<ProxyType: string = string> {
|
|
2096
|
+
getNativeCaller(proxyType: ProxyType): NativeCaller;
|
|
2097
|
+
}
|
|
2098
|
+
declare function registerProxies<ProxyType: string>(
|
|
2099
|
+
proxyTypeNames: $ReadOnlyArray<ProxyType>,
|
|
2100
|
+
provider: NativeCallerProvider<ProxyType>
|
|
2101
|
+
): void;
|
|
2102
|
+
declare interface FactoryMakerItem {
|
|
2103
|
+
instance?: mixed;
|
|
2104
|
+
builder?: () => mixed;
|
|
2105
|
+
}
|
|
2106
|
+
declare class FactoryMaker {
|
|
2107
|
+
static instances: Map<string, FactoryMakerItem>;
|
|
2108
|
+
static bindInstance(clsName: string, instance: mixed): void;
|
|
2109
|
+
static bindLazyInstance<T>(clsName: string, builder: () => T): void;
|
|
2110
|
+
static bindInstanceIfNotExists(clsName: string, instance: mixed): void;
|
|
2111
|
+
static getInstance<T>(clsName: string): T | void;
|
|
2112
|
+
static createInstance<T>(clsName: string): T;
|
|
2113
|
+
}
|
|
2114
|
+
declare var CORE_PROXY_TYPE_NAMES: [
|
|
2115
|
+
"CoreProxy",
|
|
2116
|
+
"DataCaptureViewProxy",
|
|
2117
|
+
"DataCaptureContextProxy"
|
|
2118
|
+
];
|
|
2119
|
+
declare type CoreProxyType = $ElementType<typeof CORE_PROXY_TYPE_NAMES, number>;
|
|
2120
|
+
declare type CoreNativeCallerProvider = {
|
|
2121
|
+
...
|
|
2122
|
+
} & NativeCallerProvider<CoreProxyType>;
|
|
2123
|
+
declare function registerCoreProxies(provider: CoreNativeCallerProvider): void;
|
|
2124
|
+
declare function generateIdentifier(): string;
|
|
2125
|
+
|
|
2126
|
+
declare var ClusteringMode: {|
|
|
2127
|
+
+Disabled: "disabled", // "disabled"
|
|
2128
|
+
+Manual: "manual", // "manual"
|
|
2129
|
+
+Auto: "auto", // "auto"
|
|
2130
|
+
+AutoWithManualCorrection: "autoWithManualCorrection", // "autoWithManualCorrection"
|
|
2131
|
+
|};
|
|
2132
|
+
declare export {
|
|
2133
|
+
AimerViewfinder,
|
|
2134
|
+
Anchor,
|
|
2135
|
+
BaseController,
|
|
2136
|
+
BaseDataCaptureView,
|
|
2137
|
+
Brush,
|
|
2138
|
+
CORE_PROXY_TYPE_NAMES,
|
|
2139
|
+
Camera,
|
|
2140
|
+
CameraController,
|
|
2141
|
+
CameraOwnershipHelper,
|
|
2142
|
+
CameraOwnershipManager,
|
|
2143
|
+
CameraPosition,
|
|
2144
|
+
CameraSettings,
|
|
2145
|
+
CameraSwitchControlController,
|
|
2146
|
+
ClusteringMode,
|
|
2147
|
+
Color,
|
|
2148
|
+
ContextStatus,
|
|
2149
|
+
ControlImage,
|
|
2150
|
+
CoreProxyAdapter,
|
|
2151
|
+
DataCaptureContext,
|
|
2152
|
+
DataCaptureContextEvents,
|
|
2153
|
+
DataCaptureContextSettings,
|
|
2154
|
+
DataCaptureViewController,
|
|
2155
|
+
DataCaptureViewEvents,
|
|
2156
|
+
DefaultSerializeable,
|
|
2157
|
+
Direction,
|
|
2158
|
+
EventDataParser,
|
|
2159
|
+
Expiration,
|
|
2160
|
+
FactoryMaker,
|
|
2161
|
+
Feedback,
|
|
2162
|
+
FocusGestureListenerEvents,
|
|
2163
|
+
FocusGestureStrategy,
|
|
2164
|
+
FocusRange,
|
|
2165
|
+
FontFamily,
|
|
2166
|
+
FrameDataController,
|
|
2167
|
+
FrameDataSettings,
|
|
2168
|
+
FrameDataSettingsBuilder,
|
|
2169
|
+
FrameSourceListenerEvents,
|
|
2170
|
+
FrameSourceState,
|
|
2171
|
+
HTMLElementState,
|
|
2172
|
+
HtmlElementPosition,
|
|
2173
|
+
HtmlElementSize,
|
|
2174
|
+
ImageBuffer,
|
|
2175
|
+
ImageFrameSource,
|
|
2176
|
+
LaserlineViewfinder,
|
|
2177
|
+
LicenseInfo,
|
|
2178
|
+
LogoStyle,
|
|
2179
|
+
MacroMode,
|
|
2180
|
+
MacroModeListenerEvents,
|
|
2181
|
+
MarginsWithUnit,
|
|
2182
|
+
MeasureUnit,
|
|
2183
|
+
NativeProxy,
|
|
2184
|
+
NoViewfinder,
|
|
2185
|
+
NoneLocationSelection,
|
|
2186
|
+
NumberWithUnit,
|
|
2187
|
+
Observable,
|
|
2188
|
+
OpenSourceSoftwareLicenseInfo,
|
|
2189
|
+
Orientation,
|
|
2190
|
+
PinchToZoom,
|
|
2191
|
+
Point,
|
|
2192
|
+
PointWithUnit,
|
|
2193
|
+
PrivateFocusGestureDeserializer,
|
|
2194
|
+
PrivateFrameData,
|
|
2195
|
+
PrivateZoomGestureDeserializer,
|
|
2196
|
+
Quadrilateral,
|
|
2197
|
+
RadiusLocationSelection,
|
|
2198
|
+
Rect,
|
|
2199
|
+
RectWithUnit,
|
|
2200
|
+
RectangularLocationSelection,
|
|
2201
|
+
RectangularViewfinder,
|
|
2202
|
+
RectangularViewfinderAnimation,
|
|
2203
|
+
RectangularViewfinderLineStyle,
|
|
2204
|
+
RectangularViewfinderStyle,
|
|
2205
|
+
SKIP,
|
|
2206
|
+
ScanIntention,
|
|
2207
|
+
ScanditIcon,
|
|
2208
|
+
ScanditIconBuilder,
|
|
2209
|
+
ScanditIconShape,
|
|
2210
|
+
ScanditIconType,
|
|
2211
|
+
SelectionMode,
|
|
2212
|
+
SequenceFrameSource,
|
|
2213
|
+
Size,
|
|
2214
|
+
SizeWithAspect,
|
|
2215
|
+
SizeWithUnit,
|
|
2216
|
+
SizeWithUnitAndAspect,
|
|
2217
|
+
SizingMode,
|
|
2218
|
+
Sound,
|
|
2219
|
+
SwipeToZoom,
|
|
2220
|
+
TapToFocus,
|
|
2221
|
+
TextAlignment,
|
|
2222
|
+
TorchListenerEvents,
|
|
2223
|
+
TorchState,
|
|
2224
|
+
TorchSwitchControl,
|
|
2225
|
+
Vibration,
|
|
2226
|
+
VibrationType,
|
|
2227
|
+
VideoResolution,
|
|
2228
|
+
WaveFormVibration,
|
|
2229
|
+
ZoomGestureListenerEvents,
|
|
2230
|
+
ZoomListenerEvents,
|
|
2231
|
+
ZoomSwitchControl,
|
|
2232
|
+
ZoomSwitchOrientation,
|
|
2233
|
+
createNativeProxy,
|
|
2234
|
+
ensureCoreDefaults,
|
|
2235
|
+
generateIdentifier,
|
|
2236
|
+
getCoreDefaults,
|
|
2237
|
+
ignoreFromSerialization,
|
|
2238
|
+
ignoreFromSerializationIfNull,
|
|
2239
|
+
loadCoreDefaults,
|
|
2240
|
+
nameForSerialization,
|
|
2241
|
+
registerCoreProxies,
|
|
2242
|
+
registerProxies,
|
|
2243
|
+
serializationDefault,
|
|
2244
|
+
setCoreDefaultsLoader,
|
|
2245
|
+
};
|
|
2246
|
+
export type {
|
|
2247
|
+
BaseProxy,
|
|
2248
|
+
BrushJSON,
|
|
2249
|
+
CameraOwner,
|
|
2250
|
+
CameraSettingsJSON,
|
|
2251
|
+
ColorJSON,
|
|
2252
|
+
Control,
|
|
2253
|
+
CoreDefaults,
|
|
2254
|
+
CoreNativeCallerProvider,
|
|
2255
|
+
CoreProxy,
|
|
2256
|
+
CoreProxyType,
|
|
2257
|
+
DataCaptureComponent,
|
|
2258
|
+
DataCaptureContextCreationOptions,
|
|
2259
|
+
DataCaptureContextListener,
|
|
2260
|
+
DataCaptureContextProxy,
|
|
2261
|
+
DataCaptureMode,
|
|
2262
|
+
DataCaptureOverlay,
|
|
2263
|
+
DataCaptureView,
|
|
2264
|
+
DataCaptureViewListener,
|
|
2265
|
+
DataCaptureViewProxy,
|
|
2266
|
+
DidChangeSizeEventPayload,
|
|
2267
|
+
DidChangeStateEventPayload,
|
|
2268
|
+
DidChangeStatusEventPayload,
|
|
2269
|
+
EventPayload,
|
|
2270
|
+
FeedbackJSON,
|
|
2271
|
+
FocusGesture,
|
|
2272
|
+
FocusGestureJSON,
|
|
2273
|
+
FocusGestureListener,
|
|
2274
|
+
FrameData,
|
|
2275
|
+
FrameDataJSON,
|
|
2276
|
+
FrameSource,
|
|
2277
|
+
FrameSourceDidChangeStateEventPayload,
|
|
2278
|
+
FrameSourceListener,
|
|
2279
|
+
ImageBufferJSON,
|
|
2280
|
+
LocationSelection,
|
|
2281
|
+
MacroModeListener,
|
|
2282
|
+
MarginsWithUnitJSON,
|
|
2283
|
+
NativeCallResult,
|
|
2284
|
+
NativeCaller,
|
|
2285
|
+
NativeCallerProvider,
|
|
2286
|
+
NumberWithUnitJSON,
|
|
2287
|
+
PointJSON,
|
|
2288
|
+
PointWithUnitJSON,
|
|
2289
|
+
PrivateBrush,
|
|
2290
|
+
PrivateCamera,
|
|
2291
|
+
PrivateCameraSettings,
|
|
2292
|
+
PrivateColor,
|
|
2293
|
+
PrivateContextStatus,
|
|
2294
|
+
PrivateControl,
|
|
2295
|
+
PrivateDataCaptureComponent,
|
|
2296
|
+
PrivateDataCaptureContext,
|
|
2297
|
+
PrivateDataCaptureMode,
|
|
2298
|
+
PrivateDataCaptureOverlay,
|
|
2299
|
+
PrivateFeedback,
|
|
2300
|
+
PrivateImageBuffer,
|
|
2301
|
+
PrivateMarginsWithUnit,
|
|
2302
|
+
PrivateNumberWithUnit,
|
|
2303
|
+
PrivatePinchToZoom,
|
|
2304
|
+
PrivatePoint,
|
|
2305
|
+
PrivatePointWithUnit,
|
|
2306
|
+
PrivateQuadrilateral,
|
|
2307
|
+
PrivateRadiusLocationSelection,
|
|
2308
|
+
PrivateRectangularLocationSelection,
|
|
2309
|
+
PrivateRectangularViewfinderAnimation,
|
|
2310
|
+
PrivateScanditIcon,
|
|
2311
|
+
PrivateSize,
|
|
2312
|
+
PrivateSizeWithUnitAndAspect,
|
|
2313
|
+
PrivateSound,
|
|
2314
|
+
PrivateSwipeToZoom,
|
|
2315
|
+
PrivateTapToFocus,
|
|
2316
|
+
PrivateVibration,
|
|
2317
|
+
PropertyChangeListener,
|
|
2318
|
+
ProxyEvent,
|
|
2319
|
+
QuadrilateralJSON,
|
|
2320
|
+
RadiusLocationSelectionJSON,
|
|
2321
|
+
RectangularLocationSelectionJSON,
|
|
2322
|
+
RectangularViewfinderAnimationJSON,
|
|
2323
|
+
ScanditIconJSON,
|
|
2324
|
+
Serializeable,
|
|
2325
|
+
SizeJSON,
|
|
2326
|
+
SizeWithUnitAndAspectJSON,
|
|
2327
|
+
SoundJSON,
|
|
2328
|
+
StringSerializeable,
|
|
2329
|
+
TorchListener,
|
|
2330
|
+
VibrationJSON,
|
|
2331
|
+
Viewfinder,
|
|
2332
|
+
ZoomGesture,
|
|
2333
|
+
ZoomGestureJSON,
|
|
2334
|
+
ZoomGestureListener,
|
|
2335
|
+
ZoomListener,
|
|
2336
|
+
};
|
|
2337
|
+
declare export { CameraSwitchControl };
|