Default Implementation

The capture feature is unaware of any networking implementations and it 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. Find more details in the reference documentation.

We provide a default implementation of GiniCaptureNetworkService called GiniCaptureDefaultNetworkService. You can use the helper method to create it with minimal configuration and pass it to the CaptureConfiguration:

val networkService = getDefaultNetworkService( context = this, clientId = myClientId, clientSecret = myClientSecret, emailDomain = myEmailDomain, documentMetadata = myDocumentMetadata ) GiniBank.setCaptureConfiguration(context, CaptureConfiguration( networkService = networkService ) )

For all configuration options of the default networking implementation, see the documentation of GiniCaptureDefaultNetworkService.Builder.

Â