Class CroppingViewModel
-
- All Implemented Interfaces:
public final class CroppingViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class>
progress
private final <Error class: unknown class><Bitmap>
imageState
private final CroppingState
croppingState
private final <Error class: unknown class><Boolean>
detectEnabled
private final <Error class: unknown class><Boolean>
resetEnabled
private final CroppingScreenConfiguration
config
private final ICroppingViewModel
scanSession
private final ContourDetector
contourDetector
private final DocumentAnalysisMode
documentAnalysisMode
private final DocumentQualityAnalyzer
documentQualityAnalyzer
private final ScanbotColor
bottomBarBackground
private final ScanbotColor
topBarBackground
private final CoroutineContext
ioDispatcher
private final CoroutineContext
backgroundDispatcher
-
Constructor Summary
Constructors Constructor Description CroppingViewModel(CroppingScreenConfiguration config, ICroppingViewModel scanSession, ContourDetector contourDetector, 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 CroppingState
getCroppingState()
final <Error class: unknown class><Boolean>
getDetectEnabled()
final <Error class: unknown class><Boolean>
getResetEnabled()
final CroppingScreenConfiguration
getConfig()
final ICroppingViewModel
getScanSession()
final ContourDetector
getContourDetector()
final DocumentAnalysisMode
getDocumentAnalysisMode()
final DocumentQualityAnalyzer
getDocumentQualityAnalyzer()
final ScanbotColor
getBottomBarBackground()
final ScanbotColor
getTopBarBackground()
final CoroutineContext
getIoDispatcher()
final CoroutineContext
getBackgroundDispatcher()
final Unit
detectPolygon()
final Unit
rotate()
final Unit
applyCrop()
final Unit
resetPolygon()
-
-
Constructor Detail
-
CroppingViewModel
CroppingViewModel(CroppingScreenConfiguration config, ICroppingViewModel scanSession, ContourDetector contourDetector, 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()
-
getContourDetector
final ContourDetector getContourDetector()
-
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()
-
-
-
-