Package io.scanbot.sdk.ui.view.check
Class CheckCameraView
-
- 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.check.ICheckRecognizerView
public final class CheckCameraView extends FrameLayout implements ICheckRecognizerView
Represents camera view for Medical Certificate recognizer aka McScanner screen of the application
-
-
Field Summary
Fields Modifier and Type Field Description private IAutoSnappingController.Callback
snappingCallback
-
Constructor Summary
Constructors Constructor Description CheckCameraView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description final IAutoSnappingController.Callback
getSnappingCallback()
final Unit
setSnappingCallback(IAutoSnappingController.Callback snappingCallback)
Unit
attachViewModel(ICheckRecognizerView.ViewModel viewModel)
Unit
attachPermissionViewModel(IPermissionViewModel viewModel)
Unit
setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode Unit
setCameraModule(CameraModule cameraModule)
Set camera module final Unit
setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
-
-
Constructor Detail
-
CheckCameraView
CheckCameraView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getSnappingCallback
final IAutoSnappingController.Callback getSnappingCallback()
-
setSnappingCallback
final Unit setSnappingCallback(IAutoSnappingController.Callback snappingCallback)
-
attachViewModel
Unit attachViewModel(ICheckRecognizerView.ViewModel viewModel)
- Parameters:
viewModel
- which will receive callbacks on user interactions.
-
attachPermissionViewModel
Unit attachPermissionViewModel(IPermissionViewModel viewModel)
- Parameters:
viewModel
- which will handle permissions
-
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
-
setCameraPreviewMode
final Unit setCameraPreviewMode(CameraPreviewMode cameraPreviewMode)
-
-
-
-