# Print output for @column tags ?> ScannerFragment.Listener2 | Android Developers

Most visited

Recently visited

ScannerFragment.Listener2

public static interface ScannerFragment.Listener2

com.vuzix.sdk.barcode.ScannerFragment.Listener2


Summary

Public methods

abstract void onError()

An irrecoverable error has occurred within the ScannerFragment.

abstract void onScan2Result(Bitmap bitmap, ScanResult2[] results)

One or more barcodes have been identified.

Public methods

onError

public abstract void onError ()

An irrecoverable error has occurred within the ScannerFragment. The fragment should be removed from your activity upon this method being invoked. This method will be invoked on the main application thread.

onScan2Result

public abstract void onScan2Result (Bitmap bitmap, 
                ScanResult2[] results)

One or more barcodes have been identified. Note that this method will be called repeatedly as a barcode remains in the scanning rect. If you only want to be notified once, you should unregister your listener during this method call. This method will be invoked on the main application thread.

Parameters
bitmap Bitmap: the bitmap in which barcodes were found

results ScanResult2: an array of ScanResult