CaptureFlowCoordinator

class CaptureFlowCoordinator(flowOwner: AppCompatActivity) : LifecycleObserver

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

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 = CaptureConfig.defaultConfig, externalAccountTransactionId: String? = null): Boolean
Launch the capture flow.