DocumentReaderCompletion typedef

DocumentReaderCompletion = void Function(DocReaderAction action, Results? results, DocReaderException? error)

Callback for receiving answer from processing engine.

action defines current processing status.

results defines current processing results.

error in case of anything is wrong - brief message for developer, null otherwise.

Implementation

typedef DocumentReaderCompletion = void Function(
  DocReaderAction action,
  Results? results,
  DocReaderException? error,
);