FirebaseRemoteConfig

Entry point for the Firebase Remote Config API.

Callers should first get the singleton object using Firebase.remoteConfig, and then call operations on that singleton object. The singleton contains the complete set of Remote Config parameter values available to your app. The singleton also stores values fetched from the Remote Config server until they are made available for use with a call to activate.

Properties

Link copied to clipboard

Returns a Map of Firebase Remote Config key value pairs.

Link copied to clipboard
val FirebaseRemoteConfig.android: FirebaseRemoteConfig
val FirebaseRemoteConfig.android: FirebaseRemoteConfig
Link copied to clipboard

Returns the state of this FirebaseRemoteConfig instance as a FirebaseRemoteConfigInfo.

Link copied to clipboard
val FirebaseRemoteConfig.ios: FIRRemoteConfig
Link copied to clipboard
val FirebaseRemoteConfig.js: RemoteConfig

Functions

Link copied to clipboard
actual suspend fun activate(): Boolean
expect suspend fun activate(): Boolean

Asynchronously activates the most recently fetched configs, so that the fetched key value pairs take effect.

actual suspend fun activate(): Boolean
actual suspend fun activate(): Boolean
actual suspend fun activate(): Boolean
Link copied to clipboard
actual suspend fun ensureInitialized()
expect suspend fun ensureInitialized()

Ensures the last activated config are available to the app.

actual suspend fun ensureInitialized()
actual suspend fun ensureInitialized()
actual suspend fun ensureInitialized()
Link copied to clipboard
actual suspend fun fetch(minimumFetchInterval: Duration?)
expect suspend fun fetch(minimumFetchInterval: Duration? = null)

Starts fetching configs, adhering to the specified minimum fetch interval.

actual suspend fun fetch(minimumFetchInterval: Duration?)
actual suspend fun fetch(minimumFetchInterval: Duration?)
actual suspend fun fetch(minimumFetchInterval: Duration?)
Link copied to clipboard
suspend fun FirebaseRemoteConfig.fetch(minimumFetchIntervalInSeconds: Long)
Link copied to clipboard
actual suspend fun fetchAndActivate(): Boolean
expect suspend fun fetchAndActivate(): Boolean

Asynchronously fetches and then activates the fetched configs.

actual suspend fun fetchAndActivate(): Boolean
actual suspend fun fetchAndActivate(): Boolean
actual suspend fun fetchAndActivate(): Boolean
Link copied to clipboard
inline operator fun <T> FirebaseRemoteConfig.get(key: String): T
Link copied to clipboard
actual fun getKeysByPrefix(prefix: String): Set<String>
expect fun getKeysByPrefix(prefix: String): Set<String>

Returns a Set of all Firebase Remote Config parameter keys with the given prefix.

actual fun getKeysByPrefix(prefix: String): Set<String>
actual fun getKeysByPrefix(prefix: String): Set<String>
actual fun getKeysByPrefix(prefix: String): Set<String>
Link copied to clipboard

Returns the parameter value for the given key as a FirebaseRemoteConfigValue.

Link copied to clipboard
actual suspend fun reset()
expect suspend fun reset()

Deletes all activated, fetched and defaults configs and resets all Firebase Remote Config settings.

actual suspend fun reset()
actual suspend fun reset()
actual suspend fun reset()
Link copied to clipboard
actual suspend fun setDefaults(vararg defaults: Pair<String, Any?>)
expect suspend fun setDefaults(vararg defaults: Pair<String, Any?>)

Asynchronously sets default configs using the given Map.

actual suspend fun setDefaults(vararg defaults: Pair<String, Any?>)
actual suspend fun setDefaults(vararg defaults: Pair<String, Any?>)
actual suspend fun setDefaults(vararg defaults: Pair<String, Any?>)
Link copied to clipboard
actual suspend fun settings(init: FirebaseRemoteConfigSettings.() -> Unit)
expect suspend fun settings(init: FirebaseRemoteConfigSettings.() -> Unit)

Asynchronously changes the settings for this FirebaseRemoteConfig instance.

actual suspend fun settings(init: FirebaseRemoteConfigSettings.() -> Unit)
actual suspend fun settings(init: FirebaseRemoteConfigSettings.() -> Unit)
actual suspend fun settings(init: FirebaseRemoteConfigSettings.() -> Unit)