GiniCaptureDefaultNetworkService

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 GiniCapture.Builder.setGiniCaptureNetworkService when creating a GiniCapture instance.

Constructors

Types

Link copied to clipboard
public final class Builder

Builder for configuring a new instance of the GiniCaptureDefaultNetworkService.

Link copied to clipboard
public class Companion

Functions

Link copied to clipboard
public CancellationToken analyze(LinkedHashMap<String, Integer> giniApiDocumentIdRotationMap, GiniCaptureNetworkCallback<AnalysisResult, Error> callback)
Link copied to clipboard
public Unit cleanup()
Link copied to clipboard
public CancellationToken delete(String giniApiDocumentId, GiniCaptureNetworkCallback<Result, Error> callback)
Link copied to clipboard
Link copied to clipboard

Contains the document which was created when the user uploaded an image or a pdf for analysis.

Link copied to clipboard
public Unit handleErrorLog(ErrorLog errorLog)
Link copied to clipboard
Link copied to clipboard
public CancellationToken upload(Document document, GiniCaptureNetworkCallback<Result, Error> callback)

Properties

Link copied to clipboard

Contains the document which was created when the user uploaded an image or a pdf for analysis.