CaptureStandaloneActivity

class CaptureStandaloneActivity : SbBaseActivity, ReceiptCaptureFragment.Listener, ReceiptPreviewFragment.Listener, ReceiptCaptureFragment.ReceiptFileCreator, ReceiptCroppingFragment.Listener, CapturePermissionsFragment.Listener, CameraErrorFragment.Listener

Single Entry Point into the sensibill-capture-standalone module, and Activity that directs the receipt capture flow.

This Activity is intended to be used for result. This Activity will direct the process of capturing one or more receipt images, and provide access to the resulting captured images via BareCapturedReceiptData.

Inputs

Results Result Activity.RESULT_OK:

Result Activity.RESULT_CANCELED:

  • Result Data: NONE.

  • Result Conditions: The user exited the flow before capturing CaptureConfig.maxImages receipts. Any files pertaining to images that were captured before the flow was cancelled will be deleted.

NOTE: For security reasons, please ensure to call BareCapturedReceiptData.cleanup once the resulting images from this Activity have been processed. This ensures that the images do not remain on the device longer than necessary.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion