Developer's Documentation for free mobile OCR SDK

Documentation Menu

onProgress method of the TextRecognitionCallback interface

Reports the approximate percentage of operation completed and delivers the warnings that occurred during processing. Allows you to cancel processing.

note Note: This method is a part of an interface which is available only in the extended version of the library.

This method is to be implemented on the client side, which may include a progress indicator and/or a message to the user about the warnings.

boolean onProgress( int percentage, Warning warning )

Parameters

percentage

The approximate percentage of the work currently done. This parameter is in the range from 0 to 100.

warning

The warning which occurred, if any; represented by a constant of the Warning enumeration.

Return values

The method should return true if you wish to terminate the current operation, false otherwise.