initScanningBehavior

open override fun initScanningBehavior(documentScanner: DocumentScanner, documentScannerResultHandler: DocumentScannerFrameHandler.ResultHandler?, callback: IDocumentScannerViewCallback?)

This should be called as soon as you have an instance of the document scanner. It is recommended to call it in onCreate of the Activity