Class CroppingViewModel
-
- All Implemented Interfaces:
public final class CroppingViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class>progressprivate final <Error class: unknown class><Bitmap>imageStateprivate final CroppingStatecroppingStateprivate final <Error class: unknown class><Boolean>detectEnabledprivate final <Error class: unknown class><Boolean>resetEnabledprivate final CroppingScreenConfigurationconfigprivate final ICroppingViewModelscanSessionprivate final DocumentScannerdocumentScannerprivate final DocumentAnalysisModedocumentAnalysisModeprivate final DocumentQualityAnalyzerdocumentQualityAnalyzerprivate final ScanbotColorbottomBarBackgroundprivate final ScanbotColortopBarBackgroundprivate final CoroutineContextioDispatcherprivate final CoroutineContextbackgroundDispatcher
-
Constructor Summary
Constructors Constructor Description CroppingViewModel(CroppingScreenConfiguration config, ICroppingViewModel scanSession, DocumentScanner documentScanner, DocumentAnalysisMode documentAnalysisMode, DocumentQualityAnalyzer documentQualityAnalyzer, ScanbotColor bottomBarBackground, ScanbotColor topBarBackground, CoroutineContext ioDispatcher, CoroutineContext backgroundDispatcher, Bundle arguments)
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class>getProgress()final <Error class: unknown class><Bitmap>getImageState()final CroppingStategetCroppingState()final <Error class: unknown class><Boolean>getDetectEnabled()final <Error class: unknown class><Boolean>getResetEnabled()final CroppingScreenConfigurationgetConfig()final ICroppingViewModelgetScanSession()final DocumentScannergetDocumentScanner()final DocumentAnalysisModegetDocumentAnalysisMode()final DocumentQualityAnalyzergetDocumentQualityAnalyzer()final ScanbotColorgetBottomBarBackground()final ScanbotColorgetTopBarBackground()final CoroutineContextgetIoDispatcher()final CoroutineContextgetBackgroundDispatcher()final UnitdetectPolygon()final Unitrotate()final UnitapplyCrop()final UnitresetPolygon()-
-
Constructor Detail
-
CroppingViewModel
CroppingViewModel(CroppingScreenConfiguration config, ICroppingViewModel scanSession, DocumentScanner documentScanner, DocumentAnalysisMode documentAnalysisMode, DocumentQualityAnalyzer documentQualityAnalyzer, ScanbotColor bottomBarBackground, ScanbotColor topBarBackground, CoroutineContext ioDispatcher, CoroutineContext backgroundDispatcher, Bundle arguments)
-
-
Method Detail
-
getProgress
final <Error class: unknown class> getProgress()
-
getImageState
final <Error class: unknown class><Bitmap> getImageState()
-
getCroppingState
final CroppingState getCroppingState()
-
getDetectEnabled
final <Error class: unknown class><Boolean> getDetectEnabled()
-
getResetEnabled
final <Error class: unknown class><Boolean> getResetEnabled()
-
getConfig
final CroppingScreenConfiguration getConfig()
-
getScanSession
final ICroppingViewModel getScanSession()
-
getDocumentScanner
final DocumentScanner getDocumentScanner()
-
getDocumentAnalysisMode
final DocumentAnalysisMode getDocumentAnalysisMode()
-
getDocumentQualityAnalyzer
final DocumentQualityAnalyzer getDocumentQualityAnalyzer()
-
getBottomBarBackground
final ScanbotColor getBottomBarBackground()
-
getTopBarBackground
final ScanbotColor getTopBarBackground()
-
getIoDispatcher
final CoroutineContext getIoDispatcher()
-
getBackgroundDispatcher
final CoroutineContext getBackgroundDispatcher()
-
detectPolygon
final Unit detectPolygon()
-
resetPolygon
final Unit resetPolygon()
-
-
-
-