java.lang.Object | |
↳ | com.neomades.barcode.BarcodeScanner |
Defines the type of bar code to look for and what to do when found.
This must be used with BarcodeScannerScreen
and
BarcodeScannerView
in order to track bar codes with the camera of the
device.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BarcodeScanner(BarcodeFormat format)
Creates a BarcodeScanner that will track bar codes with the specified format.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setBarcodeListener(BarcodeListener barcodeListener)
Associate a
BarcodeListener with this scanner. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a BarcodeScanner that will track bar codes with the specified format.
Bar code with an other format will be ignored: the BarcodeListener
(if set) will not fire.
format | the bar code format to track. |
---|
Associate a BarcodeListener
with this scanner.
The listener will trigger when a bar code with the format of this BarcodeScanner will be detected in the camera field.
barcodeListener | a BarcodeListener |
---|