@captureid/capacitor-cidprint 0.2.64 → 5.0.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.
Files changed (67) hide show
  1. package/CaptureidCapacitor3Cidprint.podspec +21 -0
  2. package/README.md +809 -20
  3. package/android/.project +2 -2
  4. package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
  5. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.aar +0 -0
  6. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.pom +20 -0
  7. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.pom.md5 +1 -0
  8. package/android/app/captureid/cidprinterlibrary/1.0.5/cidprinterlibrary-1.0.5.pom.sha1 +1 -0
  9. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml +15 -0
  10. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.md5 +1 -0
  11. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.sha1 +1 -0
  12. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.sha256 +1 -0
  13. package/android/app/captureid/cidprinterlibrary/maven-metadata.xml.sha512 +1 -0
  14. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.aar +0 -0
  15. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom +9 -0
  16. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.md5 +1 -0
  17. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.sha1 +1 -0
  18. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.sha256 +1 -0
  19. package/android/app/captureid/supportv1/1.0.1/supportv1-1.0.1.pom.sha512 +1 -0
  20. package/android/app/captureid/supportv1/maven-metadata-local.xml +12 -0
  21. package/android/app/captureid/supportv1/maven-metadata.xml +13 -0
  22. package/android/app/captureid/supportv1/maven-metadata.xml.md5 +1 -0
  23. package/android/app/captureid/supportv1/maven-metadata.xml.sha1 +1 -0
  24. package/android/app/captureid/supportv1/maven-metadata.xml.sha256 +1 -0
  25. package/android/app/captureid/supportv1/maven-metadata.xml.sha512 +1 -0
  26. package/android/build.gradle +20 -5
  27. package/android/src/main/java/app/captureid/plugins/cidprint/CIDPrint.java +686 -175
  28. package/dist/docs.json +1292 -0
  29. package/dist/esm/configuration.d.ts +26 -0
  30. package/dist/esm/configuration.js +20 -0
  31. package/dist/esm/configuration.js.map +1 -0
  32. package/dist/esm/definitions.d.ts +92 -21
  33. package/dist/esm/definitions.js +2 -0
  34. package/dist/esm/definitions.js.map +1 -1
  35. package/dist/esm/enums.d.ts +58 -3
  36. package/dist/esm/enums.js +88 -0
  37. package/dist/esm/enums.js.map +1 -1
  38. package/dist/esm/index.d.ts +5 -0
  39. package/dist/esm/index.js +8 -0
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/printer.d.ts +45 -0
  42. package/dist/esm/printer.js +1 -0
  43. package/dist/esm/printer.js.map +1 -0
  44. package/dist/esm/web.d.ts +77 -5
  45. package/dist/esm/web.js +102 -49
  46. package/dist/esm/web.js.map +1 -1
  47. package/dist/plugin.js +234 -48
  48. package/dist/plugin.js.map +1 -1
  49. package/ios/Plugin/BluetoothManager.h +46 -0
  50. package/ios/Plugin/CIDPrint.h +13 -0
  51. package/ios/Plugin/CIDPrint.m +518 -0
  52. package/ios/Plugin/{Plugin.h → CIDPrintPlugin.h} +11 -2
  53. package/ios/Plugin/CIDPrintPlugin.m +31 -0
  54. package/ios/Plugin/CIDPrinter.h +43 -0
  55. package/ios/Plugin/Device.h +57 -0
  56. package/ios/Plugin/Info.plist +8 -0
  57. package/ios/Plugin/InitResult.h +20 -0
  58. package/ios/Plugin/PrinterLibraryEvent.h +59 -0
  59. package/ios/Plugin/ResultClass.h +18 -0
  60. package/ios/Plugin/libCIDPrinterLibrary.a +0 -0
  61. package/package.json +19 -16
  62. package/android/.DS_Store +0 -0
  63. package/android/.npmignore +0 -1
  64. package/android/libs/.DS_Store +0 -0
  65. package/android/libs/cidprinterlibrary.aar +0 -0
  66. package/ios/Plugin/Plugin.m +0 -8
  67. package/ios/Plugin/Plugin.swift +0 -17
package/README.md CHANGED
@@ -1,8 +1,85 @@
1
- [![appcenterbanner](https://captureid.de/wp-content/uploads/2020/03/capID.png)](https://www.captureid.de/)
1
+ [![appcenterbanner](https://www.captureid.de/wp-content/uploads/2020/12/captureid_logo-1.svg)](https://www.captureid.de/)
2
2
 
3
- # Ionic Capacitor Plugin for Mobile Print
3
+ # Ionic Capacitor 5 Plugin for Mobile Print
4
+
5
+ This plugin enables you to use the CaptureID Printer Library and to easily integrate Bluetooth printing into your app(s).
6
+
7
+ ## Release Notes
8
+ ### version 5.0.1
9
+ new:
10
+
11
+ #### switch to capacitor 5
12
+
13
+
14
+ ### version 0.0.94
15
+ new:
16
+
17
+ #### Device class changed vendorname and printermodel to optional values
18
+ #### Font change for SATO MB200i
19
+ #### character spacing for PW208NX removed
20
+
21
+
22
+ ### version 0.0.93
23
+ new:
24
+
25
+ ```typescript
26
+ discoverDevices(options: {timeout: number});
27
+ ```
28
+ #### timout parameter added to discover method
29
+
30
+ #### connect result:
31
+ connecteddevice now contains vendor name and printer model
32
+
33
+ enums and methods to extract vendor and model from result.
34
+
35
+
36
+ ### version 0.0.92
37
+ fixed:
38
+
39
+ #### setupMediaSize does not return result for SATO printers
40
+
41
+ ### version 0.0.91
42
+ new:
43
+
44
+ ```typescript
45
+ getPrinterInformation(): Promise<CIDPrinterInformation>;
46
+ ```
47
+ #### retrieve detailed information of the printer
48
+ ---
49
+ ### version 0.0.90
50
+ new:
51
+
52
+ ```typescript
53
+ enableClipping(options: {enable: boolean}): void;
54
+ ```
55
+ #### enable/disable clipping (prevents Honeywell/Intermec printer from displaying "Field out of Label" messages)
56
+ ---
57
+ ### version 0.0.89
58
+
59
+ new:
60
+
61
+ ```typescript
62
+ enableBluetoothAdapter(options {enable: boolean}): Promise<PrinterLibraryEvent>;
63
+ ```
64
+ #### enable/disable Bluetooth adapter
65
+ ---
66
+ ```typescript
67
+ enableCalibration(options: {enable: boolean}): void
68
+ ```
69
+ #### trigger sensor calibration (Honeywell/Intermec printers)
70
+ ---
71
+ ```typescript
72
+ getMediaSize(): Promise<MediaSize>;
73
+ ```
74
+ #### request the media size currently set
75
+ ---
76
+ isBluetoothAdapterEnabled(): Promise<{result: boolean}>;
77
+ #### check if bluetoothadapter is enabled
78
+ ---
79
+ sendFormFeed(): void;
80
+ #### send a Formfeed request to the printer
81
+ ---
4
82
 
5
- This plugin provides the ability to use the CaptureID Printer Library to easily integrate Bluetooth printing into your app(s).
6
83
 
7
84
  <!-- Capacitor Catalog -->
8
85
 
@@ -22,15 +99,15 @@ After this period you must request a valid license key. This license must be pur
22
99
 
23
100
  ## How does it work?
24
101
 
25
- The CaptureID Printer Plugin can be used in Ionic Capacitor app's to support label printing on SATO mobile Printers (MB200i, PW208nx).
26
- It enables you to easily scan for SATO Bluetooth Printers, connect to an selected printer or the last connected printer.
102
+ The CaptureID Printer Plugin can be used in Ionic Capacitor app's to support label printing on SATO mobile Printers (i.e. MB200i, PW208nx), SATO Desktop Printers (i.e. CT4LX), Honeywell Printers that supports Fingerprint Language and a wide range of ZEBRA Printers (mobile and Desktop Models).
103
+ It enables you to easily scan for Bluetooth Printers, connect to an selected printer or the last connected printer.
27
104
 
28
105
  ## Getting Started
29
106
 
30
107
  Install the plugin into your existing project by running the command
31
108
 
32
109
  ```shell
33
- npm install capacitor-cidprint@latest
110
+ npm install @captureid/capacitor3-cidprint@latest
34
111
  ```
35
112
  run the build command to integrate the plugin code and it's libraries into your android project and to open the project in Android Studio
36
113
 
@@ -38,21 +115,15 @@ run the build command to integrate the plugin code and it's libraries into your
38
115
  ionic capacitor run android
39
116
  ```
40
117
 
41
- insert the line "add(CIDPrint.class);" into the app's main activity file.
118
+ Note:
119
+ In case of an error during the build process stating cidprintlibrary and/or supportv1 can't be found you have to add the following entry into your apps build.gradle file to ensure the required files can be found.
42
120
 
43
- ```java
44
- public void onCreate(Bundle savedInstanceState) {
45
- super.onCreate(savedInstanceState);
46
-
47
- // Initializes the Bridge
48
- this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
49
- // Additional plugins you've installed go here
50
- // Ex: add(TotallyAwesomePlugin.class);
51
- add(CIDPrint.class);
52
- }});
53
- }
54
-
55
- ```
121
+ repositories {
122
+ mavenLocal()
123
+ maven {
124
+ url("$rootDir/../node_modules/@captureid/capacitor3-cidprint/android")
125
+ }
126
+ }
56
127
 
57
128
  ## Plugin Usage
58
129
 
@@ -94,6 +165,724 @@ In case of the app is missing some permissions the EventType of the struct is se
94
165
 
95
166
  #
96
167
 
168
+ <docgen-api>
169
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
170
+
171
+ ### activateLicense(...)
172
+
173
+ ```typescript
174
+ activateLicense(options: { licenseKey: string; customerID: string; }) => Promise<PrinterLibraryEvent>
175
+ ```
176
+
177
+ | Param | Type |
178
+ | ------------- | -------------------------------------------------------- |
179
+ | **`options`** | <code>{ licenseKey: string; customerID: string; }</code> |
180
+
181
+ **Returns:** <code>Promise&lt;<a href="#printerlibraryevent">PrinterLibraryEvent</a>&gt;</code>
182
+
183
+ --------------------
184
+
185
+
186
+ ### closeCIDPrinterLib()
187
+
188
+ ```typescript
189
+ closeCIDPrinterLib() => void
190
+ ```
191
+
192
+ --------------------
193
+
194
+
195
+ ### connectToPreferredPrinter(...)
196
+
197
+ ```typescript
198
+ connectToPreferredPrinter(options: { mac: string; }) => void
199
+ ```
200
+
201
+ | Param | Type |
202
+ | ------------- | ----------------------------- |
203
+ | **`options`** | <code>{ mac: string; }</code> |
204
+
205
+ --------------------
206
+
207
+
208
+ ### connectToPreferredPrinter(...)
209
+
210
+ ```typescript
211
+ connectToPreferredPrinter(options: { mac: string; autoreconnect: boolean; }) => void
212
+ ```
213
+
214
+ | Param | Type |
215
+ | ------------- | ----------------------------------------------------- |
216
+ | **`options`** | <code>{ mac: string; autoreconnect: boolean; }</code> |
217
+
218
+ --------------------
219
+
220
+
221
+ ### connectToPrinter(...)
222
+
223
+ ```typescript
224
+ connectToPrinter(options: { address: string; }) => void
225
+ ```
226
+
227
+ | Param | Type |
228
+ | ------------- | --------------------------------- |
229
+ | **`options`** | <code>{ address: string; }</code> |
230
+
231
+ --------------------
232
+
233
+
234
+ ### connectToPrinter(...)
235
+
236
+ ```typescript
237
+ connectToPrinter(options: { address: string; autoreconnect: boolean; }) => void
238
+ ```
239
+
240
+ | Param | Type |
241
+ | ------------- | --------------------------------------------------------- |
242
+ | **`options`** | <code>{ address: string; autoreconnect: boolean; }</code> |
243
+
244
+ --------------------
245
+
246
+
247
+ ### connectToPrinter(...)
248
+
249
+ ```typescript
250
+ connectToPrinter(options: { address: string; port: number; }) => void
251
+ ```
252
+
253
+ | Param | Type |
254
+ | ------------- | ----------------------------------------------- |
255
+ | **`options`** | <code>{ address: string; port: number; }</code> |
256
+
257
+ --------------------
258
+
259
+
260
+ ### convert(...)
261
+
262
+ ```typescript
263
+ convert(options: { label: string; }) => void
264
+ ```
265
+
266
+ | Param | Type |
267
+ | ------------- | ------------------------------- |
268
+ | **`options`** | <code>{ label: string; }</code> |
269
+
270
+ --------------------
271
+
272
+
273
+ ### disconnectFromPrinter(...)
274
+
275
+ ```typescript
276
+ disconnectFromPrinter(options: { mac: string; }) => void
277
+ ```
278
+
279
+ | Param | Type |
280
+ | ------------- | ----------------------------- |
281
+ | **`options`** | <code>{ mac: string; }</code> |
282
+
283
+ --------------------
284
+
285
+
286
+ ### discoverDevices(...)
287
+
288
+ ```typescript
289
+ discoverDevices(options: { timeout: number; }) => void
290
+ ```
291
+
292
+ | Param | Type |
293
+ | ------------- | --------------------------------- |
294
+ | **`options`** | <code>{ timeout: number; }</code> |
295
+
296
+ --------------------
297
+
298
+
299
+ ### enableBluetoothAdapter(...)
300
+
301
+ ```typescript
302
+ enableBluetoothAdapter(options: { enable: boolean; }) => Promise<PrinterLibraryEvent>
303
+ ```
304
+
305
+ | Param | Type |
306
+ | ------------- | --------------------------------- |
307
+ | **`options`** | <code>{ enable: boolean; }</code> |
308
+
309
+ **Returns:** <code>Promise&lt;<a href="#printerlibraryevent">PrinterLibraryEvent</a>&gt;</code>
310
+
311
+ --------------------
312
+
313
+
314
+ ### enableBluetoothPrinting(...)
315
+
316
+ ```typescript
317
+ enableBluetoothPrinting(options: { enable: boolean; }) => void
318
+ ```
319
+
320
+ | Param | Type |
321
+ | ------------- | --------------------------------- |
322
+ | **`options`** | <code>{ enable: boolean; }</code> |
323
+
324
+ --------------------
325
+
326
+
327
+ ### enableCalibration(...)
328
+
329
+ ```typescript
330
+ enableCalibration(options: { enable: boolean; }) => void
331
+ ```
332
+
333
+ | Param | Type |
334
+ | ------------- | --------------------------------- |
335
+ | **`options`** | <code>{ enable: boolean; }</code> |
336
+
337
+ --------------------
338
+
339
+
340
+ ### enableClipping(...)
341
+
342
+ ```typescript
343
+ enableClipping(options: { enable: boolean; }) => void
344
+ ```
345
+
346
+ | Param | Type |
347
+ | ------------- | --------------------------------- |
348
+ | **`options`** | <code>{ enable: boolean; }</code> |
349
+
350
+ --------------------
351
+
352
+
353
+ ### enableDebugToFile(...)
354
+
355
+ ```typescript
356
+ enableDebugToFile(options: { enable: boolean; }) => void
357
+ ```
358
+
359
+ | Param | Type |
360
+ | ------------- | --------------------------------- |
361
+ | **`options`** | <code>{ enable: boolean; }</code> |
362
+
363
+ --------------------
364
+
365
+
366
+ ### enableDispendingMode(...)
367
+
368
+ ```typescript
369
+ enableDispendingMode(options: { enable: boolean; }) => void
370
+ ```
371
+
372
+ | Param | Type |
373
+ | ------------- | --------------------------------- |
374
+ | **`options`** | <code>{ enable: boolean; }</code> |
375
+
376
+ --------------------
377
+
378
+
379
+ ### enableNetworkPrinting(...)
380
+
381
+ ```typescript
382
+ enableNetworkPrinting(options: { enable: boolean; }) => void
383
+ ```
384
+
385
+ | Param | Type |
386
+ | ------------- | --------------------------------- |
387
+ | **`options`** | <code>{ enable: boolean; }</code> |
388
+
389
+ --------------------
390
+
391
+
392
+ ### getLatestConnectState()
393
+
394
+ ```typescript
395
+ getLatestConnectState() => Promise<PrinterLibraryEvent>
396
+ ```
397
+
398
+ **Returns:** <code>Promise&lt;<a href="#printerlibraryevent">PrinterLibraryEvent</a>&gt;</code>
399
+
400
+ --------------------
401
+
402
+
403
+ ### getMediaSize()
404
+
405
+ ```typescript
406
+ getMediaSize() => Promise<MediaSize>
407
+ ```
408
+
409
+ **Returns:** <code>Promise&lt;<a href="#mediasize">MediaSize</a>&gt;</code>
410
+
411
+ --------------------
412
+
413
+
414
+ ### getPairedDevices()
415
+
416
+ ```typescript
417
+ getPairedDevices() => void
418
+ ```
419
+
420
+ --------------------
421
+
422
+
423
+ ### getPrinterInformation()
424
+
425
+ ```typescript
426
+ getPrinterInformation() => Promise<CIDPrinterInformation>
427
+ ```
428
+
429
+ **Returns:** <code>Promise&lt;<a href="#cidprinterinformation">CIDPrinterInformation</a>&gt;</code>
430
+
431
+ --------------------
432
+
433
+
434
+ ### getPrinterLibraryVersion()
435
+
436
+ ```typescript
437
+ getPrinterLibraryVersion() => Promise<string>
438
+ ```
439
+
440
+ **Returns:** <code>Promise&lt;string&gt;</code>
441
+
442
+ --------------------
443
+
444
+
445
+ ### getPrinterStatus()
446
+
447
+ ```typescript
448
+ getPrinterStatus() => void
449
+ ```
450
+
451
+ --------------------
452
+
453
+
454
+ ### initCIDPrinterLib()
455
+
456
+ ```typescript
457
+ initCIDPrinterLib() => Promise<PrinterLibraryEvent>
458
+ ```
459
+
460
+ **Returns:** <code>Promise&lt;<a href="#printerlibraryevent">PrinterLibraryEvent</a>&gt;</code>
461
+
462
+ --------------------
463
+
464
+
465
+ ### isBluetoothAdapterEnabled()
466
+
467
+ ```typescript
468
+ isBluetoothAdapterEnabled() => Promise<{ result: boolean; }>
469
+ ```
470
+
471
+ **Returns:** <code>Promise&lt;{ result: boolean; }&gt;</code>
472
+
473
+ --------------------
474
+
475
+
476
+ ### isLibraryInitialized()
477
+
478
+ ```typescript
479
+ isLibraryInitialized() => Promise<{ result: boolean; }>
480
+ ```
481
+
482
+ **Returns:** <code>Promise&lt;{ result: boolean; }&gt;</code>
483
+
484
+ --------------------
485
+
486
+
487
+ ### printData(...)
488
+
489
+ ```typescript
490
+ printData(options: { data: string; }) => void
491
+ ```
492
+
493
+ | Param | Type |
494
+ | ------------- | ------------------------------ |
495
+ | **`options`** | <code>{ data: string; }</code> |
496
+
497
+ --------------------
498
+
499
+
500
+ ### printLabel(...)
501
+
502
+ ```typescript
503
+ printLabel(options: { label: string; }) => void
504
+ ```
505
+
506
+ | Param | Type |
507
+ | ------------- | ------------------------------- |
508
+ | **`options`** | <code>{ label: string; }</code> |
509
+
510
+ --------------------
511
+
512
+
513
+ ### printLabelWithData(...)
514
+
515
+ ```typescript
516
+ printLabelWithData(options: { label: string; data: string[]; }) => void
517
+ ```
518
+
519
+ | Param | Type |
520
+ | ------------- | ----------------------------------------------- |
521
+ | **`options`** | <code>{ label: string; data: string[]; }</code> |
522
+
523
+ --------------------
524
+
525
+
526
+ ### printLabelWithObject(...)
527
+
528
+ ```typescript
529
+ printLabelWithObject(options: { label: string; data: TicketData; }) => void
530
+ ```
531
+
532
+ | Param | Type |
533
+ | ------------- | --------------------------------------------------------------------------- |
534
+ | **`options`** | <code>{ label: string; data: <a href="#ticketdata">TicketData</a>; }</code> |
535
+
536
+ --------------------
537
+
538
+
539
+ ### printNativeData(...)
540
+
541
+ ```typescript
542
+ printNativeData(options: { data: string; }) => void
543
+ ```
544
+
545
+ | Param | Type |
546
+ | ------------- | ------------------------------ |
547
+ | **`options`** | <code>{ data: string; }</code> |
548
+
549
+ --------------------
550
+
551
+
552
+ ### printReferenceLabel(...)
553
+
554
+ ```typescript
555
+ printReferenceLabel(options: { labeltype: ReferenceTicketType; }) => void
556
+ ```
557
+
558
+ | Param | Type |
559
+ | ------------- | ----------------------------------------------------------------------------------- |
560
+ | **`options`** | <code>{ labeltype: <a href="#referencetickettype">ReferenceTicketType</a>; }</code> |
561
+
562
+ --------------------
563
+
564
+
565
+ ### requestPermission(...)
566
+
567
+ ```typescript
568
+ requestPermission(options: { permission: string; }) => Promise<{ result: boolean; }>
569
+ ```
570
+
571
+ | Param | Type |
572
+ | ------------- | ------------------------------------ |
573
+ | **`options`** | <code>{ permission: string; }</code> |
574
+
575
+ **Returns:** <code>Promise&lt;{ result: boolean; }&gt;</code>
576
+
577
+ --------------------
578
+
579
+
580
+ ### requestAllPermissions(...)
581
+
582
+ ```typescript
583
+ requestAllPermissions(options: { permissions: string[]; }) => Promise<{ result: boolean; }>
584
+ ```
585
+
586
+ | Param | Type |
587
+ | ------------- | --------------------------------------- |
588
+ | **`options`** | <code>{ permissions: string[]; }</code> |
589
+
590
+ **Returns:** <code>Promise&lt;{ result: boolean; }&gt;</code>
591
+
592
+ --------------------
593
+
594
+
595
+ ### sendFormFeed()
596
+
597
+ ```typescript
598
+ sendFormFeed() => void
599
+ ```
600
+
601
+ --------------------
602
+
603
+
604
+ ### setAutoReconnect(...)
605
+
606
+ ```typescript
607
+ setAutoReconnect(options: { autoreconnect: boolean; }) => void
608
+ ```
609
+
610
+ | Param | Type |
611
+ | ------------- | ---------------------------------------- |
612
+ | **`options`** | <code>{ autoreconnect: boolean; }</code> |
613
+
614
+ --------------------
615
+
616
+
617
+ ### setConfiguration(...)
618
+
619
+ ```typescript
620
+ setConfiguration(options: { config: PrinterConfiguration; }) => void
621
+ ```
622
+
623
+ | Param | Type |
624
+ | ------------- | ---------------------------------------------------------------------------------- |
625
+ | **`options`** | <code>{ config: <a href="#printerconfiguration">PrinterConfiguration</a>; }</code> |
626
+
627
+ --------------------
628
+
629
+
630
+ ### setupMediaSize(...)
631
+
632
+ ```typescript
633
+ setupMediaSize(options: { width: number; height: number; }) => void
634
+ ```
635
+
636
+ | Param | Type |
637
+ | ------------- | ----------------------------------------------- |
638
+ | **`options`** | <code>{ width: number; height: number; }</code> |
639
+
640
+ --------------------
641
+
642
+
643
+ ### showNavigationBar(...)
644
+
645
+ ```typescript
646
+ showNavigationBar(options: { show: boolean; }) => void
647
+ ```
648
+
649
+ | Param | Type |
650
+ | ------------- | ------------------------------- |
651
+ | **`options`** | <code>{ show: boolean; }</code> |
652
+
653
+ --------------------
654
+
655
+
656
+ ### showSettings(...)
657
+
658
+ ```typescript
659
+ showSettings(options: { show: boolean; }) => void
660
+ ```
661
+
662
+ | Param | Type |
663
+ | ------------- | ------------------------------- |
664
+ | **`options`** | <code>{ show: boolean; }</code> |
665
+
666
+ --------------------
667
+
668
+
669
+ ### showUI(...)
670
+
671
+ ```typescript
672
+ showUI(options: { show: boolean; }) => void
673
+ ```
674
+
675
+ | Param | Type |
676
+ | ------------- | ------------------------------- |
677
+ | **`options`** | <code>{ show: boolean; }</code> |
678
+
679
+ --------------------
680
+
681
+
682
+ ### uploadFile(...)
683
+
684
+ ```typescript
685
+ uploadFile(options: { file: string; filetype: number; }) => void
686
+ ```
687
+
688
+ | Param | Type |
689
+ | ------------- | ------------------------------------------------ |
690
+ | **`options`** | <code>{ file: string; filetype: number; }</code> |
691
+
692
+ --------------------
693
+
694
+
695
+ ### addListener(string, ...)
696
+
697
+ ```typescript
698
+ addListener(eventName: string, listenerFunc: (data: PrinterLibraryEvent) => void) => PluginListenerHandle
699
+ ```
700
+
701
+ | Param | Type |
702
+ | ------------------ | -------------------------------------------------------------------------------------- |
703
+ | **`eventName`** | <code>string</code> |
704
+ | **`listenerFunc`** | <code>(data: <a href="#printerlibraryevent">PrinterLibraryEvent</a>) =&gt; void</code> |
705
+
706
+ **Returns:** <code><a href="#pluginlistenerhandle">PluginListenerHandle</a></code>
707
+
708
+ --------------------
709
+
710
+
711
+ ### removeAllListeners()
712
+
713
+ ```typescript
714
+ removeAllListeners() => void
715
+ ```
716
+
717
+ --------------------
718
+
719
+
720
+ ### Interfaces
721
+
722
+
723
+ #### PrinterLibraryEvent
724
+
725
+ | Prop | Type |
726
+ | ------------- | ----------------------------------------------------------------------------- |
727
+ | **`sender`** | <code>string</code> |
728
+ | **`type`** | <code><a href="#eventtype">EventType</a></code> |
729
+ | **`message`** | <code>string</code> |
730
+ | **`error`** | <code>number</code> |
731
+ | **`data`** | <code><a href="#resultclass">ResultClass</a></code> |
732
+ | **`action`** | <code><a href="#printerlibraryactiontype">PrinterLibraryActionType</a></code> |
733
+
734
+
735
+ #### ResultClass
736
+
737
+
738
+ #### MediaSize
739
+
740
+ | Prop | Type |
741
+ | ------------ | ------------------- |
742
+ | **`width`** | <code>number</code> |
743
+ | **`height`** | <code>number</code> |
744
+
745
+
746
+ #### CIDPrinterInformation
747
+
748
+ | Prop | Type |
749
+ | -------------------------- | --------------------------------------------- |
750
+ | **`firmware`** | <code><a href="#firmware">Firmware</a></code> |
751
+ | **`main_firmware`** | <code><a href="#firmware">Firmware</a></code> |
752
+ | **`module_firmware`** | <code><a href="#firmware">Firmware</a></code> |
753
+ | **`sensor_boot_firmware`** | <code><a href="#firmware">Firmware</a></code> |
754
+ | **`sensor_firmware`** | <code><a href="#firmware">Firmware</a></code> |
755
+ | **`media`** | <code><a href="#media">Media</a></code> |
756
+ | **`battery`** | <code><a href="#battery">Battery</a></code> |
757
+ | **`modeltype`** | <code>number</code> |
758
+ | **`modelname`** | <code>string</code> |
759
+ | **`dpi`** | <code>number</code> |
760
+ | **`dots_mm`** | <code>number</code> |
761
+ | **`dots`** | <code>number</code> |
762
+ | **`lanaddress`** | <code>string</code> |
763
+ | **`wlanaddress`** | <code>string</code> |
764
+ | **`btaddress`** | <code>string</code> |
765
+ | **`headcount`** | <code>string</code> |
766
+ | **`lifecount`** | <code>string</code> |
767
+ | **`cutcount`** | <code>string</code> |
768
+ | **`dispensecount`** | <code>string</code> |
769
+ | **`thermotransfer`** | <code>boolean</code> |
770
+
771
+
772
+ #### Firmware
773
+
774
+ | Prop | Type |
775
+ | -------------- | ------------------- |
776
+ | **`version`** | <code>string</code> |
777
+ | **`date`** | <code>string</code> |
778
+ | **`checksum`** | <code>string</code> |
779
+
780
+
781
+ #### Media
782
+
783
+ | Prop | Type |
784
+ | ----------------- | ------------------- |
785
+ | **`labelwidth`** | <code>number</code> |
786
+ | **`labelheight`** | <code>number</code> |
787
+
788
+
789
+ #### Battery
790
+
791
+ | Prop | Type |
792
+ | ---------------- | ------------------- |
793
+ | **`cyclecount`** | <code>number</code> |
794
+ | **`chargestat`** | <code>number</code> |
795
+ | **`health`** | <code>number</code> |
796
+ | **`remain`** | <code>number</code> |
797
+
798
+
799
+ #### TicketData
800
+
801
+ | Prop | Type |
802
+ | --------------- | --------------------------------------------------------- |
803
+ | **`variables`** | <code><a href="#ticketvariable">TicketVariable</a></code> |
804
+
805
+
806
+ #### TicketVariable
807
+
808
+
809
+ #### PrinterConfiguration
810
+
811
+ | Prop | Type |
812
+ | ------------------------- | --------------------------------------------- |
813
+ | **`disconnectonpause`** | <code>boolean</code> |
814
+ | **`connectonresume`** | <code>boolean</code> |
815
+ | **`lowbatterythreshold`** | <code>number</code> |
816
+ | **`media`** | <code><a href="#cidmedia">CIDMedia</a></code> |
817
+
818
+
819
+ #### CIDMedia
820
+
821
+ | Prop | Type |
822
+ | ---------- | ----------------------------------------------- |
823
+ | **`size`** | <code><a href="#mediasize">MediaSize</a></code> |
824
+ | **`type`** | <code><a href="#mediatype">MediaType</a></code> |
825
+
826
+
827
+ #### PluginListenerHandle
828
+
829
+ | Prop | Type |
830
+ | ------------ | ----------------------------------------- |
831
+ | **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |
832
+
833
+
834
+ ### Enums
835
+
836
+
837
+ #### EventType
838
+
839
+ | Members | Value |
840
+ | ------------- | -------------- |
841
+ | **`SUCCESS`** | <code>0</code> |
842
+ | **`NOTIFY`** | <code>1</code> |
843
+ | **`FAILED`** | <code>2</code> |
844
+
845
+
846
+ #### PrinterLibraryActionType
847
+
848
+ | Members | Value |
849
+ | -------------------------- | --------------- |
850
+ | **`NONE`** | <code>0</code> |
851
+ | **`INITIALIZE`** | <code>1</code> |
852
+ | **`BLUETOOTH_INITIALIZE`** | <code>2</code> |
853
+ | **`BLUETOOTH_ENABLE`** | <code>3</code> |
854
+ | **`BLUETOOTH_DISABLE`** | <code>4</code> |
855
+ | **`DISCOVER_START`** | <code>5</code> |
856
+ | **`DISCOVER_DETECT`** | <code>6</code> |
857
+ | **`DISCOVER_FINISH`** | <code>7</code> |
858
+ | **`CONNECT`** | <code>8</code> |
859
+ | **`DISCONNECT`** | <code>9</code> |
860
+ | **`PRINT`** | <code>10</code> |
861
+ | **`STATUS`** | <code>11</code> |
862
+ | **`CONFIGURE`** | <code>12</code> |
863
+ | **`BLUETOOTH_TURNED_OFF`** | <code>13</code> |
864
+ | **`BLUETOOTH_TURNED_ON`** | <code>14</code> |
865
+ | **`LICENSE_ACTIVATION`** | <code>15</code> |
866
+ | **`FILEUPLOAD`** | <code>16</code> |
867
+ | **`EXCEPTION`** | <code>17</code> |
868
+
869
+
870
+ #### ReferenceTicketType
871
+
872
+ | Members | Value |
873
+ | ---------------- | -------------- |
874
+ | **`DOT_MATRIX`** | <code>0</code> |
875
+
876
+
877
+ #### MediaType
878
+
879
+ | Members | Value |
880
+ | ----------- | -------------- |
881
+ | **`GAP`** | <code>0</code> |
882
+ | **`IMARK`** | <code>1</code> |
883
+
884
+ </docgen-api>
885
+
97
886
  ### initCIDPrinterLib(): Promise<{event: PrinterLibraryEvent}>
98
887
 
99
888
  ```javascript