Package io.scanbot.sdk.ui.view.vin
Class VinScannerViewModel
-
- All Implemented Interfaces:
-
io.scanbot.sdk.ui.utils.Router
,io.scanbot.sdk.ui.view.vin.IVinScannerCameraView.ViewModel
public final class VinScannerViewModel implements IVinScannerCameraView.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 final VinScanner
scanner
-
Constructor Summary
Constructors Constructor Description VinScannerViewModel(VinScanner 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()
VinScanner
getScanner()
Unit
onFlashClicked()
User wants to change flash mode. Unit
onCancelClicked()
User wants to cancel snapping. final Unit
setFlashEnabled(Boolean flashEnabled)
Toggles flash. final Unit
pause()
Unit
vinScanned(FrameHandlerResult<VinScanResult, SdkLicenseError> result)
New frame was processed with VIN scanner. -
-
Constructor Detail
-
VinScannerViewModel
VinScannerViewModel(VinScanner scanner)
-
-
Method Detail
-
getCameraOpened
<Error class: unknown class><Boolean> getCameraOpened()
-
getStopNewFrames
<Error class: unknown class><Boolean> getStopNewFrames()
-
getScanner
VinScanner getScanner()
-
onFlashClicked
Unit onFlashClicked()
User wants to change flash mode.
-
onCancelClicked
Unit onCancelClicked()
User wants to cancel snapping.
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Toggles flash.
-
vinScanned
Unit vinScanned(FrameHandlerResult<VinScanResult, SdkLicenseError> result)
New frame was processed with VIN scanner.
- Parameters:
result
- VinScanResult with scanned data
-
-
-
-