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
.