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

Most visited

Recently visited

ScanResult2

public class ScanResult2
extends Object implements Parcelable

java.lang.Object
   ↳ com.vuzix.sdk.barcode.ScanResult2


Represents a single barcode located within an image.

Summary

Fields

public static final Creator<ScanResult2> CREATOR

Public constructors

ScanResult2(String text, byte[] rawBytes, Point[] resultPoints, BarcodeType2 format)
ScanResult2(String text, byte[] rawBytes, Point[] resultPoints, BarcodeType2 format, long timestamp)

Public methods

void addResultPoints(Point[] newPoints)
int describeContents()
BarcodeType2 getBarcodeFormat()
byte[] getRawBytes()
Point[] getResultPoints()
String getText()
long getTimestamp()
String toString()
void writeToParcel(Parcel out, int flags)

Fields

CREATOR

public static final Creator<ScanResult2> CREATOR

Public constructors

ScanResult2

public ScanResult2 (String text, 
                byte[] rawBytes, 
                Point[] resultPoints, 
                BarcodeType2 format)

Parameters
text String

rawBytes byte

resultPoints Point

format BarcodeType2

ScanResult2

public ScanResult2 (String text, 
                byte[] rawBytes, 
                Point[] resultPoints, 
                BarcodeType2 format, 
                long timestamp)

Parameters
text String

rawBytes byte

resultPoints Point

format BarcodeType2

timestamp long

Public methods

addResultPoints

public void addResultPoints (Point[] newPoints)

Parameters
newPoints Point

describeContents

public int describeContents ()

Returns
int

getBarcodeFormat

public BarcodeType2 getBarcodeFormat ()

Returns
BarcodeType2 BarcodeType2 representing the format of the barcode that was decoded

getRawBytes

public byte[] getRawBytes ()

Returns
byte[] raw bytes encoded by the barcode, if applicable, otherwise null

getResultPoints

public Point[] getResultPoints ()

Returns
Point[] points related to the barcode in the image. These are typically points identifying finder patterns or the corners of the barcode. The exact meaning is specific to the type of barcode that was decoded.

getText

public String getText ()

Returns
String raw text encoded by the barcode

getTimestamp

public long getTimestamp ()

Returns
long

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel out, 
                int flags)

Parameters
out Parcel

flags int