Interface IGenericDocumentCameraView.ViewModel
-
- All Implemented Interfaces:
public interface IGenericDocumentCameraView.ViewModelNotified about user interactions.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonActivateCameraPermission()User wants to activate camera permission abstract UnitonCancelClicked()User wants to cancel snapping abstract UnitonFlashClicked()User wants to change flash mode abstract UnitsetAcceptedDocumentTypes(List<RootDocumentType> documentTypes)Accepted document types. abstract UnitdocumentScanned(FrameHandlerResult<GenericDocumentRecognitionResult, SdkLicenseError> result)User have scanned document abstract <Error class: unknown class><Boolean>getCameraOpened()abstract <Error class: unknown class><Boolean>getStopNewFrames()abstract <Error class: unknown class><Boolean>getFlash()abstract <Error class: unknown class><DocumentRecognitionStep>getScanningStep()abstract GenericDocumentRecognizergetScanner()-
-
Method Detail
-
onActivateCameraPermission
abstract Unit onActivateCameraPermission()
User wants to activate camera permission
-
onCancelClicked
abstract Unit onCancelClicked()
User wants to cancel snapping
-
onFlashClicked
abstract Unit onFlashClicked()
User wants to change flash mode
-
setAcceptedDocumentTypes
abstract Unit setAcceptedDocumentTypes(List<RootDocumentType> documentTypes)
Accepted document types. All other document types will be ignored.
By default - GenericDocumentRecognizer.ACCEPTED_TYPES.
-
documentScanned
abstract Unit documentScanned(FrameHandlerResult<GenericDocumentRecognitionResult, SdkLicenseError> result)
User have scanned document
-
getCameraOpened
abstract <Error class: unknown class><Boolean> getCameraOpened()
-
getStopNewFrames
abstract <Error class: unknown class><Boolean> getStopNewFrames()
-
getScanningStep
abstract <Error class: unknown class><DocumentRecognitionStep> getScanningStep()
-
getScanner
abstract GenericDocumentRecognizer getScanner()
-
-
-
-