Package io.scanbot.sdk.ui.view.hic
Class HealthInsuranceCardCameraViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.utils.Router
,io.scanbot.sdk.ui.view.hic.IHealthInsuranceCardCameraView.ViewModel
public final class HealthInsuranceCardCameraViewModel implements IHealthInsuranceCardCameraView.ViewModel, Router
View model for HealthInsuranceCardCameraView
-
-
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 final HealthInsuranceCardScanner
scanner
-
Constructor Summary
Constructors Constructor Description HealthInsuranceCardCameraViewModel(HealthInsuranceCardScanner 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()
HealthInsuranceCardScanner
getScanner()
final Unit
pause()
Unit
onCancelClicked()
User wants to cancel snapping Unit
onFlashClicked()
User wants to change flash mode Unit
healthInsuranceCardScanned(FrameHandlerResult<EhicRecognitionResult, SdkLicenseError> result)
User have scanned Health Insurance Card final Unit
setFlashEnabled(Boolean flashEnabled)
Enables/Disables flash final Unit
setRecognitionParameters(EhicRecognizerParameters recognitionParameters)
-
-
Constructor Detail
-
HealthInsuranceCardCameraViewModel
HealthInsuranceCardCameraViewModel(HealthInsuranceCardScanner scanner)
-
-
Method Detail
-
getCameraOpened
<Error class: unknown class><Boolean> getCameraOpened()
-
getStopNewFrames
<Error class: unknown class><Boolean> getStopNewFrames()
-
getScanner
HealthInsuranceCardScanner getScanner()
-
onCancelClicked
Unit onCancelClicked()
User wants to cancel snapping
-
onFlashClicked
Unit onFlashClicked()
User wants to change flash mode
-
healthInsuranceCardScanned
Unit healthInsuranceCardScanned(FrameHandlerResult<EhicRecognitionResult, SdkLicenseError> result)
User have scanned Health Insurance Card
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Enables/Disables flash
-
setRecognitionParameters
final Unit setRecognitionParameters(EhicRecognizerParameters recognitionParameters)
-
-
-
-