-
- All Implemented Interfaces:
public interface GiniCaptureNetworkApiInterface specifying network calls which can be performed manually from outside the Gini Captrue SDK (e.g. for sending feedback). *
In order to easily access your implementation pass an instance of it to setGiniCaptureNetworkApi when creating a instance. You can then get the instance in your app with getGiniCaptureNetworkApi.
-
-
Method Summary
Modifier and Type Method Description abstract voidsendFeedback(@NonNull() Map<String, GiniCaptureSpecificExtraction> extractions, @NonNull() GiniCaptureNetworkCallback<Void, Error> callback)Call this method with the extractions the user has seen and accepted. abstract voiddeleteGiniUserCredentials()Delete the anonymous gini user credentials. abstract voidsetUpdatedCompoundExtractions(@NonNull() Map<String, GiniCaptureCompoundExtraction> compoundExtractions)This method is called by the Gini Capture Library with the compound extractions (e.g., line items) the user has seen. -
-
Method Detail
-
sendFeedback
abstract void sendFeedback(@NonNull() Map<String, GiniCaptureSpecificExtraction> extractions, @NonNull() GiniCaptureNetworkCallback<Void, Error> callback)
Call this method with the extractions the user has seen and accepted. The s must contain the final user corrected and/or accepted values.
- Parameters:
extractions- a map of extraction labels and specific extractionscallback- a callback implementation to return the outcome
-
deleteGiniUserCredentials
abstract void deleteGiniUserCredentials()
Delete the anonymous gini user credentials. These were automatically generated when the first document was uploaded.
By deleting the credentials, new ones will be generated at the next upload.
-
setUpdatedCompoundExtractions
abstract void setUpdatedCompoundExtractions(@NonNull() Map<String, GiniCaptureCompoundExtraction> compoundExtractions)
This method is called by the Gini Capture Library with the compound extractions (e.g., line items) the user has seen. Contains changes made by the user.
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.
- Parameters:
compoundExtractions- the updated compound extractions
-
-
-
-