Class CroppingHostViewModel
-
- 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.crop.ICroppingViewModel
public final class CroppingHostViewModel implements IDocumentHolder, IProgressAware, ICanGoBack, ICroppingViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final Document
document
private final <Error class: unknown class>
alertDialog
private final <Error class: unknown class><CloseReason>
closeAction
private final <Error class: unknown class><Unit>
submitAction
private final <Error class: unknown class><ProgressType>
progressShowing
-
Constructor Summary
Constructors Constructor Description CroppingHostViewModel(CroppingConfiguration configuration, DocumentStorage documentStorage, PageFileStorage pageFileStorage, FileIOProcessor fileIOProcessor, DocumentApi documentApi, CoroutineContext ioDispatcher, CoroutineContext backgroundDispatcher, CoroutineContext mainDispatcher)
-
Method Summary
Modifier and Type Method Description Document
getDocument()
final <Error class: unknown class>
getAlertDialog()
final <Error class: unknown class><CloseReason>
getCloseAction()
final <Error class: unknown class><Unit>
getSubmitAction()
<Error class: unknown class><ProgressType>
getProgressShowing()
Unit
updateCurrentPreview()
Unit
croppingApplied()
Unit
documentError(String error)
final Unit
closeCameraOnDocumentNotExist(String uuid)
Unit
goBack()
Unit
showProgress(ProgressType progressType)
Unit
hideProgress()
-
-
Constructor Detail
-
CroppingHostViewModel
CroppingHostViewModel(CroppingConfiguration configuration, DocumentStorage documentStorage, PageFileStorage pageFileStorage, FileIOProcessor fileIOProcessor, DocumentApi documentApi, CoroutineContext ioDispatcher, CoroutineContext backgroundDispatcher, CoroutineContext mainDispatcher)
-
-
Method Detail
-
getDocument
Document getDocument()
-
getAlertDialog
final <Error class: unknown class> getAlertDialog()
-
getCloseAction
final <Error class: unknown class><CloseReason> getCloseAction()
-
getSubmitAction
final <Error class: unknown class><Unit> getSubmitAction()
-
getProgressShowing
<Error class: unknown class><ProgressType> getProgressShowing()
-
updateCurrentPreview
Unit updateCurrentPreview()
-
croppingApplied
Unit croppingApplied()
-
documentError
Unit documentError(String error)
-
closeCameraOnDocumentNotExist
final Unit closeCameraOnDocumentNotExist(String uuid)
-
showProgress
Unit showProgress(ProgressType progressType)
-
hideProgress
Unit hideProgress()
-
-
-
-