Interface ILicensePlateCameraView.ViewModel
-
- All Implemented Interfaces:
public interface ILicensePlateCameraView.ViewModel
Store view state and transport user interactions to it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ILicensePlateCameraView.ViewModel.ConfirmationState
Enum represents state of result confirmation dialog state for correct acting on it in view.
-
Method Summary
Modifier and Type Method Description abstract Unit
onCancelClicked()
User wants to cancel snapping. abstract Unit
onFlashClicked()
User wants to change flash mode. abstract Unit
onResultConfirmationPending()
User was shown scanning result confirmation dialogue and we are waiting for his response. abstract Unit
onConfirmationRemoved()
View has removed confirmation dialog (to restart scanning), preview resumed. abstract Unit
onRestartScanning()
Scanning result confirmation dialogue finished. abstract Unit
onCleanRecognitionQueue()
Allows to clean the accumulated frames inside the recognizer. abstract Unit
licensePlateScanned(FrameHandlerResult<LicensePlateScanResult, SdkLicenseError> result)
New frame was processed with license plate scanner abstract LicensePlateScanner
getScanner()
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()
-
-
-
-