@capgo/capacitor-zebra-datawedge 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,939 @@
1
+ # @capgo/capacitor-zebra-datawedge
2
+
3
+ <a href="https://capgo.app/">
4
+ <img
5
+ src="https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png"
6
+ alt="Capgo - Instant updates for capacitor"
7
+ />
8
+ </a>
9
+
10
+ <div align="center">
11
+ <h2>
12
+ <a href="https://capgo.app/?ref=plugin_zebra_datawedge"> ➡️ Get instant updates for your app with Capgo</a>
13
+ </h2>
14
+ <h2>
15
+ <a href="https://capgo.app/consulting/?ref=plugin_zebra_datawedge">Missing a feature? We’ll build the plugin for you.</a>
16
+ </h2>
17
+ </div>
18
+
19
+ Capgo's Zebra DataWedge plugin brings Zebra's Android barcode and RFID capture APIs to Capacitor.
20
+
21
+ It is designed as an open alternative to Ionic's enterprise Zebra Scanner offering and exposes the same high-level groups:
22
+
23
+ - `ZebraConfiguration` for profile management
24
+ - `ZebraNotification` for scanner/profile status notifications
25
+ - `ZebraQuery` for profile, scanner, and DataWedge queries
26
+ - `ZebraRuntime` for enabling/disabling scanners and triggering scans
27
+
28
+ ## Documentation
29
+
30
+ The complete documentation is published here: https://capgo.app/docs/plugins/zebra-datawedge/
31
+
32
+ ## Compatibility
33
+
34
+ | Plugin version | Capacitor compatibility | Maintained |
35
+ | -------------- | ----------------------- | ---------- |
36
+ | v8.*.* | v8.*.* | ✅ |
37
+
38
+ > This plugin is Android-only in practice because Zebra DataWedge itself runs on Zebra Android devices.
39
+
40
+ ## Install
41
+
42
+ ```bash
43
+ bun add @capgo/capacitor-zebra-datawedge
44
+ bunx cap sync
45
+ ```
46
+
47
+ ## Zebra setup
48
+
49
+ Configure a DataWedge profile on the Zebra device before scanning:
50
+
51
+ 1. Associate the profile with your app.
52
+ 2. Enable `Intent Output`.
53
+ 3. Set `Intent delivery` to `Broadcast Intent`.
54
+ 4. Choose an intent action such as `app.capgo.zebra.SCAN`.
55
+
56
+ ## Basic usage
57
+
58
+ ```ts
59
+ import {
60
+ DataWedgeConfigMode,
61
+ DataWedgePlugin,
62
+ ZebraConfiguration,
63
+ ZebraDataWedge,
64
+ ZebraRuntime,
65
+ } from '@capgo/capacitor-zebra-datawedge';
66
+
67
+ const intentAction = 'app.capgo.zebra.SCAN';
68
+
69
+ await ZebraConfiguration.setConfig({
70
+ profileName: 'CapgoZebraProfile',
71
+ profileEnabled: true,
72
+ configMode: DataWedgeConfigMode.CREATE_IF_NOT_EXIST,
73
+ appList: [
74
+ {
75
+ packageName: 'com.example.app',
76
+ activityList: ['*'],
77
+ },
78
+ ],
79
+ pluginConfigs: [
80
+ {
81
+ pluginName: DataWedgePlugin.BARCODE,
82
+ resetConfig: true,
83
+ paramList: {
84
+ scanner_selection: 'auto',
85
+ scanner_input_enabled: 'true',
86
+ },
87
+ },
88
+ {
89
+ pluginName: DataWedgePlugin.INTENT,
90
+ resetConfig: true,
91
+ paramList: {
92
+ intent_output_enabled: 'true',
93
+ intent_action: intentAction,
94
+ intent_delivery: 2,
95
+ },
96
+ },
97
+ ],
98
+ });
99
+
100
+ await ZebraDataWedge.addListener('scan', (result) => {
101
+ console.log('Scanned', result.data, result.labelType);
102
+ });
103
+
104
+ const result = await ZebraRuntime.softScanTrigger(intentAction);
105
+ console.log(result);
106
+ ```
107
+
108
+ ## Notes
109
+
110
+ - Query and configuration APIs depend on Zebra DataWedge being installed and enabled.
111
+ - `softScanTrigger()` waits for the next scan broadcast on the intent action you provide.
112
+ - `softRfidTrigger()` uses the first registered scan intent action. Register a scan action first if you need RFID reads.
113
+ - Web and iOS return "not available" errors for all DataWedge operations.
114
+
115
+ ## API
116
+
117
+ <docgen-index>
118
+
119
+ * [`cloneProfile(...)`](#cloneprofile)
120
+ * [`createProfile(...)`](#createprofile)
121
+ * [`deleteProfile(...)`](#deleteprofile)
122
+ * [`importConfig(...)`](#importconfig)
123
+ * [`renameProfile(...)`](#renameprofile)
124
+ * [`restoreConfig()`](#restoreconfig)
125
+ * [`setConfig(...)`](#setconfig)
126
+ * [`setDisabledAppList(...)`](#setdisabledapplist)
127
+ * [`setIgnoreDisabledProfiles(...)`](#setignoredisabledprofiles)
128
+ * [`registerForNotification(...)`](#registerfornotification)
129
+ * [`unRegisterForNotification(...)`](#unregisterfornotification)
130
+ * [`enumerateScanners()`](#enumeratescanners)
131
+ * [`getActiveProfile()`](#getactiveprofile)
132
+ * [`getAssociatedApps(...)`](#getassociatedapps)
133
+ * [`getConfig(...)`](#getconfig)
134
+ * [`getDatawedgeStatus()`](#getdatawedgestatus)
135
+ * [`getDisabledAppList()`](#getdisabledapplist)
136
+ * [`getIgnoreDisabledProfiles()`](#getignoredisabledprofiles)
137
+ * [`getProfilesList()`](#getprofileslist)
138
+ * [`getScannerStatus()`](#getscannerstatus)
139
+ * [`getVersionInfo()`](#getversioninfo)
140
+ * [`disableDatawedge()`](#disabledatawedge)
141
+ * [`disableScannerInput()`](#disablescannerinput)
142
+ * [`enableDatawedge()`](#enabledatawedge)
143
+ * [`enableScannerInput()`](#enablescannerinput)
144
+ * [`enumerateTriggers()`](#enumeratetriggers)
145
+ * [`notify(...)`](#notify)
146
+ * [`resetDefaultProfile()`](#resetdefaultprofile)
147
+ * [`setDefaultProfile(...)`](#setdefaultprofile)
148
+ * [`setReportingOptions(...)`](#setreportingoptions)
149
+ * [`softRfidTrigger()`](#softrfidtrigger)
150
+ * [`softScanTrigger(...)`](#softscantrigger)
151
+ * [`switchScanner(...)`](#switchscanner)
152
+ * [`switchScannerParams(...)`](#switchscannerparams)
153
+ * [`switchToProfile(...)`](#switchtoprofile)
154
+ * [`getPluginVersion()`](#getpluginversion)
155
+ * [`addListener('scan', ...)`](#addlistenerscan-)
156
+ * [`addListener('notification', ...)`](#addlistenernotification-)
157
+ * [Interfaces](#interfaces)
158
+ * [Type Aliases](#type-aliases)
159
+ * [Enums](#enums)
160
+
161
+ </docgen-index>
162
+
163
+ <docgen-api>
164
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
165
+
166
+ ### cloneProfile(...)
167
+
168
+ ```typescript
169
+ cloneProfile(options: CloneProfileOptions) => Promise<void>
170
+ ```
171
+
172
+ | Param | Type |
173
+ | ------------- | ------------------------------------------------------------------- |
174
+ | **`options`** | <code><a href="#cloneprofileoptions">CloneProfileOptions</a></code> |
175
+
176
+ --------------------
177
+
178
+
179
+ ### createProfile(...)
180
+
181
+ ```typescript
182
+ createProfile(options: CreateProfileOptions) => Promise<void>
183
+ ```
184
+
185
+ | Param | Type |
186
+ | ------------- | --------------------------------------------------------------------- |
187
+ | **`options`** | <code><a href="#createprofileoptions">CreateProfileOptions</a></code> |
188
+
189
+ --------------------
190
+
191
+
192
+ ### deleteProfile(...)
193
+
194
+ ```typescript
195
+ deleteProfile(options: DeleteProfileOptions) => Promise<void>
196
+ ```
197
+
198
+ | Param | Type |
199
+ | ------------- | --------------------------------------------------------------------- |
200
+ | **`options`** | <code><a href="#deleteprofileoptions">DeleteProfileOptions</a></code> |
201
+
202
+ --------------------
203
+
204
+
205
+ ### importConfig(...)
206
+
207
+ ```typescript
208
+ importConfig(options: ImportConfigOptions) => Promise<void>
209
+ ```
210
+
211
+ | Param | Type |
212
+ | ------------- | ------------------------------------------------------------------- |
213
+ | **`options`** | <code><a href="#importconfigoptions">ImportConfigOptions</a></code> |
214
+
215
+ --------------------
216
+
217
+
218
+ ### renameProfile(...)
219
+
220
+ ```typescript
221
+ renameProfile(options: RenameProfileOptions) => Promise<void>
222
+ ```
223
+
224
+ | Param | Type |
225
+ | ------------- | --------------------------------------------------------------------- |
226
+ | **`options`** | <code><a href="#renameprofileoptions">RenameProfileOptions</a></code> |
227
+
228
+ --------------------
229
+
230
+
231
+ ### restoreConfig()
232
+
233
+ ```typescript
234
+ restoreConfig() => Promise<void>
235
+ ```
236
+
237
+ --------------------
238
+
239
+
240
+ ### setConfig(...)
241
+
242
+ ```typescript
243
+ setConfig(options: SetConfigOptions) => Promise<void>
244
+ ```
245
+
246
+ | Param | Type |
247
+ | ------------- | ------------------------------------------------------------- |
248
+ | **`options`** | <code><a href="#setconfigoptions">SetConfigOptions</a></code> |
249
+
250
+ --------------------
251
+
252
+
253
+ ### setDisabledAppList(...)
254
+
255
+ ```typescript
256
+ setDisabledAppList(options: SetDisabledAppListOptions) => Promise<void>
257
+ ```
258
+
259
+ | Param | Type |
260
+ | ------------- | ------------------------------------------------------------------------------- |
261
+ | **`options`** | <code><a href="#setdisabledapplistoptions">SetDisabledAppListOptions</a></code> |
262
+
263
+ --------------------
264
+
265
+
266
+ ### setIgnoreDisabledProfiles(...)
267
+
268
+ ```typescript
269
+ setIgnoreDisabledProfiles(options: IgnoreDisabledProfilesResult) => Promise<void>
270
+ ```
271
+
272
+ | Param | Type |
273
+ | ------------- | ------------------------------------------------------------------------------------- |
274
+ | **`options`** | <code><a href="#ignoredisabledprofilesresult">IgnoreDisabledProfilesResult</a></code> |
275
+
276
+ --------------------
277
+
278
+
279
+ ### registerForNotification(...)
280
+
281
+ ```typescript
282
+ registerForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>) => Promise<void>
283
+ ```
284
+
285
+ | Param | Type |
286
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
287
+ | **`options`** | <code><a href="#omit">Omit</a>&lt;<a href="#registerfornotificationoptions">RegisterForNotificationOptions</a>, 'callback'&gt;</code> |
288
+
289
+ --------------------
290
+
291
+
292
+ ### unRegisterForNotification(...)
293
+
294
+ ```typescript
295
+ unRegisterForNotification(options: Omit<RegisterForNotificationOptions, 'callback'>) => Promise<void>
296
+ ```
297
+
298
+ | Param | Type |
299
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
300
+ | **`options`** | <code><a href="#omit">Omit</a>&lt;<a href="#registerfornotificationoptions">RegisterForNotificationOptions</a>, 'callback'&gt;</code> |
301
+
302
+ --------------------
303
+
304
+
305
+ ### enumerateScanners()
306
+
307
+ ```typescript
308
+ enumerateScanners() => Promise<{ scanners: ZebraDeviceScanner[]; }>
309
+ ```
310
+
311
+ **Returns:** <code>Promise&lt;{ scanners: ZebraDeviceScanner[]; }&gt;</code>
312
+
313
+ --------------------
314
+
315
+
316
+ ### getActiveProfile()
317
+
318
+ ```typescript
319
+ getActiveProfile() => Promise<{ profileName: string; }>
320
+ ```
321
+
322
+ **Returns:** <code>Promise&lt;{ profileName: string; }&gt;</code>
323
+
324
+ --------------------
325
+
326
+
327
+ ### getAssociatedApps(...)
328
+
329
+ ```typescript
330
+ getAssociatedApps(options: { profileName: string; }) => Promise<{ appList: DataWedgeAppConfig[]; }>
331
+ ```
332
+
333
+ | Param | Type |
334
+ | ------------- | ------------------------------------- |
335
+ | **`options`** | <code>{ profileName: string; }</code> |
336
+
337
+ **Returns:** <code>Promise&lt;{ appList: DataWedgeAppConfig[]; }&gt;</code>
338
+
339
+ --------------------
340
+
341
+
342
+ ### getConfig(...)
343
+
344
+ ```typescript
345
+ getConfig(options: GetConfigOptions) => Promise<ZebraProfileConfiguration>
346
+ ```
347
+
348
+ | Param | Type |
349
+ | ------------- | ------------------------------------------------------------- |
350
+ | **`options`** | <code><a href="#getconfigoptions">GetConfigOptions</a></code> |
351
+
352
+ **Returns:** <code>Promise&lt;<a href="#zebraprofileconfiguration">ZebraProfileConfiguration</a>&gt;</code>
353
+
354
+ --------------------
355
+
356
+
357
+ ### getDatawedgeStatus()
358
+
359
+ ```typescript
360
+ getDatawedgeStatus() => Promise<DataWedgeStatusResult>
361
+ ```
362
+
363
+ **Returns:** <code>Promise&lt;<a href="#datawedgestatusresult">DataWedgeStatusResult</a>&gt;</code>
364
+
365
+ --------------------
366
+
367
+
368
+ ### getDisabledAppList()
369
+
370
+ ```typescript
371
+ getDisabledAppList() => Promise<{ appList: DataWedgeAppConfig[]; }>
372
+ ```
373
+
374
+ **Returns:** <code>Promise&lt;{ appList: DataWedgeAppConfig[]; }&gt;</code>
375
+
376
+ --------------------
377
+
378
+
379
+ ### getIgnoreDisabledProfiles()
380
+
381
+ ```typescript
382
+ getIgnoreDisabledProfiles() => Promise<IgnoreDisabledProfilesResult>
383
+ ```
384
+
385
+ **Returns:** <code>Promise&lt;<a href="#ignoredisabledprofilesresult">IgnoreDisabledProfilesResult</a>&gt;</code>
386
+
387
+ --------------------
388
+
389
+
390
+ ### getProfilesList()
391
+
392
+ ```typescript
393
+ getProfilesList() => Promise<{ profiles: string[]; }>
394
+ ```
395
+
396
+ **Returns:** <code>Promise&lt;{ profiles: string[]; }&gt;</code>
397
+
398
+ --------------------
399
+
400
+
401
+ ### getScannerStatus()
402
+
403
+ ```typescript
404
+ getScannerStatus() => Promise<{ status: ScannerStatus | string; }>
405
+ ```
406
+
407
+ **Returns:** <code>Promise&lt;{ status: string; }&gt;</code>
408
+
409
+ --------------------
410
+
411
+
412
+ ### getVersionInfo()
413
+
414
+ ```typescript
415
+ getVersionInfo() => Promise<ZebraDeviceVersionInfo>
416
+ ```
417
+
418
+ **Returns:** <code>Promise&lt;<a href="#zebradeviceversioninfo">ZebraDeviceVersionInfo</a>&gt;</code>
419
+
420
+ --------------------
421
+
422
+
423
+ ### disableDatawedge()
424
+
425
+ ```typescript
426
+ disableDatawedge() => Promise<void>
427
+ ```
428
+
429
+ --------------------
430
+
431
+
432
+ ### disableScannerInput()
433
+
434
+ ```typescript
435
+ disableScannerInput() => Promise<void>
436
+ ```
437
+
438
+ --------------------
439
+
440
+
441
+ ### enableDatawedge()
442
+
443
+ ```typescript
444
+ enableDatawedge() => Promise<void>
445
+ ```
446
+
447
+ --------------------
448
+
449
+
450
+ ### enableScannerInput()
451
+
452
+ ```typescript
453
+ enableScannerInput() => Promise<void>
454
+ ```
455
+
456
+ --------------------
457
+
458
+
459
+ ### enumerateTriggers()
460
+
461
+ ```typescript
462
+ enumerateTriggers() => Promise<{ triggers: string[]; }>
463
+ ```
464
+
465
+ **Returns:** <code>Promise&lt;{ triggers: string[]; }&gt;</code>
466
+
467
+ --------------------
468
+
469
+
470
+ ### notify(...)
471
+
472
+ ```typescript
473
+ notify(options: DataWedgeNotifyOptions) => Promise<void>
474
+ ```
475
+
476
+ | Param | Type |
477
+ | ------------- | ------------------------------------------------------------------------- |
478
+ | **`options`** | <code><a href="#datawedgenotifyoptions">DataWedgeNotifyOptions</a></code> |
479
+
480
+ --------------------
481
+
482
+
483
+ ### resetDefaultProfile()
484
+
485
+ ```typescript
486
+ resetDefaultProfile() => Promise<void>
487
+ ```
488
+
489
+ --------------------
490
+
491
+
492
+ ### setDefaultProfile(...)
493
+
494
+ ```typescript
495
+ setDefaultProfile(options: { profileName: string; }) => Promise<void>
496
+ ```
497
+
498
+ | Param | Type |
499
+ | ------------- | ------------------------------------- |
500
+ | **`options`** | <code>{ profileName: string; }</code> |
501
+
502
+ --------------------
503
+
504
+
505
+ ### setReportingOptions(...)
506
+
507
+ ```typescript
508
+ setReportingOptions(options: ReportingOptions) => Promise<void>
509
+ ```
510
+
511
+ | Param | Type |
512
+ | ------------- | ------------------------------------------------------------- |
513
+ | **`options`** | <code><a href="#reportingoptions">ReportingOptions</a></code> |
514
+
515
+ --------------------
516
+
517
+
518
+ ### softRfidTrigger()
519
+
520
+ ```typescript
521
+ softRfidTrigger() => Promise<ZebraScanResult>
522
+ ```
523
+
524
+ **Returns:** <code>Promise&lt;<a href="#zebrascanresult">ZebraScanResult</a>&gt;</code>
525
+
526
+ --------------------
527
+
528
+
529
+ ### softScanTrigger(...)
530
+
531
+ ```typescript
532
+ softScanTrigger(options: { intentAction: string; }) => Promise<ZebraScanResult>
533
+ ```
534
+
535
+ | Param | Type |
536
+ | ------------- | -------------------------------------- |
537
+ | **`options`** | <code>{ intentAction: string; }</code> |
538
+
539
+ **Returns:** <code>Promise&lt;<a href="#zebrascanresult">ZebraScanResult</a>&gt;</code>
540
+
541
+ --------------------
542
+
543
+
544
+ ### switchScanner(...)
545
+
546
+ ```typescript
547
+ switchScanner(options: { scannerIndex?: string; scannerIdentifier?: ScannerIdentifier; }) => Promise<void>
548
+ ```
549
+
550
+ | Param | Type |
551
+ | ------------- | --------------------------------------------------------------------------------------------------------------- |
552
+ | **`options`** | <code>{ scannerIndex?: string; scannerIdentifier?: <a href="#scanneridentifier">ScannerIdentifier</a>; }</code> |
553
+
554
+ --------------------
555
+
556
+
557
+ ### switchScannerParams(...)
558
+
559
+ ```typescript
560
+ switchScannerParams(options: SwitchScannerParamsOptions) => Promise<void>
561
+ ```
562
+
563
+ | Param | Type |
564
+ | ------------- | --------------------------------------------------------------------------------- |
565
+ | **`options`** | <code><a href="#switchscannerparamsoptions">SwitchScannerParamsOptions</a></code> |
566
+
567
+ --------------------
568
+
569
+
570
+ ### switchToProfile(...)
571
+
572
+ ```typescript
573
+ switchToProfile(options: { profileName: string; }) => Promise<void>
574
+ ```
575
+
576
+ | Param | Type |
577
+ | ------------- | ------------------------------------- |
578
+ | **`options`** | <code>{ profileName: string; }</code> |
579
+
580
+ --------------------
581
+
582
+
583
+ ### getPluginVersion()
584
+
585
+ ```typescript
586
+ getPluginVersion() => Promise<PluginVersionResult>
587
+ ```
588
+
589
+ **Returns:** <code>Promise&lt;<a href="#pluginversionresult">PluginVersionResult</a>&gt;</code>
590
+
591
+ --------------------
592
+
593
+
594
+ ### addListener('scan', ...)
595
+
596
+ ```typescript
597
+ addListener(eventName: 'scan', listenerFunc: (event: ZebraScanResult) => void) => Promise<PluginListenerHandle>
598
+ ```
599
+
600
+ | Param | Type |
601
+ | ------------------ | ------------------------------------------------------------------------------- |
602
+ | **`eventName`** | <code>'scan'</code> |
603
+ | **`listenerFunc`** | <code>(event: <a href="#zebrascanresult">ZebraScanResult</a>) =&gt; void</code> |
604
+
605
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
606
+
607
+ --------------------
608
+
609
+
610
+ ### addListener('notification', ...)
611
+
612
+ ```typescript
613
+ addListener(eventName: 'notification', listenerFunc: (event: ZebraNotificationEvent) => void) => Promise<PluginListenerHandle>
614
+ ```
615
+
616
+ | Param | Type |
617
+ | ------------------ | --------------------------------------------------------------------------------------------- |
618
+ | **`eventName`** | <code>'notification'</code> |
619
+ | **`listenerFunc`** | <code>(event: <a href="#zebranotificationevent">ZebraNotificationEvent</a>) =&gt; void</code> |
620
+
621
+ **Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>
622
+
623
+ --------------------
624
+
625
+
626
+ ### Interfaces
627
+
628
+
629
+ #### CloneProfileOptions
630
+
631
+ | Prop | Type |
632
+ | ----------------------- | ------------------- |
633
+ | **`destProfileName`** | <code>string</code> |
634
+ | **`sourceProfileName`** | <code>string</code> |
635
+
636
+
637
+ #### CreateProfileOptions
638
+
639
+ | Prop | Type |
640
+ | ----------------- | ------------------- |
641
+ | **`profileName`** | <code>string</code> |
642
+
643
+
644
+ #### DeleteProfileOptions
645
+
646
+ | Prop | Type |
647
+ | ------------------ | --------------------- |
648
+ | **`profileNames`** | <code>string[]</code> |
649
+
650
+
651
+ #### ImportConfigOptions
652
+
653
+ | Prop | Type |
654
+ | ---------------- | --------------------- |
655
+ | **`fileList`** | <code>string[]</code> |
656
+ | **`folderPath`** | <code>string</code> |
657
+
658
+
659
+ #### RenameProfileOptions
660
+
661
+ | Prop | Type |
662
+ | ------------------------ | ------------------- |
663
+ | **`currentProfileName`** | <code>string</code> |
664
+ | **`newProfileName`** | <code>string</code> |
665
+
666
+
667
+ #### SetConfigOptions
668
+
669
+ | Prop | Type |
670
+ | -------------------- | ------------------------------------------------------------------- |
671
+ | **`appList`** | <code>DataWedgeAppConfig[]</code> |
672
+ | **`configMode`** | <code><a href="#datawedgeconfigmode">DataWedgeConfigMode</a></code> |
673
+ | **`pluginConfigs`** | <code>DataWedgePluginConfig[]</code> |
674
+ | **`profileEnabled`** | <code>boolean</code> |
675
+ | **`profileName`** | <code>string</code> |
676
+
677
+
678
+ #### DataWedgeAppConfig
679
+
680
+ | Prop | Type |
681
+ | ------------------ | --------------------- |
682
+ | **`activityList`** | <code>string[]</code> |
683
+ | **`packageName`** | <code>string</code> |
684
+
685
+
686
+ #### DataWedgePluginConfig
687
+
688
+ | Prop | Type |
689
+ | ---------------------- | ------------------------------------------------------------------------------- |
690
+ | **`outputPluginName`** | <code><a href="#datawedgeplugin">DataWedgePlugin</a></code> |
691
+ | **`paramList`** | <code><a href="#datawedgepluginparameters">DataWedgePluginParameters</a></code> |
692
+ | **`pluginName`** | <code><a href="#datawedgeplugin">DataWedgePlugin</a></code> |
693
+ | **`resetConfig`** | <code>boolean</code> |
694
+
695
+
696
+ #### DataWedgePluginParameters
697
+
698
+
699
+ #### SetDisabledAppListOptions
700
+
701
+ | Prop | Type |
702
+ | ---------------- | ------------------------------------------------------------------- |
703
+ | **`appList`** | <code>DataWedgeAppConfig[]</code> |
704
+ | **`configMode`** | <code><a href="#datawedgeconfigmode">DataWedgeConfigMode</a></code> |
705
+
706
+
707
+ #### IgnoreDisabledProfilesResult
708
+
709
+ | Prop | Type |
710
+ | ------------- | -------------------- |
711
+ | **`enabled`** | <code>boolean</code> |
712
+
713
+
714
+ #### RegisterForNotificationOptions
715
+
716
+ | Prop | Type |
717
+ | ---------------------- | ------------------------------------------------------------------------------------------------------ |
718
+ | **`appName`** | <code>string</code> |
719
+ | **`callback`** | <code>((notification: <a href="#zebranotificationevent">ZebraNotificationEvent</a>) =&gt; void)</code> |
720
+ | **`intentAction`** | <code>string</code> |
721
+ | **`notificationType`** | <code><a href="#datawedgenotificationtype">DataWedgeNotificationType</a></code> |
722
+
723
+
724
+ #### ZebraNotificationEvent
725
+
726
+ | Prop | Type |
727
+ | ---------------------- | ---------------------------------------------------------------- |
728
+ | **`notificationType`** | <code>string</code> |
729
+ | **`profileName`** | <code>string</code> |
730
+ | **`scannerStatus`** | <code>string</code> |
731
+ | **`status`** | <code>string</code> |
732
+ | **`raw`** | <code><a href="#record">Record</a>&lt;string, unknown&gt;</code> |
733
+
734
+
735
+ #### ZebraDeviceScanner
736
+
737
+ | Prop | Type |
738
+ | --------------------- | -------------------- |
739
+ | **`connectionState`** | <code>boolean</code> |
740
+ | **`id`** | <code>string</code> |
741
+ | **`index`** | <code>number</code> |
742
+ | **`name`** | <code>string</code> |
743
+
744
+
745
+ #### ZebraProfileConfiguration
746
+
747
+ | Prop | Type |
748
+ | ---------------------- | ------------------------------------ |
749
+ | **`appList`** | <code>DataWedgeAppConfig[]</code> |
750
+ | **`pluginConfigList`** | <code>DataWedgePluginConfig[]</code> |
751
+ | **`profileEnabled`** | <code>boolean</code> |
752
+ | **`profileName`** | <code>string</code> |
753
+
754
+
755
+ #### GetConfigOptions
756
+
757
+ | Prop | Type |
758
+ | ------------------- | ---------------------------------- |
759
+ | **`pluginConfigs`** | <code>PluginConfigOptions[]</code> |
760
+ | **`profileName`** | <code>string</code> |
761
+
762
+
763
+ #### PluginConfigOptions
764
+
765
+ | Prop | Type |
766
+ | ---------------------- | ----------------------------------------------------------- |
767
+ | **`outputPluginName`** | <code><a href="#datawedgeplugin">DataWedgePlugin</a></code> |
768
+ | **`pluginName`** | <code><a href="#datawedgeplugin">DataWedgePlugin</a></code> |
769
+
770
+
771
+ #### DataWedgeStatusResult
772
+
773
+ | Prop | Type |
774
+ | --------------- | -------------------- |
775
+ | **`isEnabled`** | <code>boolean</code> |
776
+
777
+
778
+ #### ZebraDeviceVersionInfo
779
+
780
+ | Prop | Type |
781
+ | ----------------------------- | --------------------- |
782
+ | **`barcodeVersion`** | <code>string</code> |
783
+ | **`dataWedgeVersion`** | <code>string</code> |
784
+ | **`decoderVersion`** | <code>string</code> |
785
+ | **`scannerFirmwareVersions`** | <code>string[]</code> |
786
+ | **`simulScanVersion`** | <code>string</code> |
787
+
788
+
789
+ #### DataWedgeNotifyOptions
790
+
791
+ | Prop | Type |
792
+ | -------------------------- | --------------------- |
793
+ | **`deviceIdentifier`** | <code>string</code> |
794
+ | **`notificationSettings`** | <code>number[]</code> |
795
+
796
+
797
+ #### ReportingOptions
798
+
799
+ | Prop | Type |
800
+ | ---------------------------------- | ----------------------------------------- |
801
+ | **`reportingEnabled`** | <code>boolean</code> |
802
+ | **`reportingGenerateOption`** | <code>'manual' \| 'auto' \| 'both'</code> |
803
+ | **`reportingShowForManualImport`** | <code>boolean</code> |
804
+
805
+
806
+ #### ZebraScanResult
807
+
808
+ | Prop | Type |
809
+ | ------------------ | ------------------- |
810
+ | **`data`** | <code>string</code> |
811
+ | **`decodedMode`** | <code>string</code> |
812
+ | **`intentAction`** | <code>string</code> |
813
+ | **`labelType`** | <code>string</code> |
814
+ | **`source`** | <code>string</code> |
815
+
816
+
817
+ #### SwitchScannerParamsOptions
818
+
819
+ | Prop | Type |
820
+ | ----------------------- | ------------------------------------------------------------------------------- |
821
+ | **`scannerIdentifier`** | <code><a href="#scanneridentifier">ScannerIdentifier</a></code> |
822
+ | **`scannerParams`** | <code><a href="#datawedgepluginparameters">DataWedgePluginParameters</a></code> |
823
+
824
+
825
+ #### PluginVersionResult
826
+
827
+ | Prop | Type |
828
+ | ------------- | ------------------- |
829
+ | **`version`** | <code>string</code> |
830
+
831
+
832
+ #### PluginListenerHandle
833
+
834
+ | Prop | Type |
835
+ | ------------ | ----------------------------------------- |
836
+ | **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |
837
+
838
+
839
+ ### Type Aliases
840
+
841
+
842
+ #### Omit
843
+
844
+ Construct a type with the properties of T except for those in type K.
845
+
846
+ <code><a href="#pick">Pick</a>&lt;T, <a href="#exclude">Exclude</a>&lt;keyof T, K&gt;&gt;</code>
847
+
848
+
849
+ #### Pick
850
+
851
+ From T, pick a set of properties whose keys are in the union K
852
+
853
+ <code>{
854
  [P in K]: T[P];
1
855
  }</code>
856
+
857
+
858
+ #### Exclude
859
+
860
+ <a href="#exclude">Exclude</a> from T those types that are assignable to U
861
+
862
+ <code>T extends U ? never : T</code>
863
+
864
+
865
+ #### Record
866
+
867
+ Construct a type with a set of properties K of type T
868
+
869
+ <code>{
2
870
  [P in K]: T;
3
871
  }</code>
872
+
873
+
874
+ ### Enums
875
+
876
+
877
+ #### DataWedgeConfigMode
878
+
879
+ | Members | Value |
880
+ | ------------------------- | ---------------------------------- |
881
+ | **`CREATE_IF_NOT_EXIST`** | <code>'CREATE_IF_NOT_EXIST'</code> |
882
+ | **`OVERWRITE`** | <code>'OVERWRITE'</code> |
883
+ | **`REMOVE`** | <code>'REMOVE'</code> |
884
+ | **`UPDATE`** | <code>'UPDATE'</code> |
885
+
886
+
887
+ #### DataWedgePlugin
888
+
889
+ | Members | Value |
890
+ | --------------- | ------------------------ |
891
+ | **`ADF`** | <code>'ADF'</code> |
892
+ | **`BARCODE`** | <code>'BARCODE'</code> |
893
+ | **`BDF`** | <code>'BDF'</code> |
894
+ | **`DCP`** | <code>'DCP'</code> |
895
+ | **`EKB`** | <code>'EKB'</code> |
896
+ | **`INTENT`** | <code>'INTENT'</code> |
897
+ | **`IP`** | <code>'IP'</code> |
898
+ | **`KEYSTROKE`** | <code>'KEYSTROKE'</code> |
899
+ | **`MSR`** | <code>'MSR'</code> |
900
+ | **`RFID`** | <code>'RFID'</code> |
901
+ | **`SERIAL`** | <code>'SERIAL'</code> |
902
+ | **`TOKENS`** | <code>'TOKENS'</code> |
903
+ | **`VOICE`** | <code>'VOICE'</code> |
904
+
905
+
906
+ #### ScannerStatus
907
+
908
+ | Members | Value |
909
+ | ------------------ | --------------------------- |
910
+ | **`CONNECTED`** | <code>'CONNECTED'</code> |
911
+ | **`DISABLED`** | <code>'DISABLED'</code> |
912
+ | **`DISCONNECTED`** | <code>'DISCONNECTED'</code> |
913
+ | **`IDLE`** | <code>'IDLE'</code> |
914
+ | **`SCANNING`** | <code>'SCANNING'</code> |
915
+ | **`WAITING`** | <code>'WAITING'</code> |
916
+
917
+
918
+ #### DataWedgeNotificationType
919
+
920
+ | Members | Value |
921
+ | -------------------------- | ----------------------------------- |
922
+ | **`CONFIGURATION_UPDATE`** | <code>'CONFIGURATION_UPDATE'</code> |
923
+ | **`PROFILE_SWITCH`** | <code>'PROFILE_SWITCH'</code> |
924
+ | **`SCANNER_STATUS`** | <code>'SCANNER_STATUS'</code> |
925
+
926
+
927
+ #### ScannerIdentifier
928
+
929
+ | Members | Value |
930
+ | ------------------------- | ---------------------------------- |
931
+ | **`AUTO`** | <code>'AUTO'</code> |
932
+ | **`BLUETOOTH_DS3678`** | <code>'BLUETOOTH_DS3678'</code> |
933
+ | **`BLUETOOTH_RS6000`** | <code>'BLUETOOTH_RS6000'</code> |
934
+ | **`BLUETOOTH_SSI`** | <code>'BLUETOOTH_SSI'</code> |
935
+ | **`INTERNAL_CAMERA`** | <code>'INTERNAL_CAMERA'</code> |
936
+ | **`INTERNAL_IMAGER`** | <code>'INTERNAL_IMAGER'</code> |
937
+ | **`INTERNAL_LASER`** | <code>'INTERNAL_LASER'</code> |
938
+ | **`PLUGABLE_SSI`** | <code>'PLUGABLE_SSI'</code> |
939
+ | **`PLUGABLE_SSI_RS5000`** | <code>'PLUGABLE_SSI_RS5000'</code> |
940
+ | **`SERIAL_SSI`** | <code>'SERIAL_SSI'</code> |
941
+ | **`USB_SSI_DS3608`** | <code>'USB_SSI_DS3608'</code> |
942
+
943
+ </docgen-api>