public class TextDataScannerPresenter
Presenter for class TextDataScannerView
class TextDataScannerView@NotNull public static java.lang.String NAVIGATE_CANCEL_SNAPPING
@NotNull public static java.lang.String NAVIGATE_CANCEL_LICENSE_INVALID
@NotNull public static java.lang.String NAVIGATE_CAMERA_PERMISSION_SETTINGS
@NotNull public static java.lang.String NAVIGATE_REQUEST_CAMERA_PERMISSION
public static io.scanbot.sdk.ui.view.generictext.TextDataScannerPresenter.Companion Companion
@Inject
public TextDataScannerPresenter(@Nullable
io.scanbot.sdk.ui.view.interactor.CheckCameraPermissionUseCase checkCameraPermissionUseCase,
@NotNull
io.scanbot.sdk.ui.utils.navigator.Navigator navigator)
Presenter for class TextDataScannerView
class TextDataScannerViewpublic void resume(@NotNull
ITextDataScannerView view)
public void pause()
public void onActivateCameraPermission()
User wants to activate camera permission
public void onCancelClicked()
User wants to cancel snapping
public void onFlashClicked()
User wants to change flash mode
public void genericTextScanned(@NotNull
io.scanbot.sdk.camera.FrameHandlerResult<io.scanbot.sdk.generictext.GenericTextRecognitionResult,io.scanbot.sdk.SdkLicenseError> result)
New frame was processed with generic recognizer
result - GenericTextRecognitionResult with scanned datapublic void cameraPermissionGranted()
User accepted camera permission
public void cameraPermissionDenied()
User denied camera permission
public void setFlashEnabled(boolean flashEnabled)
Enables/Disables flash
public void setStep(@NotNull
TextDataScannerStep step)
Allows to set the current step after openeing the screen
@Nullable public io.scanbot.sdk.ui.view.interactor.CheckCameraPermissionUseCase getCheckCameraPermissionUseCase()
public void setCheckCameraPermissionUseCase(@Nullable
io.scanbot.sdk.ui.view.interactor.CheckCameraPermissionUseCase p)