...
The capture feature is unaware of any networking implementations and requires you to set them in the CaptureConfiguration
. 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.
You can provide your own networking by implementing the GiniCaptureNetworkService
interface. Also, you can use the Gini Bank API Library for Android or implement the communication with the Gini Bank API yourself.
This is You can see how you can configure the GiniBank
to use an your implementation of GiniCaptureNetworkService
. We are providing GiniCaptureDefaultNetworkService
in this example. in the code snippet below:
Code Block | ||
---|---|---|
| ||
// initialise the GiniCaptureNetworkService implementation val giniCaptureDefaultNetworkServiceginiCaptureNetworkService = GiniCaptureDefaultNetworkService// your implementation of the .builder(context) .setClientCredentials( clientId, clientSecret, "example.com" ) GiniCaptureNetworkService interface // set the GiniCaptureNetworkService to the CaptureConfiguration val captureConfiguration = CaptureConfiguration( networkService = giniCaptureDefaultNetworkService ) // setup GiniBank to use CaptureConfiguration GiniBank.setCaptureConfiguration(context, captureConfiguration) |
...