GiniBuilder

public class GiniBuilder

Constructors

GiniBuilder
Link copied to clipboard
void GiniBuilder(@NonNull() Context context, @NonNull() String clientId, @NonNull() String clientSecret, @NonNull() String emailDomain)
Constructor to initialize a new builder instance where anonymous Gini users are used.
GiniBuilder
Link copied to clipboard
void GiniBuilder(@NonNull() Context context, @NonNull() SessionManager sessionManager)
Constructor to initialize a new builder instance.

Functions

build
Link copied to clipboard
Gini build()
Builds the Gini instance with the configuration settings of the builder instance.
getSessionManager
Link copied to clipboard
synchronized SessionManager getSessionManager()
Return the SessionManager set via #setSessionManager.
setApiBaseUrl
Link copied to clipboard
GiniBuilder setApiBaseUrl(@NonNull() String newUrl)
Set the base URL of the Gini API.
setCache
Link copied to clipboard
GiniBuilder setCache(@NonNull() Cache cache)
Set the cache implementation to use with Volley.
setConnectionBackOffMultiplier
Link copied to clipboard
GiniBuilder setConnectionBackOffMultiplier(float backOffMultiplier)
Sets the backoff multiplication factor for connection retries.
setConnectionTimeoutInMs
Link copied to clipboard
GiniBuilder setConnectionTimeoutInMs(int connectionTimeoutInMs)
Sets the (initial) timeout for each request.
setCredentialsStore
Link copied to clipboard
GiniBuilder setCredentialsStore(@NonNull() CredentialsStore credentialsStore)
Set the credentials store which is used by the library to store user credentials.
setGiniApiType
Link copied to clipboard
GiniBuilder setGiniApiType(@NonNull() GiniApiType giniApiType)
Set which Gini API to use.
setMaxNumberOfRetries
Link copied to clipboard
GiniBuilder setMaxNumberOfRetries(int maxNumberOfRetries)
Sets the maximal number of retries for each network request.
setNetworkSecurityConfigResId
Link copied to clipboard
GiniBuilder setNetworkSecurityConfigResId(@XmlRes() int networkSecurityConfigResId)
Set the resource id for the network security configuration xml to enable public key pinning.
setUserCenterApiBaseUrl
Link copied to clipboard
GiniBuilder setUserCenterApiBaseUrl(@NonNull() String newUrl)
Set the base URL of the Gini User Center API.