CaptureFlowCoordinator

class CaptureFlowCoordinator(flowOwner: AppCompatActivity) : DefaultLifecycleObserver

Coordinator class that can be used to launch the Receipt Capture flow. This includes capturing receipt images, uploading the resulting images, and notifying a provided listener of flow progress.

This coordinator can be used from any AppCompatActivity.

Constructors

CaptureFlowCoordinator
Link copied to clipboard
fun CaptureFlowCoordinator(flowOwner: AppCompatActivity)

Types

CaptureFlowListener
Link copied to clipboard
interface CaptureFlowListener
An interface defining an object that can receive capture flow progress updates
Companion
Link copied to clipboard
object Companion

Functions

activate
Link copied to clipboard
fun activate()
Register this class for being able to launch and handle capture instances
deactivate
Link copied to clipboard
fun deactivate()
Unregister this class for being able to launch and handle capture instances
launchCaptureFlow
Link copied to clipboard
fun launchCaptureFlow(listener: CaptureFlowCoordinator.CaptureFlowListener, config: CaptureConfig? = null, externalAccountTransactionId: String? = null, documentType: DocumentType = DocumentType.RECEIPT): Boolean
Launch the capture flow.
onCreate
Link copied to clipboard
open override fun onCreate(owner: LifecycleOwner)
onDestroy
Link copied to clipboard
open override fun onDestroy(owner: LifecycleOwner)
onPause
Link copied to clipboard
open override fun onPause(@NonNull() p0: LifecycleOwner)
onResume
Link copied to clipboard
open override fun onResume(@NonNull() p0: LifecycleOwner)
onStart
Link copied to clipboard
open override fun onStart(@NonNull() p0: LifecycleOwner)
onStop
Link copied to clipboard
open override fun onStop(@NonNull() p0: LifecycleOwner)