public class GiniVisionDefaultNetworkApi extends java.lang.Object implements GiniVisionNetworkApi
To create an instance use the GiniVisionDefaultNetworkApi.Builder
returned by the
GiniVisionDefaultNetworkApi.builder()
method.
In order to easily access this implementation pass an instance of it to GiniVision.Builder#setGiniVisionNetworkApi(GiniVisionNetworkApi)
when creating a GiniVision
instance. You can then get the instance in your app with GiniVision#getGiniVisionNetworkApi()
.
Modifier and Type | Class and Description |
---|---|
static class |
GiniVisionDefaultNetworkApi.Builder
Builder for configuring a new instance of the
GiniVisionDefaultNetworkApi . |
Modifier and Type | Method and Description |
---|---|
static GiniVisionDefaultNetworkApi.Builder |
builder()
Creates a new
GiniVisionDefaultNetworkApi.Builder to configure and create a new instance. |
void |
deleteGiniUserCredentials()
Delete the anonymous gini user credentials.
|
void |
sendFeedback(java.util.Map extractions,
GiniVisionNetworkCallback callback)
Call this method with the extractions the user has seen and accepted.
|
public static GiniVisionDefaultNetworkApi.Builder builder()
GiniVisionDefaultNetworkApi.Builder
to configure and create a new instance.GiniVisionDefaultNetworkApi.Builder
public void sendFeedback(java.util.Map extractions, GiniVisionNetworkCallback callback)
GiniVisionNetworkApi
GiniVisionSpecificExtraction
s must contain the final user corrected and/or accepted values.sendFeedback
in interface GiniVisionNetworkApi
extractions
- a map of extraction labels and specific extractionscallback
- a callback implementation to return the outcomepublic void deleteGiniUserCredentials()
GiniVisionNetworkApi
By deleting the credentials, new ones will be generated at the next upload.
deleteGiniUserCredentials
in interface GiniVisionNetworkApi