Kofax Mobile SDK API Reference
|
Classes | |
class | CameraImageData |
class | DecodeInfo |
Protected Member Functions | |
void | checkLicense () |
![]() | |
void | checkLicense () |
void | onLayout (boolean changed, int l, int t, int r, int b) |
void | onDetachedFromWindow () |
void | onAttachedToWindow () |
Additional Inherited Members | |
![]() | |
static final int | DEFAULT_LUMINANCE_THRESHOLD = 100 |
static final int | DEFAULT_TORCH_DELAY = 3 |
![]() | |
IBus | _bus |
This view provides a capture experience optimized for barcode reading. The view provides visual guidance to the end-user to maximize the chances of correctly decoding a barcode. Once the view has been asked to read a barcode, it will search continuously until one is found.
BarCodeCaptureView | ( | Context | context | ) |
BarCodeCaptureView | ( | Context | context, |
AttributeSet | set | ||
) |
BarCodeCaptureView | ( | Context | context, |
AttributeSet | set, | ||
int | defStyle | ||
) |
void addBarCodeFoundEventListener | ( | BarCodeFoundListener | listener | ) |
Adds the specified barcode search listener to receive barcode events from this view.
BoundingTetragon calculateBound | ( | float[] | points, |
int | rotation, | ||
int | width, | ||
int | height | ||
) |
|
protected |
GuidingLine getGuidingLine | ( | ) |
SearchDirection [] getSearchDirection | ( | ) |
Symbology [] getSymbologies | ( | ) |
void onLevelnessChanged | ( | LevelChangedEvent | evt | ) |
void onLocationEnableEvent | ( | GPSEnabledEvent | evt | ) |
void onLocationEvent | ( | LocationEvent | evt | ) |
void onPreviewFrame | ( | PreviewImageReadyBusEvent | evt | ) |
void readBarcode | ( | ) |
This call returns immediately and starts asynchronously searching for a barcode with the current camera and barcode parameters. The search will continue indefinitely until a barcode is found, allowing time for the device to further stabilize and focus if necessary.
Once a barcode is positively read, the BarCodeFoundEvent is raised providing the decoded message and the unprocessed image that was used.
Caller needs to call readBarcode() again to start a new barcode scan.
void removeBarCodeFoundEventListener | ( | BarCodeFoundListener | listener | ) |
Removes the specified barcode search listener from this view.
void setGuidingLine | ( | GuidingLine | value | ) |
The guiding line is a visual aid for aligning barcodes within the preview. A guiding line is rendered as a straight line splitting the preview into two equal parts. The intention is for the line to cross through all the bars of a barcode, like the laser of a linear scanner. The guiding line is turned off by default.
value | Whether a guiding line should be rendered in PORTRAIT or LANDSCAPE, or turned OFF. |
void setSearchDirection | ( | SearchDirection[] | value | ) |
Searching for multiple directions slows down the speed of barcode recognition. If you expect barcodes to only be oriented in certain directions, you should specify only those directions. By default, all directions will be searched, represented by the array [SearchDirection.Horizontal, SearchDirection.Vertical].
value | An array of search directions. |
void setSymbologies | ( | Symbology[] | value | ) |
Searching for multiple symbologies slows down the speed of barcode recognition. You should only specify the symbologies that you are interested in reading. The set of selected symbologies is empty by default.
value | An array of symbologies. |