This page covers the description of available scenarios
Scenario is the main setting for Document Reader SDK. It controls all scanning process of Core framework. Depending on the selected scenario, Core works in different ways. The set of available scenarios is different for each Core type. The following part of code allows to get all available scenarios (should be used after initialization is completed):
// getting current processing scenarioString currentScenario =DocumentReader.Instance().processParams().scenario;// list of available scenariosArrayList<String> scenarios =newArrayList<>();for(DocumentReaderScenario scenario :DocumentReader.Instance().availableScenarios){scenarios.add(scenario.name);}
// getting current processing scenariovar currentScenario: String? = DocumentReader.Instance().processParams().scenario// list of available scenariosval scenarios =ArrayList<String>()for (scenario in DocumentReader.Instance().availableScenarios) { scenarios.add(scenario.name)}
DocumentReaderScenario class contains two main properties:
name - name of a scenario, use this value to set scenario for Document Reader SDK.
description - brief description of the scenario functionality and usage.