# Print output for @column tags ?>
public
interface
Scanner2
| com.vuzix.sdk.barcode.Scanner2 |
Public methods | |
|---|---|
abstract
boolean
|
isFormatSupported(BarcodeType2 type)
Verfies if format is supported by the engine |
abstract
ScanResult2[]
|
scan(byte[] imageData, int width, int height, Rect rect)
Scans the supplied image data for the requested barcode types. |
abstract
void
|
setEngineBundle(Bundle bundle)
Set the barcode scanner formats |
abstract
void
|
setFormats(BarcodeType2[] types)
Set the barcode scanner formats |
public abstract boolean isFormatSupported (BarcodeType2 type)
Verfies if format is supported by the engine
| Parameters | |
|---|---|
type |
BarcodeType2: BarcodeType2 type |
| Returns | |
|---|---|
boolean |
boolean True if supported false if not |
public abstract ScanResult2[] scan (byte[] imageData, int width, int height, Rect rect)
Scans the supplied image data for the requested barcode types. Only the supplied scanning rectangle will be scanned.
| Parameters | |
|---|---|
imageData |
byte: image data |
width |
int: width in pixels of the image data |
height |
int: height in pixels of the image data |
rect |
Rect: the scanning rectangle in which to look for barcodes, if null the entire image will be scanned |
| Returns | |
|---|---|
ScanResult2[] |
ScanResult2 or null if no data found |
public abstract void setEngineBundle (Bundle bundle)
Set the barcode scanner formats
| Parameters | |
|---|---|
bundle |
Bundle: Bundle of Engine specific data.
|
public abstract void setFormats (BarcodeType2[] types)
Set the barcode scanner formats
| Parameters | |
|---|---|
types |
BarcodeType2: Array of BarcodeType2 types
|