Package

## Interface ImageCaptureScenario.Callback

-     public interface ImageCaptureScenario.Callback

  The callback for ImageCaptureScenario. 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.

- - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Unit` | `onImageCaptured(ImageCaptureScenario.Result result)` | Delivers the result if the image was captured successfully.
    `abstract Unit` | `onError(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.

    - ### Methods inherited from class com.abbyy.mobile.uicomponents.scenario.ImageCaptureScenario.Callback

      `equals, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### onImageCaptured

          @MainThread() abstract Unit onImageCaptured(ImageCaptureScenario.Result result)

      Delivers the result if the image was captured successfully.

      Parameters:
        `result` - The result of the capture scenario, represented by the Result object.

    - #### onError

          @MainThread() abstract Unit onError(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.

      Parameters:
        `exception` - The Exception object for the error that has occurred.