Builder

public class Builder

Builder for configuring a new instance of the GiniCaptureDefaultNetworkService.

Functions

Link copied to clipboard
GiniCaptureDefaultNetworkService build()
Create a new instance of the GiniCaptureDefaultNetworkService.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setBackoffMultiplier(float backoffMultiplier)
Sets the backoff multiplication factor for connection retries.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setBaseUrl(@NonNull() String baseUrl)
Set the base URL of the Gini API.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setCache(@NonNull() Cache cache)
Set the cache implementation to use with Volley.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setClientCredentials(@NonNull() String clientId, @NonNull() String clientSecret, @NonNull() String emailDomain)
Set your Gini API client ID and secret.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setConnectionTimeout(long connectionTimeout)
Set the (initial) timeout for each request.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setConnectionTimeoutUnit(@NonNull() TimeUnit connectionTimeoutUnit)
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.
Link copied to clipboard
Set additional information related to the documents.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setMaxNumberOfRetries(int maxNumberOfRetries)
Set the maximal number of retries for each network request.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setNetworkSecurityConfigResId(@XmlRes() int networkSecurityConfigResId)
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
GiniCaptureDefaultNetworkService.Builder setTrustManager(@NonNull() TrustManager trustManager)
Set a custom TrustManager implementation to have full control over which certificates to trust.
Link copied to clipboard
GiniCaptureDefaultNetworkService.Builder setUserCenterBaseUrl(@NonNull() String userCenterBaseUrl)
Set the base URL of the Gini User Center API.