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.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase:firebase-config-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. 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.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase:firebase-config-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. 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

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase:firebase-config-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. 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.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase:firebase-config-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.