Package io.scanbot.sdk.ui.view.camera
Interface ICameraView.ViewModel
-
- All Implemented Interfaces:
public interface ICameraView.ViewModel
Notified about user interactions.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onCameraOpened()
Camera has been opened. abstract Unit
onCancelClicked()
User wants to cancel snapping. abstract Unit
onLicenseInvalid()
License is now invalid. abstract Unit
onAutoSnappingClicked()
User wants to change auto snapping mode. abstract Unit
onMultiPageClicked()
User wants to change multi page mode. abstract Unit
onFlashClicked()
User wants to change flash mode. abstract Unit
onSavePagesClicked()
User wants to snapped pages. abstract Unit
onFinishCurrentState()
Triggered when the signal to finish was received from outside. abstract Unit
pageSnapped(ByteArray image, CaptureInfo captureInfo)
User have snapped an image. abstract Unit
setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)
Sets flag which enables/disables BadAspectRatio detection ignoring. abstract Unit
updateDetectionStatus(DocumentDetectionStatus status)
Update status of polygon detection from contour detector. abstract ContourDetector
getScanner()
abstract Boolean
getShutterButtonHidden()
abstract Unit
setShutterButtonHidden(Boolean shutterButtonHidden)
abstract Integer
getHardwareButtonKeyCode()
abstract Unit
setHardwareButtonKeyCode(Integer hardwareButtonKeyCode)
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><List<Page>>
getSnappedPages()
abstract <Error class: unknown class><Boolean>
getForceUserGuidance()
abstract <Error class: unknown class><List<AspectRatio>>
getRequiredAspectRatio()
abstract <Error class: unknown class><Boolean>
getAutoSnapping()
abstract <Error class: unknown class><DocumentDetectionStatus>
getDetectionStatus()
abstract <Error class: unknown class><Boolean>
getShutterSoundEnabled()
abstract <Error class: unknown class><Boolean>
getPictureProcessing()
abstract <Error class: unknown class><Boolean>
getMultiPage()
abstract <Error class: unknown class><Boolean>
getIgnoreBadAspectRatio()
abstract <Error class: unknown class><Integer>
getSnappedPagesCount()
abstract <Error class: unknown class><ParametricFilter>
getParametricFilter()
abstract <Error class: unknown class><Float>
getAutosnapSensitivity()
abstract <Error class: unknown class><Unit>
getSnapEvent()
-
-
Method Detail
-
onCameraOpened
abstract Unit onCameraOpened()
Camera has been opened.
-
onCancelClicked
abstract Unit onCancelClicked()
User wants to cancel snapping.
-
onLicenseInvalid
abstract Unit onLicenseInvalid()
License is now invalid.
-
onAutoSnappingClicked
abstract Unit onAutoSnappingClicked()
User wants to change auto snapping mode.
-
onMultiPageClicked
abstract Unit onMultiPageClicked()
User wants to change multi page mode.
-
onFlashClicked
abstract Unit onFlashClicked()
User wants to change flash mode.
-
onSavePagesClicked
abstract Unit onSavePagesClicked()
User wants to snapped pages.
-
onFinishCurrentState
abstract Unit onFinishCurrentState()
Triggered when the signal to finish was received from outside.
-
pageSnapped
abstract Unit pageSnapped(ByteArray image, CaptureInfo captureInfo)
User have snapped an image.
- Parameters:
image
- snapped imagecaptureInfo
- additional information about the picture
-
setIgnoreBadAspectRatio
abstract Unit setIgnoreBadAspectRatio(Boolean ignoreBadAspectRatio)
Sets flag which enables/disables BadAspectRatio detection ignoring. Default value is
false
.
-
updateDetectionStatus
abstract Unit updateDetectionStatus(DocumentDetectionStatus status)
Update status of polygon detection from contour detector.
-
getScanner
abstract ContourDetector getScanner()
-
getShutterButtonHidden
abstract Boolean getShutterButtonHidden()
-
setShutterButtonHidden
abstract Unit setShutterButtonHidden(Boolean shutterButtonHidden)
-
getHardwareButtonKeyCode
abstract Integer getHardwareButtonKeyCode()
-
setHardwareButtonKeyCode
abstract Unit setHardwareButtonKeyCode(Integer hardwareButtonKeyCode)
-
getCameraOpened
abstract <Error class: unknown class><Boolean> getCameraOpened()
-
getStopNewFrames
abstract <Error class: unknown class><Boolean> getStopNewFrames()
-
getSnappedPages
abstract <Error class: unknown class><List<Page>> getSnappedPages()
-
getForceUserGuidance
abstract <Error class: unknown class><Boolean> getForceUserGuidance()
-
getRequiredAspectRatio
abstract <Error class: unknown class><List<AspectRatio>> getRequiredAspectRatio()
-
getAutoSnapping
abstract <Error class: unknown class><Boolean> getAutoSnapping()
-
getDetectionStatus
abstract <Error class: unknown class><DocumentDetectionStatus> getDetectionStatus()
-
getShutterSoundEnabled
abstract <Error class: unknown class><Boolean> getShutterSoundEnabled()
-
getPictureProcessing
abstract <Error class: unknown class><Boolean> getPictureProcessing()
-
getMultiPage
abstract <Error class: unknown class><Boolean> getMultiPage()
-
getIgnoreBadAspectRatio
abstract <Error class: unknown class><Boolean> getIgnoreBadAspectRatio()
-
getSnappedPagesCount
abstract <Error class: unknown class><Integer> getSnappedPagesCount()
-
getParametricFilter
abstract <Error class: unknown class><ParametricFilter> getParametricFilter()
-
getAutosnapSensitivity
abstract <Error class: unknown class><Float> getAutosnapSensitivity()
-
getSnapEvent
abstract <Error class: unknown class><Unit> getSnapEvent()
-
-
-
-