to top
Datalogic APIs
Added in revision 1
public interface

DecodeResult

com.datalogic.decode.DecodeResult

Class Overview

DecodeResult is an interface passed by onRead(DecodeResult) to retrieve scanned data from the decoder.

Summary

Public Methods
abstract BarcodeID getBarcodeID()
Returns the BarcodeID of the read data.
abstract Bitmap getCrop()
Returns the crop of the decoded data in case this has been enabled in the DecodeResultCrop class.
abstract byte[] getRawData()
Returns the raw decoded data result from scanner as a byte array.
abstract String getText()
Returns the decoded result as a formatted String.

Public Methods

public abstract BarcodeID getBarcodeID ()

Added in revision 1

Returns the BarcodeID of the read data.

Returns

public abstract Bitmap getCrop ()

Added in revision 45

Returns the crop of the decoded data in case this has been enabled in the DecodeResultCrop class.

Returns
  • Bitmap representing the crop if available, null otherwise.

public abstract byte[] getRawData ()

Added in revision 1

Returns the raw decoded data result from scanner as a byte array.

Returns
  • byte[] the resultant array containing the raw information directly read from the scanner.

public abstract String getText ()

Added in revision 1

Returns the decoded result as a formatted String.

Returns
  • String representing the decoded result.