ConfigUpdateListener

interface ConfigUpdateListener


Event listener interface for real-time Remote Config updates. Implement ConfigUpdateListener to call addOnConfigUpdateListener.

Summary

Public functions

Unit

Callback for when an error occurs while listening for updates or fetching the latest version of the config.

Unit
onUpdate(configUpdate: ConfigUpdate)

Callback for when a new config version has been automatically fetched from the backend and has changed from the activated config.

Public functions

onError

fun onError(@Nonnull error: FirebaseRemoteConfigException!): Unit

Callback for when an error occurs while listening for updates or fetching the latest version of the config.

Parameters
@Nonnull error: FirebaseRemoteConfigException!

A FirebaseRemoteConfigException with information about the error.

onUpdate

fun onUpdate(configUpdate: ConfigUpdate): Unit

Callback for when a new config version has been automatically fetched from the backend and has changed from the activated config.

Parameters
configUpdate: ConfigUpdate

A ConfigUpdate with information about the updated config version, including the set of updated parameters.