RemoteConfigKt

public final class RemoteConfigKt


Summary

Public fields

final @NonNull Flow<@NonNull ConfigUpdate>

Starts listening for config updates from the Remote Config backend and emits ConfigUpdates via a Flow.

final @NonNull FirebaseRemoteConfig

Returns the FirebaseRemoteConfig instance of the default FirebaseApp.

Public methods

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

See FirebaseRemoteConfig#getValue

static final @NonNull FirebaseRemoteConfig

Returns the FirebaseRemoteConfig instance of a given FirebaseApp.

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.

remoteConfig

public final @NonNull FirebaseRemoteConfig remoteConfig

Returns the FirebaseRemoteConfig instance of the default FirebaseApp.

Public methods

RemoteConfigKt.get

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

See FirebaseRemoteConfig#getValue

RemoteConfigKt.remoteConfig

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

Returns the FirebaseRemoteConfig instance of a given FirebaseApp.