Interface ILicensePlateCameraView.ViewModel
-
- All Implemented Interfaces:
public interface ILicensePlateCameraView.ViewModelStore view state and transport user interactions to it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumILicensePlateCameraView.ViewModel.ConfirmationStateEnum represents state of result confirmation dialog state for correct acting on it in view.
-
Method Summary
Modifier and Type Method Description abstract UnitonCancelClicked()User wants to cancel snapping. abstract UnitonFlashClicked()User wants to change flash mode. abstract UnitonResultConfirmationPending()User was shown scanning result confirmation dialogue and we are waiting for his response. abstract UnitonConfirmationRemoved()View has removed confirmation dialog (to restart scanning), preview resumed. abstract UnitonRestartScanning()Scanning result confirmation dialogue finished. abstract UnitonCleanRecognitionQueue()Allows to clean the accumulated frames inside the recognizer. abstract UnitlicensePlateScanned(FrameHandlerResult<LicensePlateScanResult, SdkLicenseError> result)New frame was processed with license plate scanner abstract LicensePlateScannergetScanner()abstract <Error class: unknown class><Boolean>getCameraOpened()abstract <Error class: unknown class><Boolean>getStopNewFrames()abstract <Error class: unknown class><Boolean>getFlash()abstract <Error class: unknown class><ILicensePlateCameraView.ViewModel.ConfirmationState>getConfirmationState()-
-
Method Detail
-
onCancelClicked
abstract Unit onCancelClicked()
User wants to cancel snapping.
-
onFlashClicked
abstract Unit onFlashClicked()
User wants to change flash mode.
-
onResultConfirmationPending
abstract Unit onResultConfirmationPending()
User was shown scanning result confirmation dialogue and we are waiting for his response.
-
onConfirmationRemoved
abstract Unit onConfirmationRemoved()
View has removed confirmation dialog (to restart scanning), preview resumed. ViewModel is now to adjust its state accordingly.
-
onRestartScanning
abstract Unit onRestartScanning()
Scanning result confirmation dialogue finished.
-
onCleanRecognitionQueue
abstract Unit onCleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. Should be called if reusing the instance after getting the successful result
-
licensePlateScanned
abstract Unit licensePlateScanned(FrameHandlerResult<LicensePlateScanResult, SdkLicenseError> result)
New frame was processed with license plate scanner
- Parameters:
result- LicensePlateScanResult with scanned data
-
getScanner
abstract LicensePlateScanner getScanner()
-
getCameraOpened
abstract <Error class: unknown class><Boolean> getCameraOpened()
-
getStopNewFrames
abstract <Error class: unknown class><Boolean> getStopNewFrames()
-
getConfirmationState
abstract <Error class: unknown class><ILicensePlateCameraView.ViewModel.ConfirmationState> getConfirmationState()
-
-
-
-