onCancel Function

open fun onCancel(page: Int, words: Int): Boolean

Asked periodically whether recognition should stop.

Return

true to cancel recognition, false to let it continue

Parameters

  • page — the page being recognised, counting from zero
  • words — how many words have been recognised so far
Top