BareCapturedReceiptData

Serializable class representing a captured receipt.

Contains the bitmaps representing the cropped (if applicable) and uncropped receipts.

The appropriate final receipt file to use can be fetched using receiptFile. When finished with this class, it should be cleaned up with cleanup. This will delete the receipt image files.

Properties

Link copied to clipboard

The file representing the final receipt. This will be a file referencing the cropped receipt if it exists, otherwise it will be the uncropped receipt image.

Functions

Link copied to clipboard
open fun cleanup()

Delete all receipt image files contained within this object

Link copied to clipboard

If there are multiple files in this class representing the receipt, delete all but the file representing the final receipt.