scan

fun scan(activity: ComponentActivity, scanCallback: (Bitmap) -> Unit)

Initiates the process of scanning a physical receipt and returns the receipt ID.

This function initiates the process of scanning a physical receipt. It uses the provided ComponentActivity instance to start the scanning process. The result of the scanning process is returned through the provided callback function.

Parameters

activity

The ComponentActivity instance. This is typically the current activity from which this function is called. It is used to provide context for the scanning process.

scanCallback

The callback function that will be called with the scanned receipt data when the scanning process is finished.