ConfigUpdateListener

public interface ConfigUpdateListener


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

Summary

Public methods

abstract void

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

abstract void
onUpdate(@NonNull ConfigUpdate configUpdate)

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

Public methods

onError

abstract void onError(@NonNull FirebaseRemoteConfigException error)

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

Parameters
@NonNull FirebaseRemoteConfigException error

A FirebaseRemoteConfigException with information about the error.

onUpdate

abstract void onUpdate(@NonNull ConfigUpdate configUpdate)

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

Parameters
@NonNull ConfigUpdate configUpdate

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