...
You can see how you can configure the GiniBank
to use an your 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 | ||
---|---|---|
| ||
// 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) |
...