scan method

void scan(
  1. ScannerConfig config,
  2. DocumentReaderCompletion completion
)

Used for multiple frames processing which are captured from the camera.

config - scanning configuration.

completion - block to execute after the recognition process finishes.

Implementation

void scan(ScannerConfig config, DocumentReaderCompletion completion) {
  _setDocumentReaderCompletion(completion);
  _bridge.invokeMethod("scan", [config.toJson()]);
}