Code samples
This page contains useful use-cases of Document Reader SDK
Handling sessions in the multipage processing mode
override fun onResume() {
super.onResume()
// set setManualMultipageMode to true and multipageProcessing to false
DocumentReader.Instance().functionality().edit().setManualMultipageMode(true).apply()
DocumentReader.Instance().processParams().multipageProcessing = false
DocumentReader.Instance().startNewSession()
showScanner()
}
private fun showScanner() {
DocumentReader.Instance().showScanner(this@MainActivity) { action, results, error ->
if (action == DocReaderAction.COMPLETE) {
if (results.morePagesAvailable != 0) {
DocumentReader.Instance().startNewPage()
showScanner()
}
}
}
}Last updated