public class GiniCaptureDefaultNetworkApi extends java.lang.Object implements GiniCaptureNetworkApi
To create an instance use the GiniCaptureDefaultNetworkApi.Builder
returned by the
GiniCaptureDefaultNetworkApi.builder()
method.
In order to easily access this 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 | Class and Description |
---|---|
static class |
GiniCaptureDefaultNetworkApi.Builder
Builder for configuring a new instance of the
GiniCaptureDefaultNetworkApi . |
Modifier and Type | Method and Description |
---|---|
static GiniCaptureDefaultNetworkApi.Builder |
builder()
Creates a new
GiniCaptureDefaultNetworkApi.Builder to configure and create a new instance. |
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.
|
public static GiniCaptureDefaultNetworkApi.Builder builder()
GiniCaptureDefaultNetworkApi.Builder
to configure and create a new instance.GiniCaptureDefaultNetworkApi.Builder
public void sendFeedback(java.util.Map extractions, GiniCaptureNetworkCallback callback)
GiniCaptureNetworkApi
GiniCaptureSpecificExtraction
s must contain the final user corrected and/or accepted values.sendFeedback
in interface GiniCaptureNetworkApi
extractions
- a map of extraction labels and specific extractionscallback
- a callback implementation to return the outcomepublic void deleteGiniUserCredentials()
GiniCaptureNetworkApi
By deleting the credentials, new ones will be generated at the next upload.
deleteGiniUserCredentials
in interface GiniCaptureNetworkApi
public void setUpdatedCompoundExtractions(java.util.Map compoundExtractions)
GiniCaptureNetworkApi
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.
setUpdatedCompoundExtractions
in interface GiniCaptureNetworkApi
compoundExtractions
- the updated compound extractions