# Print output for @column tags ?> Scanner2 | Android Developers

Most visited

Recently visited

Scanner2

public interface Scanner2

com.vuzix.sdk.barcode.Scanner2


Summary

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 methods

isFormatSupported

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

scan

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

setEngineBundle

public abstract void setEngineBundle (Bundle bundle)

Set the barcode scanner formats

Parameters
bundle Bundle: Bundle of Engine specific data.

setFormats

public abstract void setFormats (BarcodeType2[] types)

Set the barcode scanner formats

Parameters
types BarcodeType2: Array of BarcodeType2 types