Google is committed to advancing racial equity for Black communities. See how.

FirebaseRemoteConfigSettings.Builder

public static class FirebaseRemoteConfigSettings.Builder extends Object

Public Constructor Summary

Public Method Summary

FirebaseRemoteConfigSettings
build()
Returns a FirebaseRemoteConfigSettings with the settings provided to this builder.
long
getFetchTimeoutInSeconds()
Returns the fetch timeout in seconds.
long
getMinimumFetchIntervalInSeconds()
Returns the minimum interval between successive fetches calls in seconds.
FirebaseRemoteConfigSettings.Builder
setFetchTimeoutInSeconds(long duration)
Sets the connection and read timeouts for fetch requests to the Firebase Remote Config servers in seconds.
FirebaseRemoteConfigSettings.Builder
setMinimumFetchIntervalInSeconds(long duration)
Sets the minimum interval between successive fetch calls.

Inherited Method Summary

Public Constructors

public FirebaseRemoteConfigSettings.Builder ()

Public Methods

public FirebaseRemoteConfigSettings build ()

Returns a FirebaseRemoteConfigSettings with the settings provided to this builder.

public long getFetchTimeoutInSeconds ()

Returns the fetch timeout in seconds.

The timeout specifies how long the client should wait for a connection to the Firebase Remote Config servers.

public long getMinimumFetchIntervalInSeconds ()

Returns the minimum interval between successive fetches calls in seconds.

public FirebaseRemoteConfigSettings.Builder setFetchTimeoutInSeconds (long duration)

Sets the connection and read timeouts for fetch requests to the Firebase Remote Config servers in seconds.

A fetch call will fail if it takes longer than the specified timeout to connect to or read from the Remote Config servers.

Parameters
duration Timeout duration in seconds. Should be a non-negative number.

public FirebaseRemoteConfigSettings.Builder setMinimumFetchIntervalInSeconds (long duration)

Sets the minimum interval between successive fetch calls.

Fetches less than duration seconds after the last fetch from the Firebase Remote Config server would use values returned during the last fetch.

Parameters
duration Interval duration in seconds. Should be a non-negative number.