Gini Core APIBuilder
The GiniCoreAPIBuilder allows you to build and configure a GiniCoreAPI instance.
Parameters
your application's Context instance (Android)
your application's client ID for the Gini Health API
your application's client secret for the Gini Health API
the email domain which is used for created Gini users
if not null, then the SessionManager instance will be used for session management. If null, then anonymous Gini users will be used.
Constructors
Initializes a new builder instance.
Types
Functions
Differentiate between different types of GiniApi's.
Return the SessionManager set via #setSessionManager. If no SessionManager has been set, default to AnonymousSessionManager.
Set the base URL of the Gini API. Handy for tests. Usually, you do not use this method.
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.
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.
Enable or disable debugging.
Set the resource id for the network security configuration xml to enable public key pinning.
Set a custom TrustManager implementation to have full control over which certificates to trust.
Set the base URL of the Gini User Center API. Handy for tests. Usually, you do not use this method.