Package io.scanbot.sdk.ui.view.mc
Interface IMedicalCertificateRecognizerView.ViewModel
-
- All Implemented Interfaces:
public interface IMedicalCertificateRecognizerView.ViewModel
Store view state and transport user interactions to it.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onCancelClicked()
User wants to cancel snapping. abstract Unit
onRetryClicked()
User wants to retry cm scanning. abstract Unit
onSnapping()
On snapping after cm found successfully abstract Unit
onFlashClicked()
User wants to change flash mode. abstract Unit
medicalCertificateSnapped(ByteArray image, CaptureInfo captureInfo)
MC page is snapped abstract Unit
onResult(FrameHandlerResult<MedicalCertificateRecognizerResult, SdkLicenseError> result)
On result frames comes from detector abstract MedicalCertificateRecognizer
getScanner()
abstract <Error class: unknown class><Boolean>
getCameraOpened()
abstract <Error class: unknown class><String>
getHint()
abstract <Error class: unknown class><Boolean>
getFlash()
abstract <Error class: unknown class><Boolean>
getPictureProcessing()
abstract <Error class: unknown class><Boolean>
getShouldProcessFrames()
abstract <Error class: unknown class><Boolean>
getShowErrorDialog()
-
-
Method Detail
-
onCancelClicked
abstract Unit onCancelClicked()
User wants to cancel snapping.
-
onRetryClicked
abstract Unit onRetryClicked()
User wants to retry cm scanning.
-
onSnapping
abstract Unit onSnapping()
On snapping after cm found successfully
-
onFlashClicked
abstract Unit onFlashClicked()
User wants to change flash mode.
-
medicalCertificateSnapped
abstract Unit medicalCertificateSnapped(ByteArray image, CaptureInfo captureInfo)
MC page is snapped
-
onResult
abstract Unit onResult(FrameHandlerResult<MedicalCertificateRecognizerResult, SdkLicenseError> result)
On result frames comes from detector
-
getScanner
abstract MedicalCertificateRecognizer getScanner()
-
getCameraOpened
abstract <Error class: unknown class><Boolean> getCameraOpened()
-
getPictureProcessing
abstract <Error class: unknown class><Boolean> getPictureProcessing()
-
getShouldProcessFrames
abstract <Error class: unknown class><Boolean> getShouldProcessFrames()
-
getShowErrorDialog
abstract <Error class: unknown class><Boolean> getShowErrorDialog()
-
-
-
-