com.abbyy.mobile.rtr

## Interface IDataCaptureCoreAPI.Callback

- Enclosing interface:
    IDataCaptureCoreAPI

      public static interface IDataCaptureCoreAPI.Callback

  Callback for data capture methods.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onError(java.lang.Exception error)` Reports an error.
    `boolean` | `onProgress(int percentage, IDataCaptureCoreAPI.Warning warning)` Approximate progress of the operation.
    `void` | `onTextOrientationDetected(int angle)` Text orientation is detected.

- - ### Method Detail

    - #### onProgress

          boolean onProgress(int percentage,
                             IDataCaptureCoreAPI.Warning warning)

      Approximate progress of the operation.
      Parameters:
        `percentage` - The percentage of the current work that has already been done. It is in the range from 0 to 100.
        `warning` - A warning reported. Perhaps something should be corrected
      Returns:
        `true` if the recognition process should be terminated; `false`, otherwise.

    - #### onTextOrientationDetected

          void onTextOrientationDetected(int angle)

      Text orientation is detected.

      In the current implementation the result is always returned in normalized coordinates (rotated to normal text orientation)

      Parameters:
        `angle` - The angle in degrees (0, 90, 180, 270) for the detected text orientation

    - #### onError

          void onError(java.lang.Exception error)

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