RemoteConfigKt

public final class RemoteConfigKt


Summary

Public fields

final @NonNull Flow<@NonNull ConfigUpdate>

This field is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

final @NonNull FirebaseRemoteConfig

Accessing this object for Kotlin apps has changed; see the migration guide.

Public methods

static final @NonNull FirebaseRemoteConfigValue
RemoteConfigKt.get(
    @NonNull FirebaseRemoteConfig receiver,
    @NonNull String key
)

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

static final @NonNull FirebaseRemoteConfig

Accessing this object for Kotlin apps has changed; see the migration guide.

static final @NonNull FirebaseRemoteConfigSettings

Public fields

configUpdates

public final @NonNull Flow<@NonNull ConfigUpdateconfigUpdates

Starts listening for config updates from the Remote Config backend and emits ConfigUpdates via a Flow. See FirebaseRemoteConfig.addOnConfigUpdateListener for more information.

  • When the returned flow starts being collected, an ConfigUpdateListener will be attached.

  • When the flow completes, the listener will be removed. If there are no attached listeners, the connection to the Remote Config backend will be closed.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

remoteConfig

public final @NonNull FirebaseRemoteConfig remoteConfig

Accessing this object for Kotlin apps has changed; see the migration guide.

Returns the FirebaseRemoteConfig instance of the default FirebaseApp.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

Public methods

RemoteConfigKt.get

public static final @NonNull FirebaseRemoteConfigValue RemoteConfigKt.get(
    @NonNull FirebaseRemoteConfig receiver,
    @NonNull String key
)

See FirebaseRemoteConfig#getValue

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

RemoteConfigKt.remoteConfig

public static final @NonNull FirebaseRemoteConfig RemoteConfigKt.remoteConfig(
    @NonNull Firebase receiver,
    @NonNull FirebaseApp app
)

Accessing this object for Kotlin apps has changed; see the migration guide.

Returns the FirebaseRemoteConfig instance of a given FirebaseApp.

Important: In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.