Android API Reference
BarcodeReader Class
Initialize
Method | Description |
---|---|
BarcodeReader |
Initialization of BarcodeReader object. |
Video Decoding Methods
Method | Description |
---|---|
setCameraEnhancer |
Bind a Camera Enhancer instance to the Barcode Reader. |
startScanning |
Start the barcode reading thread. |
stopScanning |
Stop the barcode reading thread. |
setTextResultListener |
Set TextResult listener to get result from the callback method when barcode is decoded. |
setIntermediateResultListener |
Set intermediateResult listener to get intermediate result from the callback method. |
enableResultVerification |
Verify the results before output. |
enableDuplicateFiter |
Output the duplicated result only once for every 3 seconds. |
Note:
setTextResultCallback
is deprecated, please usesetTextResultListener
instead.setIntermediateResultCallback
is deprecated, please usesetIntermediateResultListener
instead.
Image Decoding Methods
Method | Description |
---|---|
decodeBuffer |
Decode barcodes from raw buffer. |
decodeFile |
Decode barcodes from a specified image file. |
decodeFileInMemory |
Decode barcodes from an image file in memory. |
decodeBase64String |
Decode barcodes from a base64 encoded string. |
decodeBufferedImage |
Decodes barcode from a buffered image (bitmap). |
License
Method | Description |
---|---|
initLicense |
Read product key and activate the SDK. |
Note:
The following license activation methods are deprecated:
outputLicenseToString
initLicenseFromDLS
initLicenseFromServer
initLicenseFromLicenseContent
Please use
initLicense
to activate the license.
Parameter and Runtime Settings
Basic
Method | Description |
---|---|
getRuntimeSettings |
Get current runtime settings. |
updateRuntimeSettings (with struct) |
Modify and update the current runtime settings. |
updateRuntimeSettings (with preset template) |
Update runtime settings from one of the preset templates. |
resetRuntimeSettings |
Reset runtime settings to default. |
Advanced
Method | Description |
---|---|
initRuntimeSettingsWithFile |
Initialize runtime settings with the settings in a given JSON file. |
initRuntimeSettingsWithString |
Initialize runtime settings with the settings in a given JSON string. |
appendTplFileToRuntimeSettings |
Append a new template file to the current runtime settings. |
appendTplStringToRuntimeSettings |
Append a new template string to the current runtime settings. |
getAllParameterTemplateNames |
Gets the parameter templates name array. |
outputSettingsToFile |
Output runtime settings to a settings file (JSON file). |
outputSettingsToString |
Output runtime settings to a string. |
setModeArgument |
Set argument value for the specified mode parameter. |
getModeArgument |
Get argument value for the specified mode parameter. |
Result
Method | Description |
---|---|
initIntermediateResult |
Inits an intermediateResult struct with default values. |
getIntermediateResults |
Get intermediate results. |
decodeIntermediateResults |
Decodes barcode from intermediate results. |
Status Retrieval
Method | Description |
---|---|
getVersion |
Get version information of SDK. |
Auxiliary Classes
AztecDetails
BarcodeReaderException
Contour
DataMatrixDetails
ExtendedResult
FurtherModes
ImageData
IntermediateResult
LineSegment
LocalizationResult
OneDCodeDetails
PDF417Details
PublicRuntimeSettings
QRCodeDetails
Quadrilateral
RegionDefinition
RegionOfInterest
SamplingImageData
TextResult
Note:
DMDLSConnectionParameters
is deprecated due to the update of the license. Please use the methodinitLicense
to activate the license instead.
Interfaces
Interfaces | Description |
---|---|
TextResultListener |
The interface to handle callback when text results are returned. |
IntermediateResultListener |
The interface to handle callback when intermediate results are returned. |
DBRLicenseVerificationListener |
The interface to handle callback for method initLicense . |
Note:
TextResultCallback
is deprecated, please useTextResultListener
instead.IntermediateResultCallback
is deprecated, please useIntermediateResultListener
instead.DBRServerLicenseVerificationListener
is deprecated. It handles callback when using methodinitLicenseFromServer
, which is also deprecated. Please useinitLicense
instead.DBRDLSLicenseVerificationListener
is deprecated. It handles callback when using methodinitLicenseFromDLS
, which is also deprecated. Please useinitLicense
instead.
Enumerations
EnumBarcodeColourMode
EnumBarcodeComplementMode
EnumBarcodeFormat
EnumBarcodeFormat_2
EnumBinarizationMode
EnumColourClusteringMode
EnumColourConversionMode
EnumConflictMode
EnumDeblurMode
EnumDeformationResistingMode
EnumDPMCodeReadingMode
EnumGrayscaleTransformationMode
EnumImagePixelFormat
EnumImagePreprocessingMode
EnumIMResultDataType
EnumIntermediateResultSavingMode
EnumIntermediateResultType
EnumLocalizationMode
EnumPDFReadingMode
EnumQRCodeErrorCorrectionLevel
EnumRegionPredetectionMode
EnumResultCoordinateType
EnumResultType
EnumScaleUpMode
EnumTerminatePhase
EnumTextFilterMode
EnumTextResultOrderMode
EnumTextureDetectionMode
EnumPresetTemplate
Note:
The following Enumerations are deprecated and will be removed in the future.
EnumProduct
EnumDMChargeWay
EnumDMLicenseModule
EnumDMUUIDGenerationMethod
Others
View the Error Codes