-
Notifications
You must be signed in to change notification settings - Fork 9
/
BarcodeReader.html
7672 lines (7628 loc) · 570 KB
/
BarcodeReader.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_222) on Wed Nov 18 13:16:56 UTC 2020 -->
<title>BarcodeReader</title>
<meta name="date" content="2020-11-18">
<link rel="stylesheet" type="text/css" href="../../../DataCollectionJavaDoc.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BarcodeReader";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="../../../com/honeywell/aidc/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/honeywell/aidc/BarcodeFailureEvent.html" title="class in com.honeywell.aidc"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../com/honeywell/aidc/BarcodeReader.BarcodeListener.html" title="interface in com.honeywell.aidc"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/honeywell/aidc/BarcodeReader.html" target="_top">Frames</a></li>
<li><a href="BarcodeReader.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li><a href="#field.summary">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.honeywell.aidc</div>
<h2 title="Class BarcodeReader" class="title">Class BarcodeReader</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.honeywell.aidc.BarcodeReader</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">BarcodeReader</span>
extends java.lang.Object</pre>
<div class="block">This class represents a session to an installed scanner.
<p>
Any number of <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> objects can be created, and
each will maintain its own properties and will operate independently from
other <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> objects.
<p>Permission required: "com.honeywell.decode.permission.DECODE"
<H3>Scanner Claim/Release</H3>
Even though multiple <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> objects may exist, only one can
hold a claim to the scanner at a time. The last <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a>
to call <a href="../../../com/honeywell/aidc/BarcodeReader.html#claim--"><code>claim()</code></a> will receive the claim, causing the previous owner's
claim to be released. <a href="../../../com/honeywell/aidc/BarcodeReader.html#release--"><code>release()</code></a> can be called to voluntarily release
the scanner claim. When no <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> holds a scanner claim, the
application profile properties will be applied. Therefore, voluntarily
releasing the scanner is required if the behavior of application profiles
is desired.
<p>
When the <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> holds the scanner claim, you can control
the scanner via <a href="../../../com/honeywell/aidc/BarcodeReader.html#aim-boolean-"><code>aim(boolean)</code></a>, <a href="../../../com/honeywell/aidc/BarcodeReader.html#light-boolean-"><code>light(boolean)</code></a> and
<a href="../../../com/honeywell/aidc/BarcodeReader.html#decode-boolean-"><code>decode(boolean)</code></a>, and can receive bar code data asynchronously.
<p>
If the <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> does not hold the scanner claim,
<a href="../../../com/honeywell/aidc/ScannerNotClaimedException.html" title="class in com.honeywell.aidc"><code>ScannerNotClaimedException</code></a> will be thrown.
<p>
Whether or not the <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> holds the scanner claim, you may
get and set <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> properties.
Note, however, that properties will only be applied when the scanner is claimed.
If properties are set prior to calling <a href="../../../com/honeywell/aidc/BarcodeReader.html#claim--"><code>claim()</code></a>, those properties will be
applied as soon as <a href="../../../com/honeywell/aidc/BarcodeReader.html#claim--"><code>claim()</code></a> is called.
<H3>Scanner Notifications</H3>
<p>
<H2>Bar Code Read Event</H2>
A claimed scanner will emit <a href="../../../com/honeywell/aidc/BarcodeReadEvent.html" title="class in com.honeywell.aidc"><code>BarcodeReadEvent</code></a> when a bar code label has been
successfully decoded. This event will contain all information pertaining to this
successful decode.
<p>
In order to receive <a href="../../../com/honeywell/aidc/BarcodeReadEvent.html" title="class in com.honeywell.aidc"><code>BarcodeReadEvent</code></a> notifications, the client must call
<a href="../../../com/honeywell/aidc/BarcodeReader.html#addBarcodeListener-com.honeywell.aidc.BarcodeReader.BarcodeListener-"><code>addBarcodeListener(BarcodeListener)</code></a>. The supplied
<a href="../../../com/honeywell/aidc/BarcodeReader.BarcodeListener.html" title="interface in com.honeywell.aidc"><code>BarcodeReader.BarcodeListener</code></a> will be notified each time an event occurs,
by calling <a href="../../../com/honeywell/aidc/BarcodeReader.BarcodeListener.html#onBarcodeEvent-com.honeywell.aidc.BarcodeReadEvent-"><code>BarcodeReader.BarcodeListener.onBarcodeEvent(BarcodeReadEvent)</code></a>.
<p>
<a href="../../../com/honeywell/aidc/BarcodeReader.BarcodeListener.html#onBarcodeEvent-com.honeywell.aidc.BarcodeReadEvent-"><code>BarcodeReader.BarcodeListener.onBarcodeEvent(BarcodeReadEvent)</code></a> will be
called on a non-UI thread, which will not be able to interact with your application's UI
components. On the Android platform, <code>android.app.Activity#runOnUiThread(Runnable)</code>
can be used post any desired UI updates that need to be made on the UI thread from the
callback thread.
<p>
<H2>Trigger State Change Event</H2>
A claimed scanner will emit <a href="../../../com/honeywell/aidc/TriggerStateChangeEvent.html" title="class in com.honeywell.aidc"><code>TriggerStateChangeEvent</code></a> when the scan trigger has
been pressed or released. This event will contain all information pertaining to this
trigger state change.
<p>
Important Note: <a href="../../../com/honeywell/aidc/TriggerStateChangeEvent.html" title="class in com.honeywell.aidc"><code>TriggerStateChangeEvent</code></a> notifications only occurs when
<a href="../../../com/honeywell/aidc/BarcodeReader.html#PROPERTY_TRIGGER_CONTROL_MODE"><code>PROPERTY_TRIGGER_CONTROL_MODE</code></a> has been set to
<a href="../../../com/honeywell/aidc/BarcodeReader.html#TRIGGER_CONTROL_MODE_CLIENT_CONTROL"><code>TRIGGER_CONTROL_MODE_CLIENT_CONTROL</code></a> via
<a href="../../../com/honeywell/aidc/BarcodeReader.html#setProperty-java.lang.String-java.lang.String-"><code>setProperty(String, String)</code></a>
<p>
In order to receive these event notifications, the client must call
<a href="../../../com/honeywell/aidc/BarcodeReader.html#addTriggerListener-com.honeywell.aidc.BarcodeReader.TriggerListener-"><code>addTriggerListener(TriggerListener)</code></a>. The supplied
<a href="../../../com/honeywell/aidc/BarcodeReader.TriggerListener.html" title="interface in com.honeywell.aidc"><code>BarcodeReader.TriggerListener</code></a> will be notified each time an event occurs,
by calling <a href="../../../com/honeywell/aidc/BarcodeReader.TriggerListener.html#onTriggerEvent-com.honeywell.aidc.TriggerStateChangeEvent-"><code>BarcodeReader.TriggerListener.onTriggerEvent(TriggerStateChangeEvent)</code></a>.
<p>
<a href="../../../com/honeywell/aidc/BarcodeReader.TriggerListener.html#onTriggerEvent-com.honeywell.aidc.TriggerStateChangeEvent-"><code>BarcodeReader.TriggerListener.onTriggerEvent(TriggerStateChangeEvent)</code></a> will
be called on a non-UI thread, which will not be able to interact with your application's UI
components. On the Android platform, <code>android.app.Activity#runOnUiThread(Runnable)</code>
can be used post any desired UI updates that need to be made on the UI thread from the
callback thread.
<P>
<H3>Scenario 1: Automatic trigger control</H3>
<p>
The following is a code snippet where the Activity allows the scanner service to handle the
scan trigger. The Activity uses <a href="../../../com/honeywell/aidc/AidcManager.html#createBarcodeReader--"><code>AidcManager.createBarcodeReader()</code></a> to create
a <a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a>, and registers a <a href="../../../com/honeywell/aidc/BarcodeReader.BarcodeListener.html" title="interface in com.honeywell.aidc"><code>BarcodeReader.BarcodeListener</code></a> for receiving
bar code notifications. In the callback, the client must use
<code>android.app.Activity#runOnUiThread(Runnable)</code> to safely post UI updates to the main
thread.
<p>
<pre>
import com.honeywell.aidc.*;
public class MainActivity extends Activity implements BarcodeReader.BarcodeListener {
private AidcManager manager;
private BarcodeReader reader;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// create the AidcManager providing a Context and an
// CreatedCallback implementation.
AidcManager.create(this, new AidcManager.CreatedCallback() {
@Override
public void onCreated(AidcManager aidcManager) {
manager = aidcManager;
// use the manager to create a BarcodeReader with a session
// associated with the internal imager.
reader = manager.createBarcodeReader();
try {
// apply settings
reader.setProperty(BarcodeReader.PROPERTY_CODE_39_ENABLED, false);
reader.setProperty(BarcodeReader.PROPERTY_DATAMATRIX_ENABLED, true);
// set the trigger mode to automatic control
reader.setProperty(BarcodeReader.PROPERTY_TRIGGER_CONTROL_MODE,
BarcodeReader.TRIGGER_CONTROL_MODE_AUTO_CONTROL);
} catch (UnsupportedPropertyException e) {
Toast.makeText(MainActivity.this, "Failed to apply properties",
Toast.LENGTH_SHORT).show();
}
// register bar code event listener
reader.addBarcodeListener(MainActivity.this);
}
});
}
@Override
public void onResume() {
super.onResume();
if (reader != null) {
try {
reader.claim();
} catch (ScannerUnavailableException e) {
e.printStackTrace();
Toast.makeText(this, "Scanner unavailable", Toast.LENGTH_SHORT).show();
}
}
}
@Override
public void onPause() {
super.onPause();
if (reader != null) {
// release the scanner claim so we don't get any scanner
// notifications while paused.
reader.release();
}
}
@Override
public void onDestroy() {
super.onDestroy();
if (reader != null) {
// unregister barcode event listener
reader.removeBarcodeListener(this);
// close BarcodeReader to clean up resources.
// once closed, the object can no longer be used.
reader.close();
}
if (manager != null) {
// close AidcManager to disconnect from the scanner service.
// once closed, the object can no longer be used.
manager.close();
}
}
@Override
public void onBarcodeEvent(final BarcodeReadEvent event) {
runOnUiThread(new Runnable() {
@Override
public void run() {
String barcodeData = event.getBarcodeData();
String timestamp = event.getTimestamp();
// update UI to reflect the data
}
});
}
@Override
public void onFailureEvent(final BarcodeFailureEvent event) {
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(MainActivity.this, "Barcode read failed",
Toast.LENGTH_SHORT).show();
}
});
}
}
</pre>
<H3>Scenario 2: Client trigger control</H3>
<p>
If the client application needs to manage the scan trigger handling itself, the
<a href="../../../com/honeywell/aidc/BarcodeReader.html" title="class in com.honeywell.aidc"><code>BarcodeReader</code></a> can be configured to emit scan trigger events when the scan
trigger state changes. These events can be handled by the Activity by registering
a <a href="../../../com/honeywell/aidc/BarcodeReader.TriggerListener.html" title="interface in com.honeywell.aidc"><code>BarcodeReader.TriggerListener</code></a>. To enable client controlled trigger mode,
call <a href="../../../com/honeywell/aidc/BarcodeReader.html#setProperty-java.lang.String-java.lang.String-"><code>setProperty(String, String)</code></a>, setting
<a href="../../../com/honeywell/aidc/BarcodeReader.html#PROPERTY_TRIGGER_CONTROL_MODE"><code>PROPERTY_TRIGGER_CONTROL_MODE</code></a> to
<a href="../../../com/honeywell/aidc/BarcodeReader.html#TRIGGER_CONTROL_MODE_CLIENT_CONTROL"><code>TRIGGER_CONTROL_MODE_CLIENT_CONTROL</code></a>.
The following is a modified code snippet that demonstrates this.
<p>
<pre>
import com.honeywell.aidc.*;
public class MainActivity extends Activity implements BarcodeReader.BarcodeListener,
BarcodeReader.TriggerListener {
private AidcManager manager;
private BarcodeReader reader;
private boolean triggerState = false;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// create the AidcManager providing a Context and an
// CreatedCallback implementation.
AidcManager.create(this, new AidcManager.CreatedCallback() {
@Override
public void onCreated(AidcManager aidcManager) {
manager = aidcManager;
// use the manager to create a BarcodeReader with a session
// associated with the internal imager.
reader = manager.createBarcodeReader();
try {
// apply settings
reader.setProperty(BarcodeReader.PROPERTY_CODE_39_ENABLED, false);
reader.setProperty(BarcodeReader.PROPERTY_DATAMATRIX_ENABLED, true);
// set the trigger mode to client control
reader.setProperty(BarcodeReader.PROPERTY_TRIGGER_CONTROL_MODE,
BarcodeReader.TRIGGER_CONTROL_MODE_CLIENT_CONTROL);
} catch (UnsupportedPropertyException e) {
Toast.makeText(MainActivity.this, "Failed to apply properties",
Toast.LENGTH_SHORT).show();
}
// register bar code event listener
reader.addBarcodeListener(MainActivity.this);
// register trigger state change listener
reader.addTriggerListener(MainActivity.this);
}
});
}
@Override
public void onResume() {
super.onResume();
if (reader != null) {
try {
reader.claim();
} catch (ScannerUnavailableException e) {
e.printStackTrace();
Toast.makeText(this, "Scanner unavailable", Toast.LENGTH_SHORT).show();
}
}
}
@Override
public void onPause() {
super.onPause();
if (reader != null) {
// release the scanner claim so we don't get any scanner
// notifications while paused.
reader.release();
}
}
@Override
public void onDestroy() {
super.onDestroy();
if (reader != null) {
// unregister barcode event listener
reader.removeBarcodeListener(this);
// unregister trigger state change listener
reader.removeTriggerListener(this);
// close BarcodeReader to clean up resources.
// once closed, the object can no longer be used.
reader.close();
}
if (manager != null) {
// close AidcManager to disconnect from the scanner service.
// once closed, the object can no longer be used.
manager.close();
}
}
@Override
public void onBarcodeEvent(final BarcodeReadEvent event) {
runOnUiThread(new Runnable() {
@Override
public void run() {
String barcodeData = event.getBarcodeData();
String timestamp = event.getTimestamp();
// update UI to reflect the data
}
});
// reset the trigger state
triggerState = false;
}
@Override
public void onFailureEvent(final BarcodeFailureEvent event) {
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(MainActivity.this, "Barcode read failed",
Toast.LENGTH_SHORT).show();
}
});
}
// these events can be used to implement custom trigger modes if the automatic
// behavior provided by the scanner service is insufficient for your application.
// the following code demonstrates a "toggle" mode implementation, where the state
// of the scanner changes each time the scan trigger is pressed.
@Override
public void onTriggerEvent(TriggerStateChangeEvent event) {
try {
// only handle trigger presses
if (event.getState()) {
// turn on/off aimer, illumination and decoding
reader.aim(!triggerState);
reader.light(!triggerState);
reader.decode(!triggerState);
triggerState = !triggerState;
}
} catch (ScannerNotClaimedException e) {
e.printStackTrace();
Toast.makeText(MainActivity.this, "Scanner is not claimed",
Toast.LENGTH_SHORT).show();
} catch (ScannerUnavailableException e) {
e.printStackTrace();
Toast.makeText(MainActivity.this, "Scanner unavailable",
Toast.LENGTH_SHORT).show();
}
}
}
</pre></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.BarcodeListener.html" title="interface in com.honeywell.aidc">BarcodeReader.BarcodeListener</a></span></code>
<div class="block">Used in conjunction with <a href="../../../com/honeywell/aidc/BarcodeReader.html#addBarcodeListener-com.honeywell.aidc.BarcodeReader.BarcodeListener-"><code>addBarcodeListener(BarcodeListener)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.TriggerListener.html" title="interface in com.honeywell.aidc">BarcodeReader.TriggerListener</a></span></code>
<div class="block">Used in conjunction with <a href="../../../com/honeywell/aidc/BarcodeReader.html#addTriggerListener-com.honeywell.aidc.BarcodeReader.TriggerListener-"><code>addTriggerListener(TriggerListener)</code></a>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#BAD_READ_NOTIFICATION">BAD_READ_NOTIFICATION</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODABAR_CHECK_DIGIT_MODE_CHECK">CODABAR_CHECK_DIGIT_MODE_CHECK</a></span></code>
<div class="block">Checksum check is performed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODABAR_CHECK_DIGIT_MODE_CHECK_AND_STRIP">CODABAR_CHECK_DIGIT_MODE_CHECK_AND_STRIP</a></span></code>
<div class="block">Checksum check is performed and the checksum digit is stripped from the
result string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODABAR_CHECK_DIGIT_MODE_NO_CHECK">CODABAR_CHECK_DIGIT_MODE_NO_CHECK</a></span></code>
<div class="block">No checksum checking is performed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_11_CHECK_DIGIT_MODE_DOUBLE_DIGIT_CHECK">CODE_11_CHECK_DIGIT_MODE_DOUBLE_DIGIT_CHECK</a></span></code>
<div class="block">Two checksum digits checked.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_11_CHECK_DIGIT_MODE_DOUBLE_DIGIT_CHECK_AND_STRIP">CODE_11_CHECK_DIGIT_MODE_DOUBLE_DIGIT_CHECK_AND_STRIP</a></span></code>
<div class="block">Two checksum digits checked and stripped from the result string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_11_CHECK_DIGIT_MODE_SINGLE_DIGIT_CHECK">CODE_11_CHECK_DIGIT_MODE_SINGLE_DIGIT_CHECK</a></span></code>
<div class="block">One checksum digit checked.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_11_CHECK_DIGIT_MODE_SINGLE_DIGIT_CHECK_AND_STRIP">CODE_11_CHECK_DIGIT_MODE_SINGLE_DIGIT_CHECK_AND_STRIP</a></span></code>
<div class="block">One checksum digit checked and stripped from the result string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_39_CHECK_DIGIT_MODE_CHECK">CODE_39_CHECK_DIGIT_MODE_CHECK</a></span></code>
<div class="block">Checksum check is performed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_39_CHECK_DIGIT_MODE_CHECK_AND_STRIP">CODE_39_CHECK_DIGIT_MODE_CHECK_AND_STRIP</a></span></code>
<div class="block">Checksum check is performed and the checksum digit is stripped from the
result string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CODE_39_CHECK_DIGIT_MODE_NO_CHECK">CODE_39_CHECK_DIGIT_MODE_NO_CHECK</a></span></code>
<div class="block">No checksum checking is performed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <any></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#CREATOR">CREATOR</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DATA_PROCESSOR_SYMBOLOGY_ID_AIM">DATA_PROCESSOR_SYMBOLOGY_ID_AIM</a></span></code>
<div class="block">Indicates that the AIM symbology identifier will be added.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DATA_PROCESSOR_SYMBOLOGY_ID_HONEYWELL">DATA_PROCESSOR_SYMBOLOGY_ID_HONEYWELL</a></span></code>
<div class="block">Indicates that the honeywell proprietary symbology identifier will be added.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DATA_PROCESSOR_SYMBOLOGY_ID_NONE">DATA_PROCESSOR_SYMBOLOGY_ID_NONE</a></span></code>
<div class="block">Indicates that no data related to the symbology will be added.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DEC_ID_PROP_USE_ROI_DISABLE">DEC_ID_PROP_USE_ROI_DISABLE</a></span></code>
<div class="block">Disable Region of Interest, The entire original image is sent to the Decoder.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DEC_ID_PROP_USE_ROI_DPM_AIMER_CENTERED">DEC_ID_PROP_USE_ROI_DPM_AIMER_CENTERED</a></span></code>
<div class="block">Activity calculated on 4 rows and 2 columns in each cell.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DEC_ID_PROP_USE_ROI_KIOSK_OR_PRESENTATION">DEC_ID_PROP_USE_ROI_KIOSK_OR_PRESENTATION</a></span></code>
<div class="block">Ignore aimer position, no weight activity.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DEC_ID_PROP_USE_ROI_STANDARD">DEC_ID_PROP_USE_ROI_STANDARD</a></span></code>
<div class="block">Use the aimer position to weight activity.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DEC_ID_PROP_USE_ROI_STANDARD_AIMER_CENTERED">DEC_ID_PROP_USE_ROI_STANDARD_AIMER_CENTERED</a></span></code>
<div class="block">Activity calculated on the row and the column in the middle of each cell.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DIGIMARC_CONVERSION_CONVERT_TO_EQUIVALENT">DIGIMARC_CONVERSION_CONVERT_TO_EQUIVALENT</a></span></code>
<div class="block">Convert Digimarc watermarks to equivalent barcodes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DIGIMARC_CONVERSION_NO_CONVERSION">DIGIMARC_CONVERSION_NO_CONVERSION</a></span></code>
<div class="block">Report Digimarc as a unique symbology.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DIGIMARC_SCALE_BLOCKS_USE_BOTH_SCALE1_AND_SCALE3_BLOCKS">DIGIMARC_SCALE_BLOCKS_USE_BOTH_SCALE1_AND_SCALE3_BLOCKS</a></span></code>
<div class="block">User gets a longer reading range with slower decode time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DIGIMARC_SCALE_BLOCKS_USE_SCALE1_BLOCKS">DIGIMARC_SCALE_BLOCKS_USE_SCALE1_BLOCKS</a></span></code>
<div class="block">Loses near depth of field but has faster decode time.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DIGIMARC_SCALE_BLOCKS_USE_SCALE3_BLOCKS">DIGIMARC_SCALE_BLOCKS_USE_SCALE3_BLOCKS</a></span></code>
<div class="block">Loses far depth of field but has faster decode time.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DPM_ENABLED_DOTPEEN_DECODING">DPM_ENABLED_DOTPEEN_DECODING</a></span></code>
<div class="block">Enables DPM decoding in Dotpeen mode during the execution of Decode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DPM_ENABLED_NO_DPM_OPTIMIZATION">DPM_ENABLED_NO_DPM_OPTIMIZATION</a></span></code>
<div class="block">Disable DPM decoding during execution of Decode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#DPM_ENABLED_REFLECTIVE_DECODING">DPM_ENABLED_REFLECTIVE_DECODING</a></span></code>
<div class="block">Enables DPM decoding in Reflective mode during the execution of Decode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#EANUCC_EMULATION_MODE_GS1_128_EMULATION">EANUCC_EMULATION_MODE_GS1_128_EMULATION</a></span></code>
<div class="block">GS1-128 Emulation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#EANUCC_EMULATION_MODE_GS1_CODE_EXPANSION_OFF">EANUCC_EMULATION_MODE_GS1_CODE_EXPANSION_OFF</a></span></code>
<div class="block">GS1 Code Expansion Off.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#EANUCC_EMULATION_MODE_GS1_DATABAR_EMULATION">EANUCC_EMULATION_MODE_GS1_DATABAR_EMULATION</a></span></code>
<div class="block">GS1 DataBar Emulation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#EANUCC_EMULATION_MODE_GS1_EAN8_TO_EAN13_CONVERSION">EANUCC_EMULATION_MODE_GS1_EAN8_TO_EAN13_CONVERSION</a></span></code>
<div class="block">EAN8 to EAN13 Conversion.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#EANUCC_EMULATION_MODE_GS1_EMULATION_OFF">EANUCC_EMULATION_MODE_GS1_EMULATION_OFF</a></span></code>
<div class="block">"GS1 Emulation Off.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#GOOD_READ_NOTIFICATION">GOOD_READ_NOTIFICATION</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_EXPOSURE_MODE_AUTO_EXPOSURE">IMAGER_EXPOSURE_MODE_AUTO_EXPOSURE</a></span></code>
<div class="block">Software automatically updates exposure to improve image quality.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_EXPOSURE_MODE_AUTO_SENSOR">IMAGER_EXPOSURE_MODE_AUTO_SENSOR</a></span></code>
<div class="block">Image sensor controls the exposure automatically.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_EXPOSURE_MODE_CONTEXT_SENSITIVE">IMAGER_EXPOSURE_MODE_CONTEXT_SENSITIVE</a></span></code>
<div class="block">Software automatically updates exposure to improve image quality of bar
codes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_EXPOSURE_MODE_FIXED">IMAGER_EXPOSURE_MODE_FIXED</a></span></code>
<div class="block">Exposure does not change automatically.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_SAMPLE_METHOD_CENTER">IMAGER_SAMPLE_METHOD_CENTER</a></span></code>
<div class="block">Image quality determined by center of image.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_SAMPLE_METHOD_CENTER_WEIGHTED">IMAGER_SAMPLE_METHOD_CENTER_WEIGHTED</a></span></code>
<div class="block">Image quality determined by entire image but weighted toward center of
image.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#IMAGER_SAMPLE_METHOD_UNIFORM">IMAGER_SAMPLE_METHOD_UNIFORM</a></span></code>
<div class="block">Image quality determined by entire image.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#INTERLEAVED_25_CHECK_DIGIT_MODE_CHECK">INTERLEAVED_25_CHECK_DIGIT_MODE_CHECK</a></span></code>
<div class="block">Checksum check is performed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#INTERLEAVED_25_CHECK_DIGIT_MODE_CHECK_AND_STRIP">INTERLEAVED_25_CHECK_DIGIT_MODE_CHECK_AND_STRIP</a></span></code>
<div class="block">Checksum check is performed and the checksum digit is stripped from the
result string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#INTERLEAVED_25_CHECK_DIGIT_MODE_NO_CHECK">INTERLEAVED_25_CHECK_DIGIT_MODE_NO_CHECK</a></span></code>
<div class="block">No checksum checking is performed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_DOUBLE_MOD_10_CHECK">MSI_CHECK_DIGIT_MODE_DOUBLE_MOD_10_CHECK</a></span></code>
<div class="block">Two mod 10 checksum digits checked.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_DOUBLE_MOD_10_CHECK_AND_STRIP">MSI_CHECK_DIGIT_MODE_DOUBLE_MOD_10_CHECK_AND_STRIP</a></span></code>
<div class="block">Two mod 10 checksum digits checked and stripped from the result string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_NO_CHECK">MSI_CHECK_DIGIT_MODE_NO_CHECK</a></span></code>
<div class="block">No checksum checking is performed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_SINGLE_MOD_10_CHECK">MSI_CHECK_DIGIT_MODE_SINGLE_MOD_10_CHECK</a></span></code>
<div class="block">One mod 10 checksum digit checked.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_SINGLE_MOD_10_CHECK_AND_STRIP">MSI_CHECK_DIGIT_MODE_SINGLE_MOD_10_CHECK_AND_STRIP</a></span></code>
<div class="block">One mod 10 checksum digit checked and stripped from the result string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_SINGLE_MOD_11_PLUS_MOD_10_CHECK">MSI_CHECK_DIGIT_MODE_SINGLE_MOD_11_PLUS_MOD_10_CHECK</a></span></code>
<div class="block">One mod 11 checksum digit plus one mod 10 checksum digit checked.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#MSI_CHECK_DIGIT_MODE_SINGLE_MOD_11_PLUS_MOD_10_CHECK_AND_STRIP">MSI_CHECK_DIGIT_MODE_SINGLE_MOD_11_PLUS_MOD_10_CHECK_AND_STRIP</a></span></code>
<div class="block">One mod 11 checksum digit plus one mod 10 checksum digit checked and
stripped from the result string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_AUSTRALIA">POSTAL_2D_MODE_AUSTRALIA</a></span></code>
<div class="block">Enable Australia Post.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_BPO">POSTAL_2D_MODE_BPO</a></span></code>
<div class="block">Enable Royal Mail 4 State Customer Code (British Post Office).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_CANADA">POSTAL_2D_MODE_CANADA</a></span></code>
<div class="block">Enable Canada Post.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_DUTCH">POSTAL_2D_MODE_DUTCH</a></span></code>
<div class="block">Enable Dutch Post (KIX Code).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_INFOMAIL">POSTAL_2D_MODE_INFOMAIL</a></span></code>
<div class="block">Enable Royal Mail InfoMail.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_INFOMAIL_AND_BPO">POSTAL_2D_MODE_INFOMAIL_AND_BPO</a></span></code>
<div class="block">Enable Infomail and Royal Mail 4 State Customer Code (British Post
Office).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_JAPAN">POSTAL_2D_MODE_JAPAN</a></span></code>
<div class="block">Enable Japan Post.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_NONE">POSTAL_2D_MODE_NONE</a></span></code>
<div class="block">No 2D postal symbologies enabled.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET">POSTAL_2D_MODE_PLANET</a></span></code>
<div class="block">Enable Planet.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET">POSTAL_2D_MODE_PLANET_AND_POSTNET</a></span></code>
<div class="block">Enable Planet and Postnet.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU">POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU</a></span></code>
<div class="block">Enable Planet, Postnet and UPU 4 State Customer Code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU_AND_USPS">POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU_AND_USPS</a></span></code>
<div class="block">Enable Planet, Postnet, UPU 4 State Customer Code and USPS 4 State
Customer Code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU_AND_USPS_PLUS_BNB">POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU_AND_USPS_PLUS_BNB</a></span></code>
<div class="block">Enable Planet, Postnet, UPU 4 State Customer Code and USPS 4 State
Customer Code with B and B fields.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU_PLUS_BNB">POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_UPU_PLUS_BNB</a></span></code>
<div class="block">Enable Planet, Postnet and UPU 4 State Customer Code with B and B fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_USPS">POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_USPS</a></span></code>
<div class="block">Enable Planet, Postnet and USPS 4 State Customer Code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_USPS_PLUS_BNB">POSTAL_2D_MODE_PLANET_AND_POSTNET_AND_USPS_PLUS_BNB</a></span></code>
<div class="block">Enable Planet, Postnet and USPS 4 State Customer Code with B and B
fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_POSTNET_PLUS_BNB">POSTAL_2D_MODE_PLANET_AND_POSTNET_PLUS_BNB</a></span></code>
<div class="block">Enable Planet and Postnet with B and B fields.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_UPU">POSTAL_2D_MODE_PLANET_AND_UPU</a></span></code>
<div class="block">Enable Planet and UPU 4 State Customer Code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_UPU_AND_USPS">POSTAL_2D_MODE_PLANET_AND_UPU_AND_USPS</a></span></code>
<div class="block">Enable Planet, UPU 4 State Customer Code and USPS 4 State Customer Code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_PLANET_AND_USPS">POSTAL_2D_MODE_PLANET_AND_USPS</a></span></code>
<div class="block">Enable Planet and USPS 4 State Customer Code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET">POSTAL_2D_MODE_POSTNET</a></span></code>
<div class="block">Enable Postnet.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_AND_UPU">POSTAL_2D_MODE_POSTNET_AND_UPU</a></span></code>
<div class="block">Enable Postnet and UPU 4 State Customer Code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_AND_UPU_AND_USPS">POSTAL_2D_MODE_POSTNET_AND_UPU_AND_USPS</a></span></code>
<div class="block">Enable Postnet, UPU 4 State Customer Code and USPS 4 Customer Code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_AND_UPU_AND_USPS_PLUS_BNB">POSTAL_2D_MODE_POSTNET_AND_UPU_AND_USPS_PLUS_BNB</a></span></code>
<div class="block">Enable Postnet, UPU 4 State Customer Code and USPS 4 State Customer Code
with B and B fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_AND_UPU_PLUS_BNB">POSTAL_2D_MODE_POSTNET_AND_UPU_PLUS_BNB</a></span></code>
<div class="block">Enable Postnet and UPU 4 State Customer Code with B and B fields.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_AND_USPS">POSTAL_2D_MODE_POSTNET_AND_USPS</a></span></code>
<div class="block">Enable Planet and USPS 4 State Customer Code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_AND_USPS_PLUS_BNB">POSTAL_2D_MODE_POSTNET_AND_USPS_PLUS_BNB</a></span></code>
<div class="block">Enable Postnet and USPS 4 State Customer Code with B and B fields.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_POSTNET_PLUS_BNB">POSTAL_2D_MODE_POSTNET_PLUS_BNB</a></span></code>
<div class="block">Enable Postnet with B and B fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_UPU">POSTAL_2D_MODE_UPU</a></span></code>
<div class="block">Enable UPU 4 State Customer Code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_UPU_AND_USPS">POSTAL_2D_MODE_UPU_AND_USPS</a></span></code>
<div class="block">Enable UPU and USPS 4 State Customer Code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_2D_MODE_USPS">POSTAL_2D_MODE_USPS</a></span></code>
<div class="block">Enable USPS 4 for State Customer Code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/honeywell/aidc/BarcodeReader.html#POSTAL_OCR_MODE_INVERSE">POSTAL_OCR_MODE_INVERSE</a></span></code>
<div class="block">Enable inverse video OCR mode</div>
</td>
</tr>