public class TextDataScannerView implements ITextDataScannerView
Represents camera view for Data Scanner aka GenericTextRecognizer screen of the application
public static io.scanbot.sdk.ui.view.generictext.TextDataScannerView.Companion Companion
public TextDataScannerView(@NotNull
android.content.Context context,
@NotNull
android.util.AttributeSet attrs)
Represents camera view for Data Scanner aka GenericTextRecognizer screen of the application
public void setGenericTextRecognizer(@NotNull
io.scanbot.sdk.generictext.GenericTextRecognizer recognizer)
Sets an instance of GenericTextRecognizer to be used with that view
protected void onAttachedToWindow()
protected void onDetachedFromWindow()
public void setListener(@NotNull
io.scanbot.sdk.ui.view.generictext.ITextDataScannerView.Listener listener)
listener - which will receive callbacks on user interactions.public void updateState(@NotNull
io.scanbot.sdk.ui.view.generictext.ITextDataScannerView.State newState)
public boolean handle(@NotNull
io.scanbot.sdk.camera.FrameHandlerResult<io.scanbot.sdk.generictext.GenericTextRecognitionResult,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 - CameraModule