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>cameraOpenedprivate final <Error class: unknown class><Boolean>stopNewFramesprivate final <Error class: unknown class><Boolean>flashprivate final HealthInsuranceCardScannerscanner
-
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()HealthInsuranceCardScannergetScanner()final Unitpause()UnitonCancelClicked()User wants to cancel snapping UnitonFlashClicked()User wants to change flash mode UnithealthInsuranceCardScanned(FrameHandlerResult<EuropeanHealthInsuranceCardRecognitionResult, SdkLicenseError> result)User have scanned Health Insurance Card final UnitsetFlashEnabled(Boolean flashEnabled)Enables/Disables flash final UnitsetConfiguration(EuropeanHealthInsuranceCardRecognizerConfiguration configuration)-
-
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<EuropeanHealthInsuranceCardRecognitionResult, SdkLicenseError> result)
User have scanned Health Insurance Card
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Enables/Disables flash
-
setConfiguration
final Unit setConfiguration(EuropeanHealthInsuranceCardRecognizerConfiguration configuration)
-
-
-
-