Package io.scanbot.sdk.ui.view.camera
Class FinderDocumentScannerCameraView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,io.scanbot.sdk.ui.view.camera.ICameraView
public final class FinderDocumentScannerCameraView extends FrameLayout implements ICameraView
Represents camera view fith finder.
-
-
Field Summary
Fields Modifier and Type Field Description private String
hintTooDark
private String
hintTooNoisy
private String
hintOffCenter
private String
hintNothingDetected
private String
hintBadAspectRatio
private String
hintBadAngles
private String
hintTooSmall
private String
hintDontMove
private Boolean
polygonViewEnabled
private Boolean
finderViewEnabled
private Boolean
lockDocumentAspectRatioToFinder
private <Error class: unknown class>
binding
private <Error class: unknown class>
permissionBinding
-
Constructor Summary
Constructors Constructor Description FinderDocumentScannerCameraView(Context context, AttributeSet attrs)
-
Method Summary
-
-
Constructor Detail
-
FinderDocumentScannerCameraView
FinderDocumentScannerCameraView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getHintTooDark
final String getHintTooDark()
-
setHintTooDark
final Unit setHintTooDark(String hintTooDark)
-
getHintTooNoisy
final String getHintTooNoisy()
-
setHintTooNoisy
final Unit setHintTooNoisy(String hintTooNoisy)
-
getHintOffCenter
final String getHintOffCenter()
-
setHintOffCenter
final Unit setHintOffCenter(String hintOffCenter)
-
getHintNothingDetected
final String getHintNothingDetected()
-
setHintNothingDetected
final Unit setHintNothingDetected(String hintNothingDetected)
-
getHintBadAspectRatio
final String getHintBadAspectRatio()
-
setHintBadAspectRatio
final Unit setHintBadAspectRatio(String hintBadAspectRatio)
-
getHintBadAngles
final String getHintBadAngles()
-
setHintBadAngles
final Unit setHintBadAngles(String hintBadAngles)
-
getHintTooSmall
final String getHintTooSmall()
-
setHintTooSmall
final Unit setHintTooSmall(String hintTooSmall)
-
getHintDontMove
final String getHintDontMove()
-
setHintDontMove
final Unit setHintDontMove(String hintDontMove)
-
getPolygonViewEnabled
final Boolean getPolygonViewEnabled()
-
setPolygonViewEnabled
final Unit setPolygonViewEnabled(Boolean polygonViewEnabled)
-
getFinderViewEnabled
final Boolean getFinderViewEnabled()
-
setFinderViewEnabled
final Unit setFinderViewEnabled(Boolean finderViewEnabled)
-
getLockDocumentAspectRatioToFinder
final Boolean getLockDocumentAspectRatioToFinder()
-
setLockDocumentAspectRatioToFinder
final Unit setLockDocumentAspectRatioToFinder(Boolean lockDocumentAspectRatioToFinder)
-
getBinding
final <Error class: unknown class> getBinding()
-
setBinding
final Unit )>setBinding(<Error class: unknown class> binding)
-
getPermissionBinding
final <Error class: unknown class> getPermissionBinding()
-
setPermissionBinding
final Unit )>setPermissionBinding(<Error class: unknown class> permissionBinding)
-
initCameraView
final Unit initCameraView(CameraUiSettings cameraUiSettings)
-
attachViewModel
Unit attachViewModel(ICameraView.ViewModel viewModel)
- Parameters:
viewModel
- which will receive callbacks on user interactions.
-
attachPermissionViewModel
Unit attachPermissionViewModel(IPermissionViewModel viewModel)
- Parameters:
viewModel
- which will handle permissions.
-
setCameraPreviewMode
Unit setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
Sets camera preview mode.
- Parameters:
cameraPreviewMode
- CameraPreviewMode.FILL_IN or CameraPreviewMode.FIT_IN
-
setCameraOrientationMode
Unit setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode.
- Parameters:
cameraOrientationMode
- CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAIT
-
setCameraModule
Unit setCameraModule(CameraModule cameraModule)
Set camera module.
- Parameters:
cameraModule
- one of the supported modes - CameraModule
-
-
-
-