Class BaseScanResult<T>
java.lang.Object
com.microblink.blinkid.activity.result.BaseScanResult<T>
- Direct Known Subclasses:
OneSideScanResult
,ScanResult
,TwoSideScanResult
Result of the scanning process. You should first check the result status by using the
getResultStatus()
. If it is ResultStatus.FINISHED
, data will be available in
the returned BaseScanResult
data object, otherwise it will be null
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns scanning exception if result status isResultStatus.EXCEPTION
.Returns scanned data if result status isResultStatus.FINISHED
.Returns the status of the scanning process.
-
Constructor Details
-
BaseScanResult
-
-
Method Details
-
getResultStatus
Returns the status of the scanning process. See explanation for eachResultStatus
.- Returns:
- the status of the scanning process.
-
getResult
Returns scanned data if result status isResultStatus.FINISHED
.- Returns:
- scanned data if result status is
ResultStatus.FINISHED
, ornull
otherwise.
-
getException
Returns scanning exception if result status isResultStatus.EXCEPTION
.- Returns:
- scanning exception if result status is
ResultStatus.EXCEPTION
, ornull
otherwise.
-