Package io.scanbot.sdk.ui.view.camera
Class DocumentScannerCameraView
-
- 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 DocumentScannerCameraView extends FrameLayout implements ICameraView
Represents camera view.
-
-
Field Summary
Fields Modifier and Type Field Description private String
pageText
private String
pageTextContentDescription
private String
hintTooDark
private String
hintTooNoisy
private String
hintNothingDetected
private String
hintBadAspectRatio
private String
hintBadAngles
private String
hintTooSmall
private String
hintOffCenter
private String
hintDontMove
private <Error class: unknown class>
binding
private <Error class: unknown class>
permissionBinding
-
Constructor Summary
Constructors Constructor Description DocumentScannerCameraView(Context context, AttributeSet attrs)
-
Method Summary
-
-
Constructor Detail
-
DocumentScannerCameraView
DocumentScannerCameraView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getPageText
final String getPageText()
-
setPageText
final Unit setPageText(String pageText)
-
getPageTextContentDescription
final String getPageTextContentDescription()
-
setPageTextContentDescription
final Unit setPageTextContentDescription(String pageTextContentDescription)
-
getHintTooDark
final String getHintTooDark()
-
setHintTooDark
final Unit setHintTooDark(String hintTooDark)
-
getHintTooNoisy
final String getHintTooNoisy()
-
setHintTooNoisy
final Unit setHintTooNoisy(String hintTooNoisy)
-
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)
-
getHintOffCenter
final String getHintOffCenter()
-
setHintOffCenter
final Unit setHintOffCenter(String hintOffCenter)
-
getHintDontMove
final String getHintDontMove()
-
setHintDontMove
final Unit setHintDontMove(String hintDontMove)
-
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
-
-
-
-