public interface GiniCaptureNetworkApi
In order to easily access your implementation pass an instance of it to GiniCapture.Builder#setGiniCaptureNetworkApi(GiniCaptureNetworkApi)
when creating a GiniCapture
instance. You can then get the instance in your app with GiniCapture#getGiniCaptureNetworkApi()
.
Modifier and Type | Method and Description |
---|---|
void |
deleteGiniUserCredentials()
Delete the anonymous gini user credentials.
|
void |
sendFeedback(java.util.Map extractions,
GiniCaptureNetworkCallback callback)
Call this method with the extractions the user has seen and accepted.
|
void |
setUpdatedCompoundExtractions(java.util.Map compoundExtractions)
This method is called by the Gini Capture Library with the compound extractions (e.g., line items) the user has seen.
|
void sendFeedback(java.util.Map extractions, GiniCaptureNetworkCallback callback)
GiniCaptureSpecificExtraction
s must contain the final user corrected and/or accepted values.extractions
- a map of extraction labels and specific extractionscallback
- a callback implementation to return the outcomevoid deleteGiniUserCredentials()
By deleting the credentials, new ones will be generated at the next upload.
void setUpdatedCompoundExtractions(java.util.Map compoundExtractions)
Note: If the compound extractions are modified in your app, then call this method to have the latest changes available when the feedback is sent.
compoundExtractions
- the updated compound extractions