Package net.gini.android.vision.network

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

The Gini Vision Library uses the net.gini.android.vision.network.GiniVisionNetworkService interface to request network calls when required. By implementing the interface and passing it to the net.gini.android.vision.GiniVision.Builder.setGiniVisionNetworkService() when creating the net.gini.android.vision.GiniVision instance clients are free to use any networking implementation that fits their needs.

The net.gini.android.vision.network.GiniVisionNetworkApi can be implemented and used to perform network calls manually outside of the Gini Vision Library (e.g. for sending feedback).

The easiest way to get started is to use the Gini Vision 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 GiniVisionNetworkService to return analysis results.
Error
Link copied to clipboard
public class Error
Used by the GiniVisionNetworkService and GiniVisionNetworkApi to return error messages.
GiniVisionNetworkApi
Link copied to clipboard
public interface GiniVisionNetworkApi
Interface specifying network calls which can be performed manually from outside the Gini Vision Library (e.g.
GiniVisionNetworkCallback
Link copied to clipboard
public interface GiniVisionNetworkCallback<R, E>
Used by the GiniVisionNetworkService and GiniVisionNetworkApi to return the outcome of network calls.
GiniVisionNetworkService
Link copied to clipboard
public interface GiniVisionNetworkService
Interface specifying network related tasks required by the Gini Vision Library in order to communicate with the Gini API.
Result
Link copied to clipboard
public class Result
Used by the GiniVisionNetworkService to return network call results.