Package io.scanbot.sdk.ui.view.mrz
Class MRZCameraView
-
- 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.camera.BaseResultHandler
,io.scanbot.sdk.mrzscanner.MRZScannerFrameHandler.ResultHandler
,io.scanbot.sdk.ui.view.mrz.IMRZCameraView
public class MRZCameraView extends FrameLayout implements IMRZCameraView, MRZScannerFrameHandler.ResultHandler
Represents camera view for MRZ scanner.
-
-
Field Summary
Fields Modifier and Type Field Description private IMRZCameraView.ViewModel
cameraViewModel
private IPermissionViewModel
permissionViewModel
private final <Error class: unknown class>
cameraBinding
private final <Error class: unknown class>
permissionBinding
private final <Error class: unknown class>
descriptionBinding
-
Constructor Summary
Constructors Constructor Description MRZCameraView(Context context, AttributeSet attrs)
-
Method Summary
-
-
Constructor Detail
-
MRZCameraView
MRZCameraView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getCameraViewModel
final IMRZCameraView.ViewModel getCameraViewModel()
-
setCameraViewModel
final Unit setCameraViewModel(IMRZCameraView.ViewModel cameraViewModel)
-
getPermissionViewModel
final IPermissionViewModel getPermissionViewModel()
-
setPermissionViewModel
final Unit setPermissionViewModel(IPermissionViewModel permissionViewModel)
-
getCameraBinding
final <Error class: unknown class> getCameraBinding()
-
getPermissionBinding
final <Error class: unknown class> getPermissionBinding()
-
getDescriptionBinding
final <Error class: unknown class> getDescriptionBinding()
-
attachViewModel
Unit attachViewModel(IMRZCameraView.ViewModel viewModel)
- Parameters:
viewModel
- which will receive callbacks on user interactions.
-
attachPermissionViewModel
Unit attachPermissionViewModel(IPermissionViewModel viewModel)
- Parameters:
viewModel
- which will receive callbacks on user interactions with permission view.
-
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)
-
handle
Boolean handle(FrameHandlerResult<MRZGenericDocument, SdkLicenseError> result)
Called every time contour detection was performed on a frame.
- Parameters:
result
- information about detection results on a single frame
-
initCameraView
final Unit initCameraView(CameraUiSettings cameraUiSettings)
-
-
-
-