public class BarcodeCameraPresenter
Presenter for class BarcodeCameraView
class BarcodeCameraView@NotNull public static java.lang.String NAVIGATE_CANCEL_SNAPPING
@NotNull public static java.lang.String NAVIGATE_SNAPPING_TIMEOUT
@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.barcode.BarcodeCameraPresenter.Companion Companion
@Inject
public BarcodeCameraPresenter(@Nullable
io.scanbot.sdk.ui.view.interactor.CheckCameraPermissionUseCase checkCameraPermissionUseCase,
@NotNull
SaveBarcodeTakenPictureUseCase saveBarcodeTakenPictureUseCase,
@NotNull
SaveBarcodePreviewFrameUseCase saveBarcodePreviewFrameUseCase,
@NotNull
BarcodeScanningSession barcodeScanningSession,
@NotNull
io.scanbot.sdk.ui.utils.navigator.Navigator navigator)
Presenter for class BarcodeCameraView
class BarcodeCameraViewpublic void resume(@NotNull
IBarcodeCameraView view)
public void pause()
public void onCameraOpened()
Camera has been opened
public void onActivateCameraPermission()
User wants to activate camera permission
public void onCancelClicked()
User wants to cancel snapping
public void setAutoStopOnSuccess(boolean enabled)
Set if presenter need to stop snapping after first success
public void onFlashClicked()
User wants to change flash mode
public void barcodeScanned(@NotNull
io.scanbot.sdk.camera.FrameHandlerResult<io.scanbot.sdk.barcode.entity.BarcodeScanningResult,io.scanbot.sdk.SdkLicenseError> result)
User have scanned barcode
public void cameraPermissionGranted()
User accepted camera permission
public void cameraPermissionDenied()
User denied camera permission
public void pageSnapped(@NotNull
kotlin.Array[] image,
int imageOrientation)
User have snapped an image
image - snapped imageimageOrientation - snapped image orientationpublic void setFlashEnabled(boolean flashEnabled)
Enables/Disables flash
public void setAutoCancelTimeout(int timeoutInSeconds)
Sets auto close timer in seconds. 0 = disabled and it is the default value
public void setBarcodeImageGenerationType(@NotNull
BarcodeImageGenerationType barcodeImageGenerationType)
Set barcode image generation mode
barcodeImageGenerationType - Defines what kind of the image will be generated@Nullable public io.scanbot.sdk.ui.view.interactor.CheckCameraPermissionUseCase getCheckCameraPermissionUseCase()
public void setCheckCameraPermissionUseCase(@Nullable
io.scanbot.sdk.ui.view.interactor.CheckCameraPermissionUseCase p)