GiniCoreAPIBuilder

public abstract class GiniCoreAPIBuilder<DM extends DocumentManager<DR, E>, G extends GiniCoreAPI<DM, DR, E>, DR extends DocumentRepository<E>, E extends ExtractionsContainer>

Constructors

Link copied to clipboard
public GiniCoreAPIBuilder<DM, G, DR, E> GiniCoreAPIBuilder(Context context, String clientId, String clientSecret, String emailDomain, SessionManager sessionManager)

Types

Link copied to clipboard
public class Companion

Functions

Link copied to clipboard
public abstract G build()

Builds an instance with the configuration settings of the builder instance.

Link copied to clipboard
public abstract GiniApiType getGiniApiType()
Link copied to clipboard

Return the SessionManager set via #setSessionManager. If no SessionManager has been set, default to AnonymousSessionManager.

Link copied to clipboard

Set the base URL of the Gini API. Handy for tests. Usually, you do not use this method.

Link copied to clipboard
public GiniCoreAPIBuilder<DM, G, DR, E> setCache(Cache cache)

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 GiniCoreAPIBuilder<DM, G, DR, E> setConnectionTimeoutInMs(Integer connectionTimeoutInMs)

Sets 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 #backoffMultiplier and failed retries.

Link copied to clipboard

Set the credentials store which is used by the library to store user credentials. If no credentials store is set, the net.gini.android.core.api.authorization.SharedPreferencesCredentialsStore is used by default.

Link copied to clipboard
public final GiniCoreAPIBuilder<DM, G, DR, E> setDebuggingEnabled(Boolean enabled)

Enable or disable debugging.

Link copied to clipboard
public GiniCoreAPIBuilder<DM, G, DR, E> setNetworkSecurityConfigResId(@XmlRes() Integer networkSecurityConfigResId)

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

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. Handy for tests. Usually, you do not use this method.

Inheritors

Link copied to clipboard