Default Implementation
The Capture SDK is unaware of any networking implementations and requires you to set them in the builder of GiniCapture
. The networking related logic is abstracted behind the GiniCaptureNetworkService
interface which is used to upload, analyze and delete documents. You can view the reference documentation for details.
To add networking, use the Gini Capture Network Library and add the gini-capture-network-lib
dependency to your app’s build.gradle
:
dependencies {
...
implementation 'net.gini.android:gini-capture-sdk-default-network:3.2.0'
}
For the Gini Capture SDK to be aware of the default implementation, create an instance and pass it to the builder of GiniCapture
:
GiniCaptureDefaultNetworkService networkService =
GiniCaptureDefaultNetworkService.builder((Context) this)
.setClientCredentials(myClientId, myClientSecret, myEmailDomain)
.build();
GiniCapture.newInstance()
.setGiniCaptureNetworkService(networkService)
.build();
For all configuration options of the default networking implementation, see the documentation of GiniCaptureDefaultNetworkService.Builder.
Â