public class MRZCameraView implements IMRZCameraView
Represents camera view for MRZ scanner.
public MRZCameraView(@NotNull
android.content.Context context,
@NotNull
android.util.AttributeSet attrs)
Represents camera view for MRZ scanner.
public boolean getSingleCodeScanningMode()
public void setSingleCodeScanningMode(boolean p)
@NotNull public io.scanbot.sdk.ui.base.databinding.ScanbotSdkCameraViewPermissionPlaceholderBinding getPermissionBinding()
public void setPermissionBinding(@NotNull
io.scanbot.sdk.ui.base.databinding.ScanbotSdkCameraViewPermissionPlaceholderBinding p)
@NotNull public io.scanbot.sdk.ui.mrz.databinding.ScanbotSdkMrzCameraViewBinding getCameraBinding()
public void setCameraBinding(@NotNull
io.scanbot.sdk.ui.mrz.databinding.ScanbotSdkMrzCameraViewBinding p)
@LayoutRes protected int getLayoutRes()
public void setMrzScanner(@NotNull
io.scanbot.sdk.mrzscanner.MRZScanner scanner)
Sets an instance of Mrz scanner to be used with that view
protected void onDetachedFromWindow()
public void setListener(@NotNull
io.scanbot.sdk.ui.view.mrz.IMRZCameraView.Listener listener)
listener - which will receive callbacks on user interactions.public void updateState(@NotNull
io.scanbot.sdk.ui.view.mrz.IMRZCameraView.State newState)
public boolean handle(@NotNull
io.scanbot.sdk.camera.FrameHandlerResult<io.scanbot.mrzscanner.model.MRZRecognitionResult,io.scanbot.sdk.SdkLicenseError> result)
public void setCameraOrientationMode(@NotNull
io.scanbot.sdk.ui.view.base.configuration.CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode
cameraOrientationMode - CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAITpublic void setCameraModule(@NotNull
io.scanbot.sdk.camera.CameraModule cameraModule)
Set camera module
cameraModule - one of the supported modes - CameraModuleprotected void updateCameraPermissionView(boolean cameraPermissionGranted)