Class BarcodeScannerActivity.Result
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.ScanbotActivityResult,io.scanbot.sdk.ui.view.barcode.BaseBarcodeScannerActivity.AutoCancellableResult,io.scanbot.sdk.ui.view.barcode.InternalBarcodeScannerActivity.InternalResult
public final class BarcodeScannerActivity.Result implements InternalBarcodeScannerActivity.InternalResult
Wrapper-class for all information, obtained as a result of RTU activity work.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerresultCodeprivate final BarcodeScannerResultresultprivate final BooleanisLicenseInvalidprivate final BooleansdkIsNotInitializedprivate final BooleanisAutoCancelledByTimeoutprivate final StringbarcodeImagePathprivate final StringbarcodePreviewFramePath
-
Constructor Summary
Constructors Constructor Description BarcodeScannerActivity.Result(Integer resultCode, BarcodeScannerResult result, Boolean isLicenseInvalid, Boolean sdkIsNotInitialized, Boolean isAutoCancelledByTimeout, String barcodeImagePath, String barcodePreviewFramePath)
-
Method Summary
Modifier and Type Method Description IntegergetResultCode()Defines whether activity finished and result provided or, for example, Activity. BarcodeScannerResultgetResult()Scanning or recognition result - the essence of components work done. BooleanisLicenseInvalid()Indicates whether RTU returned due to license issue detected. BooleangetSdkIsNotInitialized()Indicates whether RTU returned due to Scanbot SDK is not initialized. BooleanisAutoCancelledByTimeout()Flag indicating that component finished it's work prematurely due to timeout. StringgetBarcodeImagePath()Path to snapped image of area, containing scanned barcode(s). StringgetBarcodePreviewFramePath()Path to preview frame image of area, containing scanned barcode(s). -
-
Method Detail
-
getResultCode
Integer getResultCode()
Defines whether activity finished and result provided or, for example, Activity.RESULT_CANCELED
-
getResult
BarcodeScannerResult getResult()
Scanning or recognition result - the essence of components work done.
Might be null if resultCode is not Activity.RESULT_OK.
-
isLicenseInvalid
Boolean isLicenseInvalid()
Indicates whether RTU returned due to license issue detected. In case of
trueno result should be expected.
-
getSdkIsNotInitialized
Boolean getSdkIsNotInitialized()
Indicates whether RTU returned due to Scanbot SDK is not initialized. In case of
trueno result should be expected.
-
isAutoCancelledByTimeout
Boolean isAutoCancelledByTimeout()
Flag indicating that component finished it's work prematurely due to timeout. No actual result should be expected.
-
getBarcodeImagePath
String getBarcodeImagePath()
Path to snapped image of area, containing scanned barcode(s).
-
getBarcodePreviewFramePath
String getBarcodePreviewFramePath()
Path to preview frame image of area, containing scanned barcode(s).
-
-
-
-