public class MultiPageImageCaptureScenario
Provides access to the multipage image capture scenario management.
This class helps to easily integrate the image capture technology into your application and manage the scenario when more than one image has to be captured.
An instance of this class is created via the build method of the class MultiPageImageCaptureScenario.Builder
.
@MainThread public void start()
Starts the multipage image capture scenario execution.
This method can be called before the camera launch. In this case scenario will start simultaneously with the camera.
Note: The scenario is started automatically by default. If you want to delay the start, use the stop method to stop the automatically started scenario and then start it with start method.
@MainThread public void stop()
Stops automatic and manual capture and releases the resources.
@MainThread public void closeView()
Stops capture process and calls onClose method of the interface MultiPageImageCaptureScenario.Callback
interface.
@MainThread public void setAutoCaptureEnabled(boolean isEnabled)
Enables the real-time capture from the camera preview. If the auto-capture mode is disabled, the image should be captured manually.
isEnabled
- Set true to enable the automatic capture from the camera preview and false to enable manualcapture mode.@MainThread public void setShowPreviewEnabled(boolean isShowPreviewEnabled)
Enables and disables image preview after capture.
@MainThread public void setCallback(@Nullable com.abbyy.mobile.uicomponents.scenario.MultiPageImageCaptureScenario.Callback callback)
Sets the callback object for current multipage image capture scenario.
@MainThread @NotNull public com.abbyy.mobile.uicomponents.scenario.MultiPageImageCaptureScenario.Result getResult()
Provides access to the result, represented by an internal class MultiPageImageCaptureScenario.Result
object.
class MultiPageImageCaptureScenario.Result
object, providing access to the captured images.class MultiPageImageCaptureScenario.Result
public void onImageCaptured(@NotNull com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.Result result)