launchCaptureFlow

fun launchCaptureFlow(listener: CaptureFlowCoordinator.CaptureFlowListener, config: CaptureConfig? = null, externalAccountTransactionId: String? = null, documentType: DocumentType = DocumentType.RECEIPT): Boolean

Launch the capture flow.

Please note that if providing an externalAccountTransactionId for the transaction linking flow, CaptureConfig.maxImages must be set to 1.

Return

true if the capture flow was launched, false if another capture flow is already running

Parameters

listener

A listener that will be provided with capture flow updates

config

The configuration to use for the capture flow, if null is provided the default config for the current documentType will be used.

documentType

The document type for which to launch capture for

externalAccountTransactionId

The external account transaction id associated with this capture flow, if any