public static ImageCaptureScenario.Callback
The callback interface of the image capture scenario. In case the image was captured successfully, the result image and the document boundaries on it are returned. Otherwise the callback will return the information about the occurred error. This interface and its methods are to be implemented on the client side.
@MainThread void onImageCaptured(@NotNull com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.Result result)
Delivers the result if the image was captured successfully.
result
- The result of the capture scenario, represented by the class ImageCaptureScenario.Result
object.@MainThread void onError(@NotNull java.lang.Exception exception)
This method is to be implemented on the client side, which may include displaying the error description to the user or handling it otherwise.
exception
- The Exception object for the error that has occurred.