Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can provide your own networking by implementing the GiniCaptureNetworkService interface and passing your instances to the builder of GiniCapture. Also, you can use Gini Bank API Library for Android or implement the communication with the Gini Bank API yourself.

You can see how you can configure the GiniCapture to use an implementation of GiniCaptureNetworkService in the code snippet below. We are providing GiniCaptureDefaultNetworkService in this example, but you can provide your own implementation as well.

Code Block
languagekotlin
val giniCaptureDefaultNetworkService = GiniCaptureDefaultNetworkService  
    .builder(context)  
    .setClientCredentials(  
        clientId,  
        clientSecret,  
        "example.com"  
    ).build()  
  
  
GiniCapture.Builder().setGiniCaptureNetworkService(giniCaptureDefaultNetworkService).build()