Package net.gini.android.capture.network

Contains interfaces and classes for adding networking calls to the Gini Capture SDK in order to communicate with the Gini API.

The Gini Capture SDK uses the net.gini.android.capture.network.GiniCaptureNetworkService interface to request network calls when required. By implementing the interface and passing it to the net.gini.android.capture.GiniCapture.Builder.setGiniCaptureNetworkService() when creating the net.gini.android.capture.GiniCapture instance clients are free to use any networking implementation that fits their needs.

The net.gini.android.capture.network.GiniCaptureNetworkApi can be implemented and used to perform network calls manually outside of the Gini Capture SDK (e.g. for sending feedback).

The easiest way to get started is to use the Gini Capture Network Library package which provides a default implementation of both interfaces.

The Default Network Library for Android provides a default implementation of the network related tasks required by the Gini Capture SDK.

Adding this library along with the Gini Capture SDK to your application is the quickest way to integrate invoice scanning.

In order for the Gini Capture SDK to use the default implementations pass the instances of net.gini.android.capture.network.GiniCaptureNetworkService and net.gini.android.capture.network.GiniCaptureNetworkApi to the GiniCapture.Builder when creating a new GiniCapture.

Types

Link copied to clipboard
public class AnalysisResult extends Result
Used by the GiniCaptureNetworkService to return analysis results.
Link copied to clipboard
public class Error
Used by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return error messages.
Link copied to clipboard
public class GiniCaptureDefaultNetworkApi implements GiniCaptureNetworkApi
Default implementation of network calls which can be performed manually from outside the Gini Capture SDK (e.g.
Link copied to clipboard
public class GiniCaptureDefaultNetworkService implements GiniCaptureNetworkService
Default implementation of the network related tasks required by the Gini Capture SDK.
Link copied to clipboard
public interface GiniCaptureNetworkApi
Interface specifying network calls which can be performed manually from outside the Gini Captrue SDK (e.g.
Link copied to clipboard
public interface GiniCaptureNetworkCallback<R, E>
Used by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return the outcome of network calls.
Link copied to clipboard
public interface GiniCaptureNetworkService implements ErrorLoggerListener
Interface specifying network related tasks required by the Gini Capture SDK in order to communicate with the Gini API.
Link copied to clipboard
public class Result
Used by the GiniCaptureNetworkService to return network call results.