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
setDeveloperModeEnabled(boolean enabled)
This method was deprecated. Use setMinimumFetchIntervalInSeconds(long) instead.
FirebaseRemoteConfigSettings.Builder
setFetchTimeoutInSeconds(long duration)
Sets the connection timeout 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 setDeveloperModeEnabled (boolean enabled)

This method was deprecated.
Use setMinimumFetchIntervalInSeconds(long) instead.

Turns the developer mode setting on or off.

Parameters
enabled Should be true to enable, or false to disable this setting.

public FirebaseRemoteConfigSettings.Builder setFetchTimeoutInSeconds (long duration)

Sets the connection timeout 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 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.