FirebaseRemoteConfig

The entry point of Firebase Remote Config, as the Android SDK's com.google.firebase.remoteconfig.FirebaseRemoteConfig.

The entry point of Firebase Remote Config, as the Android SDK's com.google.firebase.remoteconfig.FirebaseRemoteConfig.

Types

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard

All active values, keyed by parameter name.

The active values: the defaults, overridden by the activated remote values (the iOS SDK keeps them per source).

All active values, keyed by parameter name.

All active values, keyed by parameter name.

All active values, keyed by parameter name.

Link copied to clipboard

Real-time config updates as a Flow; each emission means the backend has a newer config to fetch and activate.

Link copied to clipboard

The state of the most recent fetch and the current settings.

The state of the most recent fetch and the current settings.

The state of the most recent fetch and the current settings.

The state of the most recent fetch and the current settings.

The state of the most recent fetch and the current settings.

Link copied to clipboard
val 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
actual fun activate(): Task<Boolean>

Makes the most recently fetched config available to the getters; true if it changed the active config.

actual fun activate(): Task<Boolean>

Makes the most recently fetched config available to the getters; true if it changed the active config.

expect fun activate(): Task<Boolean>

Makes the most recently fetched config available to the getters; true if it changed the active config.

actual fun activate(): Task<Boolean>

Makes the most recently fetched config available to the getters; true if it changed the active config.

actual fun activate(): Task<Boolean>

Makes the most recently fetched config available to the getters; true if it changed the active config.

Link copied to clipboard

Starts listening for real-time config updates; ConfigUpdateListenerRegistration.remove stops them.

Starts listening for real-time config updates; ConfigUpdateListenerRegistration.remove stops them.

Starts listening for real-time config updates; ConfigUpdateListenerRegistration.remove stops them.

Starts listening for real-time config updates; ConfigUpdateListenerRegistration.remove stops them.

Starts listening for real-time config updates; ConfigUpdateListenerRegistration.remove stops them.

Link copied to clipboard

Completes with the FirebaseRemoteConfigInfo once the config has been loaded from disk.

Completes with the FirebaseRemoteConfigInfo once the config has been loaded from disk.

Completes with the FirebaseRemoteConfigInfo once the config has been loaded from disk.

Completes with the FirebaseRemoteConfigInfo once the config has been loaded from disk.

Completes with the FirebaseRemoteConfigInfo once the config has been loaded from disk.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
actual fun fetch(): Task<Nothing?>

Fetches config from the backend, honouring the configured minimum fetch interval.

actual fun fetch(minimumFetchIntervalInSeconds: Long): Task<Nothing?>

Fetches config from the backend, if the cached config is older than minimumFetchIntervalInSeconds.

actual fun fetch(): Task<Nothing?>

Fetches config from the backend, honouring the configured minimum fetch interval.

actual fun fetch(minimumFetchIntervalInSeconds: Long): Task<Nothing?>

Fetches config from the backend, if the cached config is older than minimumFetchIntervalInSeconds.

expect fun fetch(): Task<Nothing?>

Fetches config from the backend, honouring the configured minimum fetch interval.

expect fun fetch(minimumFetchIntervalInSeconds: Long): Task<Nothing?>

Fetches config from the backend, if the cached config is older than minimumFetchIntervalInSeconds.

actual fun fetch(): Task<Nothing?>

The JS SDK has no per-call interval: this is the same as fetch.

actual fun fetch(minimumFetchIntervalInSeconds: Long): Task<Nothing?>

Fetches config from the backend, if the cached config is older than minimumFetchIntervalInSeconds.

actual fun fetch(): Task<Nothing?>

The JS SDK has no per-call interval: this is the same as fetch.

actual fun fetch(minimumFetchIntervalInSeconds: Long): Task<Nothing?>

Fetches config from the backend, if the cached config is older than minimumFetchIntervalInSeconds.

Link copied to clipboard

fetch followed by activate; true if the fetched config changed the active config.

fetch followed by activate; true if the fetched config changed the active config.

fetch followed by activate; true if the fetched config changed the active config.

fetch followed by activate; true if the fetched config changed the active config.

fetch followed by activate; true if the fetched config changed the active config.

Link copied to clipboard
Link copied to clipboard
actual fun getBoolean(key: String): Boolean

The active value of key as a boolean, or DEFAULT_VALUE_FOR_BOOLEAN.

actual fun getBoolean(key: String): Boolean

The active value of key as a boolean, or DEFAULT_VALUE_FOR_BOOLEAN.

expect fun getBoolean(key: String): Boolean

The active value of key as a boolean, or DEFAULT_VALUE_FOR_BOOLEAN.

actual fun getBoolean(key: String): Boolean

The active value of key as a boolean, or DEFAULT_VALUE_FOR_BOOLEAN.

actual fun getBoolean(key: String): Boolean

The active value of key as a boolean, or DEFAULT_VALUE_FOR_BOOLEAN.

Link copied to clipboard
actual fun getDouble(key: String): Double

The active value of key as a double, or DEFAULT_VALUE_FOR_DOUBLE.

actual fun getDouble(key: String): Double

The active value of key as a double, or DEFAULT_VALUE_FOR_DOUBLE.

expect fun getDouble(key: String): Double

The active value of key as a double, or DEFAULT_VALUE_FOR_DOUBLE.

actual fun getDouble(key: String): Double

The active value of key as a double, or DEFAULT_VALUE_FOR_DOUBLE.

actual fun getDouble(key: String): Double

The active value of key as a double, or DEFAULT_VALUE_FOR_DOUBLE.

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

The active keys starting with prefix.

actual fun getKeysByPrefix(prefix: String): Set<String>

The iOS SDK's keysWithPrefix only looks at the active config, so the defaults are included like the Android SDK does.

expect fun getKeysByPrefix(prefix: String): Set<String>

The active keys starting with prefix.

actual fun getKeysByPrefix(prefix: String): Set<String>

The active keys starting with prefix.

actual fun getKeysByPrefix(prefix: String): Set<String>

The active keys starting with prefix.

Link copied to clipboard
actual fun getLong(key: String): Long

The active value of key as a long, or DEFAULT_VALUE_FOR_LONG.

actual fun getLong(key: String): Long

The active value of key as a long, or DEFAULT_VALUE_FOR_LONG.

expect fun getLong(key: String): Long

The active value of key as a long, or DEFAULT_VALUE_FOR_LONG.

actual fun getLong(key: String): Long

The active value of key as a long, or DEFAULT_VALUE_FOR_LONG.

actual fun getLong(key: String): Long

The active value of key as a long, or DEFAULT_VALUE_FOR_LONG.

Link copied to clipboard
actual fun getString(key: String): String

The active value of key as a string, or DEFAULT_VALUE_FOR_STRING.

actual fun getString(key: String): String

The active value of key as a string, or DEFAULT_VALUE_FOR_STRING.

expect fun getString(key: String): String

The active value of key as a string, or DEFAULT_VALUE_FOR_STRING.

actual fun getString(key: String): String

The active value of key as a string, or DEFAULT_VALUE_FOR_STRING.

actual fun getString(key: String): String

The active value of key as a string, or DEFAULT_VALUE_FOR_STRING.

Link copied to clipboard

The active value of key.

The active value of key.

The active value of key.

The active value of key.

The active value of key.

Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
actual fun reset(): Task<Nothing?>

Clears the fetched, active and default config and the settings. The Apple and JS SDKs expose no way to drop the activated values, so there only the defaults are cleared and the settings restored.

actual fun reset(): Task<Nothing?>

The iOS SDK has no reset: the defaults are cleared and the settings restored, but the activated values stay, as the SDK exposes no way to drop them.

expect fun reset(): Task<Nothing?>

Clears the fetched, active and default config and the settings. The Apple and JS SDKs expose no way to drop the activated values, so there only the defaults are cleared and the settings restored.

actual fun reset(): Task<Nothing?>

The JS SDK has no reset: the defaults are cleared and the settings restored, but the activated values stay, as the SDK exposes no way to drop them.

actual fun reset(): Task<Nothing?>

The JS SDK has no reset: the defaults are cleared and the settings restored, but the activated values stay, as the SDK exposes no way to drop them.

Link copied to clipboard
actual fun setCustomSignals(customSignals: CustomSignals): Task<Nothing?>

Sets the custom signals sent with fetches, which the backend can target conditions on; a null value removes a signal.

actual fun setCustomSignals(customSignals: CustomSignals): Task<Nothing?>

Sets the custom signals sent with fetches, which the backend can target conditions on; a null value removes a signal.

expect fun setCustomSignals(customSignals: CustomSignals): Task<Nothing?>

Sets the custom signals sent with fetches, which the backend can target conditions on; a null value removes a signal.

actual fun setCustomSignals(customSignals: CustomSignals): Task<Nothing?>

Sets the custom signals sent with fetches, which the backend can target conditions on; a null value removes a signal.

actual fun setCustomSignals(customSignals: CustomSignals): Task<Nothing?>

Sets the custom signals sent with fetches, which the backend can target conditions on; a null value removes a signal.

Link copied to clipboard
actual fun setDefaultsAsync(resourceId: Int): Task<Nothing?>

Android-only: reads the defaults from an XML resource.

actual fun setDefaultsAsync(defaults: Map<String, Any?>): Task<Nothing?>

Sets the default values, used until a fetched config is activated and for keys the backend does not set.

actual fun setDefaultsAsync(resourceId: Int): Task<Nothing?>

Android-only: reads the defaults from an XML resource.

actual fun setDefaultsAsync(defaults: Map<String, Any?>): Task<Nothing?>

Sets the default values, used until a fetched config is activated and for keys the backend does not set.

expect fun setDefaultsAsync(resourceId: Int): Task<Nothing?>

Android-only: reads the defaults from an XML resource.

expect fun setDefaultsAsync(defaults: Map<String, Any?>): Task<Nothing?>

Sets the default values, used until a fetched config is activated and for keys the backend does not set.

actual fun setDefaultsAsync(resourceId: Int): Task<Nothing?>

Android-only: reads the defaults from an XML resource.

actual fun setDefaultsAsync(defaults: Map<String, Any?>): Task<Nothing?>

Sets the default values, used until a fetched config is activated and for keys the backend does not set.

actual fun setDefaultsAsync(resourceId: Int): Task<Nothing?>

Android-only: reads the defaults from an XML resource.

actual fun setDefaultsAsync(defaults: Map<String, Any?>): Task<Nothing?>

Sets the default values, used until a fetched config is activated and for keys the backend does not set.

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