Package 

Class GiniCoreAPIBuilder

    • Method Detail

      • setApiBaseUrl

         GiniCoreAPIBuilder<DM, G, DR, E> setApiBaseUrl(String newUrl)

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

        Parameters:
        newUrl - The URL of the Gini API which is used by the requests of the library.
      • setUserCenterApiBaseUrl

         GiniCoreAPIBuilder<DM, G, DR, E> setUserCenterApiBaseUrl(String newUrl)

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

        Parameters:
        newUrl - The URL of the Gini User Center API which is used by the requests of the library.
      • setConnectionTimeoutInMs

         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.

        Parameters:
        connectionTimeoutInMs - initial timeout
      • setCredentialsStore

         GiniCoreAPIBuilder<DM, G, DR, E> setCredentialsStore(CredentialsStore credentialsStore)

        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.

        Parameters:
        credentialsStore - A credentials store instance (specified by the CredentialsStore interface).
      • setCache

         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.

        Parameters:
        cache - A cache instance (specified by the com.android.volley.Cache interface).
      • setDebuggingEnabled

         final GiniCoreAPIBuilder<DM, G, DR, E> setDebuggingEnabled(Boolean enabled)

        Enable or disable debugging.

        Disabled by default.

        When enabled all the requests and responses are logged.

        WARNING: Make sure to disable debugging for release builds.

        Parameters:
        enabled - pass true to enable and false to disable debugging
      • build

         abstract G build()

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