public class

ScanningRect

extends Object
implements Parcelable
java.lang.Object
   ↳ com.vuzix.sdk.barcode.ScanningRect

Class Overview

Represents the center portion of an image that will be scanned for barcodes.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<ScanningRect> CREATOR
Public Constructors
ScanningRect(float widthPercentage, float heightPercentage)
Creates a ScanningRect taking up the requested percentages of width and height for an image.
Public Methods
int describeContents()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<ScanningRect> CREATOR

Public Constructors

public ScanningRect (float widthPercentage, float heightPercentage)

Creates a ScanningRect taking up the requested percentages of width and height for an image. The ScanningRect is always centered in the image.

Parameters
widthPercentage float: percentage between 0.0 and 1.0
heightPercentage float: percentage between 0.0 and 1.0
Throws
IllegalArgumentException if either widthPercentage or heightPercentage are < 0 or > 1

Public Methods

public int describeContents ()

Returns
int

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int