FirebaseRemoteConfig

Entry point for the Firebase Remote Config API.

Properties

Link copied to clipboard

Returns a map of Firebase Remote Config key value pairs.

Link copied to clipboard

The underlying Firebase Android SDK object.

Link copied to clipboard
Link copied to clipboard

Returns the state of this FirebaseRemoteConfig instance.

Link copied to clipboard
val FirebaseRemoteConfig.ios: FIRRemoteConfig

The underlying Firebase iOS SDK object.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Functions

Link copied to clipboard
suspend fun activate(): Boolean

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

Link copied to clipboard
suspend fun ensureInitialized()

Ensures the last activated config is available to the getters.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
suspend fun fetch(minimumFetchInterval: Duration? = null)

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

Link copied to clipboard
suspend fun FirebaseRemoteConfig.fetch(minimumFetchIntervalInSeconds: Long)
Link copied to clipboard
suspend fun fetchAndActivate(): Boolean

Asynchronously fetches and then activates the fetched configs.

Link copied to clipboard
inline operator fun <T> FirebaseRemoteConfig.get(key: String): T
Link copied to clipboard

Returns the set of parameter keys that start with the given prefix.

Link copied to clipboard

Returns the parameter value for the given key.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
suspend fun reset()

Deletes all activated, fetched and defaults configs and resets the settings. On Apple and JS the activated values stay, as those SDKs expose no way to drop them: only the defaults are cleared and the settings restored.

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

Asynchronously sets default configs using the given map.

Link copied to clipboard
suspend fun settings(init: FirebaseRemoteConfigSettings.() -> Unit)

Asynchronously changes the settings for this FirebaseRemoteConfig instance.

Link copied to clipboard
open override fun toString(): String