GiniCaptureDefaultNetworkService

public class GiniCaptureDefaultNetworkService implements GiniCaptureNetworkService

Default implementation of the network related tasks required by the Gini Capture SDK.

Relies on the Gini Bank API Library for executing the requests, which implements communication with the Gini Bank API using generated anonymous Gini users.

Important: Access to the Gini User Center API is required which is restricted to selected clients only. Contact Gini if you require access.

To create an instance use the GiniCaptureDefaultNetworkService.Builder returned by the builder method.

In order for the Gini Capture SDK to use this implementation pass an instance of it to setGiniCaptureNetworkService when creating a GiniCapture instance.

Types

Link copied to clipboard
public class Builder
Builder for configuring a new instance of the GiniCaptureDefaultNetworkService.

Functions

Link copied to clipboard
CancellationToken analyze(@NonNull() LinkedHashMap<String, Integer> giniApiDocumentIdRotationMap, @NonNull() GiniCaptureNetworkCallback<AnalysisResult, Error> callback)
Link copied to clipboard
static GiniCaptureDefaultNetworkService.Builder builder(@NonNull() Context context)
Creates a new GiniCaptureDefaultNetworkService.Builder to configure and create a new instance.
Link copied to clipboard
void cleanup()
Link copied to clipboard
CancellationToken delete(@NonNull() String giniApiDocumentId, @NonNull() GiniCaptureNetworkCallback<Result, Error> callback)
Link copied to clipboard
Document getAnalyzedGiniApiDocument()
Call this method to retrieve the document which was created when the user uploaded an image or a pdf for analysis.
Link copied to clipboard
void handleErrorLog(@NonNull() ErrorLog errorLog)
Link copied to clipboard
CancellationToken upload(@NonNull() Document document, @NonNull() GiniCaptureNetworkCallback<Result, Error> callback)