public class

BarcodeScanner

extends Object
java.lang.Object
   ↳ com.neomades.barcode.BarcodeScanner

Class Overview

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.

Summary

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
From class java.lang.Object

Public Constructors

public BarcodeScanner (BarcodeFormat format)

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.

Parameters
format the bar code format to track.
See Also

Public Methods

public void setBarcodeListener (BarcodeListener barcodeListener)

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.

Parameters
barcodeListener a BarcodeListener