ConfigUpdateListenerRegistration

interface ConfigUpdateListenerRegistration


Listener registration returned by addOnConfigUpdateListener.

Calling remove stops the listener from receiving config updates and unregisters itself. If remove is called and no other listener registrations remain, the connection to the Remote Config backend is closed. Subsequently calling addOnConfigUpdateListener will re-open the connection.

Summary

Public functions

Unit

Removes the listener being tracked by this ConfigUpdateListenerRegistration.

Public functions

remove

fun remove(): Unit

Removes the listener being tracked by this ConfigUpdateListenerRegistration. After the initial call, subsequent calls to remove() have no effect.