Builder

public final class Builder

Builder for configuring a new instance of the GiniCaptureDefaultNetworkService.

Functions

Link copied to clipboard

Create a new instance of the GiniCaptureDefaultNetworkService.

Link copied to clipboard

Set the base URL of the Gini API.

Link copied to clipboard

Set the cache implementation to use with Volley. If no cache is set, the default Volley cache will be used.

Link copied to clipboard
public final GiniCaptureDefaultNetworkService.Builder setClientCredentials(String clientId, String clientSecret, String emailDomain)

Set your Gini API client ID and secret. The email domain is used when generating anonymous Gini users in the form of UUID@your-email-domain.

Link copied to clipboard

Set the (initial) timeout for each request. A timeout error will occur if nothing is received from the underlying socket in the given time span. The initial timeout will be altered depending on the backoff multiplier and failed retries.

Link copied to clipboard

Set the connection timeout's time unit.

Link copied to clipboard

Set the credentials store which is used by the Gini Bank API lib to store user credentials. If no credentials store is set, the SharedPreferencesCredentialsStore from the Gini API SDK is used by default.

Link copied to clipboard

Enable or disable debugging.

Link copied to clipboard

Set additional information related to the documents. This metadata will be passed to all document uploads.

Link copied to clipboard

Set the resource id for the network security configuration xml to enable public key pinning.

Link copied to clipboard

Set a custom SessionManager implementation for handling sessions.

Link copied to clipboard

Set a custom TrustManager implementation to have full control over which certificates to trust.

Link copied to clipboard

Set the base URL of the Gini User Center API.