Class DocumentScannerHostViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui_v2.document.screen.ICanGoBack
,io.scanbot.sdk.ui_v2.document.screen.IDocumentHolder
,io.scanbot.sdk.ui_v2.document.screen.IProgressAware
,io.scanbot.sdk.ui_v2.document.screen.acknowledgement.IAcknowledgementViewModel
,io.scanbot.sdk.ui_v2.document.screen.camera.IDocumentCameraSession
,io.scanbot.sdk.ui_v2.document.screen.crop.ICroppingViewModel
,io.scanbot.sdk.ui_v2.document.screen.reorder.IReorderViewModel
,io.scanbot.sdk.ui_v2.document.screen.review.IReviewViewModel
public final class DocumentScannerHostViewModel implements IDocumentHolder, IProgressAware, ICanGoBack, IDocumentCameraSession, IAcknowledgementViewModel, IReorderViewModel, ICroppingViewModel, IReviewViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final Document
document
private final <Error class: unknown class>
showIntroDialog
private final <Error class: unknown class>
showCancelDialog
private final <Error class: unknown class>
alertDialog
private final <Error class: unknown class><Uri>
importedImageUris
private final <Error class: unknown class><ImportAction>
importAction
private final <Error class: unknown class><CloseReason>
closeAction
private final <Error class: unknown class><String>
submitAction
private final <Error class: unknown class><Integer>
pagesCountToDisplay
private final <Error class: unknown class><Uri>
lastPreviewUriToDisplay
private final <Error class: unknown class><ProgressType>
progressShowing
private final <Error class: unknown class><IDocumentCameraSession.CameraScreenMode>
cameraMode
private final DocumentAnalysisMode
documentAnalysisMode
private WeakReference<<Error class: unknown class>>
navControllerProvider
-
Constructor Summary
Constructors Constructor Description DocumentScannerHostViewModel(DocumentScanningFlow configuration, DocumentNativeConfiguration nativeConfiguration, DocumentStorage documentStorage, PageFileStorage pageFileStorage, FileIOProcessor fileIOProcessor, DocumentApi documentApi, CoroutineContext ioDispatcher, CoroutineContext backgroundDispatcher, CoroutineContext mainDispatcher)
-
Method Summary
-
-
Constructor Detail
-
DocumentScannerHostViewModel
DocumentScannerHostViewModel(DocumentScanningFlow configuration, DocumentNativeConfiguration nativeConfiguration, DocumentStorage documentStorage, PageFileStorage pageFileStorage, FileIOProcessor fileIOProcessor, DocumentApi documentApi, CoroutineContext ioDispatcher, CoroutineContext backgroundDispatcher, CoroutineContext mainDispatcher)
-
-
Method Detail
-
getDocument
Document getDocument()
-
getShowIntroDialog
<Error class: unknown class> getShowIntroDialog()
-
getShowCancelDialog
<Error class: unknown class> getShowCancelDialog()
-
getAlertDialog
final <Error class: unknown class> getAlertDialog()
-
getImportedImageUris
<Error class: unknown class><Uri> getImportedImageUris()
-
getImportAction
final <Error class: unknown class><ImportAction> getImportAction()
-
getCloseAction
final <Error class: unknown class><CloseReason> getCloseAction()
-
getSubmitAction
final <Error class: unknown class><String> getSubmitAction()
-
getPagesCountToDisplay
<Error class: unknown class><Integer> getPagesCountToDisplay()
-
getLastPreviewUriToDisplay
<Error class: unknown class><Uri> getLastPreviewUriToDisplay()
-
getProgressShowing
<Error class: unknown class><ProgressType> getProgressShowing()
-
getCameraMode
<Error class: unknown class><IDocumentCameraSession.CameraScreenMode> getCameraMode()
-
getDocumentAnalysisMode
DocumentAnalysisMode getDocumentAnalysisMode()
-
getNavControllerProvider
final WeakReference<<Error class: unknown class>> getNavControllerProvider()
-
setNavControllerProvider
final Unit setNavControllerProvider(WeakReference<<Error class: unknown class>> navControllerProvider)
-
importImages
Unit importImages()
-
pagesLeftToScan
Integer pagesLeftToScan()
-
cameraShowIntroDialog
Unit cameraShowIntroDialog()
-
cameraNavigateReviewOrSubmit
Unit cameraNavigateReviewOrSubmit(String pageId)
-
cameraNavigateAcknowledgement
Unit cameraNavigateAcknowledgement(Page page)
-
closeCamera
Unit closeCamera()
-
closeCameraOnLicense
Unit closeCameraOnLicense()
-
closeCameraOnDocumentNotExist
final Unit closeCameraOnDocumentNotExist(String uuid)
-
dismissIntroDialog
final Unit dismissIntroDialog()
-
acknowledgementRetakePage
Unit acknowledgementRetakePage(String pageId)
-
acknowledgementUseCurrentPage
Unit acknowledgementUseCurrentPage(String pageId)
-
removeOldPageIfReplaceMode
Unit removeOldPageIfReplaceMode()
-
saveNewOrderedPages
Unit saveNewOrderedPages(List<String> newOrderedPages)
-
showDialog
Unit showDialog(ScanbotDialogHandler handler)
-
reviewShowDeleteAllDialog
Unit reviewShowDeleteAllDialog()
-
reviewRetakePage
Unit reviewRetakePage(String pageId)
-
reviewAddPage
Unit reviewAddPage(String currentPage)
-
reviewShowDeletePageDialog
Unit reviewShowDeletePageDialog(String pageId)
-
updateCurrentPreview
Unit updateCurrentPreview()
-
croppingApplied
Unit croppingApplied()
-
documentError
Unit documentError(String error)
-
reviewNavigatePageCrop
Unit reviewNavigatePageCrop(String pageId)
-
reviewNavigateReorder
Unit reviewNavigateReorder()
-
reviewSubmitDocument
Unit reviewSubmitDocument()
-
showProgress
Unit showProgress(ProgressType progressType)
-
hideProgress
Unit hideProgress()
-
-
-
-