public final class BarcodeRecognizer extends Recognizer
Modifier and Type | Class and Description |
---|---|
static class |
BarcodeRecognizer.Result |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Constructor and Description |
---|
BarcodeRecognizer() |
Modifier and Type | Method and Description |
---|---|
BarcodeRecognizer |
clone()
Create a copy of the entity.
|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
deserializeNativeSettings(byte[] serializedSettings) |
boolean |
isAutoScaleDetection()
Allow enabling the autodetection of image scale when scanning barcodes.
|
boolean |
isNullQuietZoneAllowed()
Allow scanning PDF417 barcodes which don't have quiet zone
surrounding it (e.g.
|
boolean |
isScanInverse()
Enables scanning of barcodes with inverse intensity values (e.g.
|
boolean |
isScanUncertain()
Enable decoding of non-standard PDF417 barcodes, but without
guarantee that all data will be read.
|
boolean |
isSlowerThoroughScan()
Enable slower, but more thorough scanning, thus giving higher possibility of successful scan.
|
protected byte[] |
serializeNativeSettings() |
void |
setAutoScaleDetection(boolean autoScaleDetection)
Allow enabling the autodetection of image scale when scanning barcodes.
|
void |
setNullQuietZoneAllowed(boolean nullQuietZoneAllowed)
Allow scanning PDF417 barcodes which don't have quiet zone
surrounding it (e.g.
|
void |
setReadCode39AsExtendedData(boolean readCode39AsExtendedData)
Enable reading code39 barcode contents as extended data.
|
void |
setScanAztecCode(boolean scanAztecCode)
Should Aztec 2D barcode be scanned.
|
void |
setScanCode128(boolean scanCode128)
Should Code128 barcode be scanned.
|
void |
setScanCode39(boolean scanCode39)
Should Code39 barcode be scanned.
|
void |
setScanDataMatrix(boolean scanDataMatrix)
Should DataMatrix 2D barcode be scanned.
|
void |
setScanEan13(boolean scanEan13)
Should EAN13 barcode be scanned.
|
void |
setScanEan8(boolean scanEan8)
Should EAN8 barcode be scanned.
|
void |
setScanInverse(boolean scanInverse)
Enables scanning of barcodes with inverse intensity values (e.g.
|
void |
setScanItf(boolean scanItf)
Should ITF barcode be scanned.
|
void |
setScanPdf417(boolean scanPdf417)
Should PDF417 2D barcode be scanned.
|
void |
setScanQrCode(boolean scanQrCode)
Should QR code be scanned.
|
void |
setScanUncertain(boolean scanUncertain)
Enable decoding of non-standard PDF417 barcodes, but without
guarantee that all data will be read.
|
void |
setScanUpca(boolean scanUpca)
Should UPCA barcode be scanned.
|
void |
setScanUpce(boolean scanUpce)
Should UPCE barcode be scanned.
|
void |
setSlowerThoroughScan(boolean slowerThoroughScan)
Enable slower, but more thorough scanning, thus giving higher possibility of successful scan.
|
boolean |
shouldReadCode39AsExtendedData()
Enable reading code39 barcode contents as extended data.
|
boolean |
shouldScanAztecCode()
Should Aztec 2D barcode be scanned.
|
boolean |
shouldScanCode128()
Should Code128 barcode be scanned.
|
boolean |
shouldScanCode39()
Should Code39 barcode be scanned.
|
boolean |
shouldScanDataMatrix()
Should DataMatrix 2D barcode be scanned.
|
boolean |
shouldScanEan13()
Should EAN13 barcode be scanned.
|
boolean |
shouldScanEan8()
Should EAN8 barcode be scanned.
|
boolean |
shouldScanItf()
Should ITF barcode be scanned.
|
boolean |
shouldScanPdf417()
Should PDF417 2D barcode be scanned.
|
boolean |
shouldScanQrCode()
Should QR code be scanned.
|
boolean |
shouldScanUpca()
Should UPCA barcode be scanned.
|
boolean |
shouldScanUpce()
Should UPCE barcode be scanned.
|
protected void |
terminateNative(long nativeContext) |
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel, writeToParcel
public void setScanCode128(boolean scanCode128)
public boolean shouldScanCode128()
public void setScanDataMatrix(boolean scanDataMatrix)
public boolean shouldScanDataMatrix()
public void setScanCode39(boolean scanCode39)
public boolean shouldScanCode39()
public void setSlowerThoroughScan(boolean slowerThoroughScan)
public boolean isSlowerThoroughScan()
public void setScanEan8(boolean scanEan8)
public boolean shouldScanEan8()
public void setScanEan13(boolean scanEan13)
public boolean shouldScanEan13()
public void setScanPdf417(boolean scanPdf417)
public boolean shouldScanPdf417()
public void setScanInverse(boolean scanInverse)
public boolean isScanInverse()
public void setScanUncertain(boolean scanUncertain)
public boolean isScanUncertain()
public void setScanUpce(boolean scanUpce)
public boolean shouldScanUpce()
public void setReadCode39AsExtendedData(boolean readCode39AsExtendedData)
public boolean shouldReadCode39AsExtendedData()
public void setNullQuietZoneAllowed(boolean nullQuietZoneAllowed)
public boolean isNullQuietZoneAllowed()
public void setScanItf(boolean scanItf)
public boolean shouldScanItf()
public void setScanQrCode(boolean scanQrCode)
public boolean shouldScanQrCode()
public void setScanUpca(boolean scanUpca)
public boolean shouldScanUpca()
public void setScanAztecCode(boolean scanAztecCode)
public boolean shouldScanAztecCode()
public void setAutoScaleDetection(boolean autoScaleDetection)
public boolean isAutoScaleDetection()
protected void terminateNative(long nativeContext)
terminateNative
in class Entity
@Nullable protected byte[] serializeNativeSettings()
serializeNativeSettings
in class Entity
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings)
deserializeNativeSettings
in class Entity
public BarcodeRecognizer clone()
Entity
RecognizerRunnerView
or RecognizerRunner
with the updated entity hierarchy.clone
in class Recognizer
public void consumeResultFrom(@NonNull Entity other)
Entity
com.microblink.blinkinput.entities.recognizers.RecognizerBundle#loadFromIntent(Intent)
and similar methods to replace the result content of the saved entities with results that
have arrived over Intent
consumeResultFrom
in class Entity
other
- Entity from which result should be consumed.