Class TextDataScannerCameraViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.utils.Router
,io.scanbot.sdk.ui.view.generictext.ITextDataCameraView.ViewModel
public final class TextDataScannerCameraViewModel implements ITextDataCameraView.ViewModel, Router
-
-
Field Summary
Fields Modifier and Type Field Description private final <Error class: unknown class><Boolean>
cameraOpened
private final <Error class: unknown class><Boolean>
stopNewFrames
private final <Error class: unknown class><Boolean>
flash
private <Error class: unknown class><TextDataScannerStep>
currentStep
private final GenericTextRecognizer
scanner
-
Constructor Summary
Constructors Constructor Description TextDataScannerCameraViewModel(GenericTextRecognizer scanner)
-
Method Summary
Modifier and Type Method Description <Error class: unknown class><Boolean>
getCameraOpened()
<Error class: unknown class><Boolean>
getStopNewFrames()
<Error class: unknown class><Boolean>
getFlash()
<Error class: unknown class><TextDataScannerStep>
getCurrentStep()
Unit
)>setCurrentStep(<Error class: unknown class><TextDataScannerStep> currentStep)
GenericTextRecognizer
getScanner()
final Unit
setSteps(TextDataScannerStep step)
final Unit
pause()
Unit
onCancelClicked()
User wants to cancel snapping. Unit
onFlashClicked()
User wants to change flash mode. Unit
genericTextScanned(FrameHandlerResult<GenericTextRecognitionResult, SdkLicenseError> result)
New frame was processed with generic recognizer. final Unit
setFlashEnabled(Boolean flashEnabled)
Toggles flash. Unit
onCleared()
-
-
Constructor Detail
-
TextDataScannerCameraViewModel
TextDataScannerCameraViewModel(GenericTextRecognizer scanner)
-
-
Method Detail
-
getCameraOpened
<Error class: unknown class><Boolean> getCameraOpened()
-
getStopNewFrames
<Error class: unknown class><Boolean> getStopNewFrames()
-
getCurrentStep
<Error class: unknown class><TextDataScannerStep> getCurrentStep()
-
setCurrentStep
Unit )>setCurrentStep(<Error class: unknown class><TextDataScannerStep> currentStep)
-
getScanner
GenericTextRecognizer getScanner()
-
setSteps
final Unit setSteps(TextDataScannerStep step)
-
onCancelClicked
Unit onCancelClicked()
User wants to cancel snapping.
-
onFlashClicked
Unit onFlashClicked()
User wants to change flash mode.
-
genericTextScanned
Unit genericTextScanned(FrameHandlerResult<GenericTextRecognitionResult, SdkLicenseError> result)
New frame was processed with generic recognizer.
- Parameters:
result
- GenericTextRecognitionResult with scanned data
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Toggles flash.
-
-
-
-