public class MRZCameraView implements IMRZCameraView
Represents camera view for MRZ scanner.
| Modifier and Type | Class and Description |
|---|---|
static class |
MRZCameraView.Companion |
IMRZCameraView.State| Modifier and Type | Field and Description |
|---|---|
static MRZCameraView.Companion |
Companion |
| Constructor and Description |
|---|
MRZCameraView(android.content.Context context,
android.util.AttributeSet attrs)
Represents camera view for MRZ scanner.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleResult(io.scanbot.mrzscanner.model.MRZRecognitionResult recognitionResult) |
void |
onDetachedFromWindow() |
void |
setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode
|
void |
setListener(IMRZCameraView.Listener listener) |
void |
updateState(IMRZCameraView.State newState) |
setCameraOrientationMode, setListenerupdateStatepublic static MRZCameraView.Companion Companion
public MRZCameraView(android.content.Context context,
android.util.AttributeSet attrs)
Represents camera view for MRZ scanner.
public void onDetachedFromWindow()
public void setListener(IMRZCameraView.Listener listener)
listener - which will receive callbacks on user interactions.public void updateState(IMRZCameraView.State newState)
public boolean handleResult(io.scanbot.mrzscanner.model.MRZRecognitionResult recognitionResult)
public void setCameraOrientationMode(CameraOrientationMode cameraOrientationMode)
Sets camera orientation mode
cameraOrientationMode - CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAIT