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.

Types

AnalysisResult
Link copied to clipboard
public class AnalysisResult extends Result
Used by the GiniCaptureNetworkService to return analysis results.
Error
Link copied to clipboard
public class Error
Used by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return error messages.
GiniCaptureNetworkApi
Link copied to clipboard
public interface GiniCaptureNetworkApi
Interface specifying network calls which can be performed manually from outside the Gini Captrue SDK (e.g.
GiniCaptureNetworkCallback
Link copied to clipboard
public interface GiniCaptureNetworkCallback<R, E>
Used by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return the outcome of network calls.
GiniCaptureNetworkService
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.
Result
Link copied to clipboard
public class Result
Used by the GiniCaptureNetworkService to return network call results.