firebase:: remote_config:: ConfigUpdateListenerRegistration
#include <config_update_listener_registration.h>
Calling Remove stops the listener from receiving config updates and unregisters itself.
Summary
If remove is called and no other listener registrations remain, the connection to the Remote Config backend is closed. Subsequently calling AddOnConfigUpdate will re-open the connection.
Constructors and Destructors |
|
---|---|
ConfigUpdateListenerRegistration()
Creates an invalid ConfigUpdateListenerRegistration that has to be reassigned before it can be used.
|
|
ConfigUpdateListenerRegistration(const ConfigUpdateListenerRegistration & other)
Copy constructor.
|
|
ConfigUpdateListenerRegistration(ConfigUpdateListenerRegistration && other)
Move constructor.
|
|
~ConfigUpdateListenerRegistration()
|
Public functions |
|
---|---|
Remove()
|
void
Remove the listener being tracked by this ConfigUpdateListenerRegistration.
|
operator=(const ConfigUpdateListenerRegistration & other)
|
Copy assignment operator.
|
operator=(ConfigUpdateListenerRegistration && other)
|
Move assignment operator.
|
Public functions
ConfigUpdateListenerRegistration
ConfigUpdateListenerRegistration()
Creates an invalid ConfigUpdateListenerRegistration that has to be reassigned before it can be used.
Calling Remove() on an invalid ConfigUpdateListenerRegistration is a no-op.
ConfigUpdateListenerRegistration
ConfigUpdateListenerRegistration( const ConfigUpdateListenerRegistration & other )
Copy constructor.
ConfigUpdateListenerRegistration
can be efficiently copied because it simply refers to the same underlying listener. If there is more than one copy of a ConfigUpdateListenerRegistration
, after calling Remove
on one of them, the listener is removed, and calling Remove
on any other copies will be a no-op.
Details | |||
---|---|---|---|
Parameters |
|
ConfigUpdateListenerRegistration
ConfigUpdateListenerRegistration( ConfigUpdateListenerRegistration && other )
Move constructor.
Moving is more efficient than copying for a ConfigUpdateListenerRegistration
. After being moved from, a ConfigUpdateListenerRegistration
is equivalent to its default-constructed state.
Details | |||
---|---|---|---|
Parameters |
|
Remove
void Remove()
Remove the listener being tracked by this ConfigUpdateListenerRegistration.
After the initial call, subsequent calls to Remove have no effect.
operator=
ConfigUpdateListenerRegistration & operator=( const ConfigUpdateListenerRegistration & other )
Copy assignment operator.
ConfigUpdateListenerRegistration
can be efficiently copied because it simply refers to the same underlying listener. If there is more than one copy of a ConfigUpdateListenerRegistration
, after calling Remove
on one of them, the listener is removed, and calling Remove
on any other copies will be a no-op.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
Reference to the destination
ConfigUpdateListenerRegistration . |
operator=
ConfigUpdateListenerRegistration & operator=( ConfigUpdateListenerRegistration && other )
Move assignment operator.
Moving is more efficient than copying for a ConfigUpdateListenerRegistration
. After being moved from, a ConfigUpdateListenerRegistration
is equivalent to its default-constructed state.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
Reference to the destination
ConfigUpdateListenerRegistration . |
~ConfigUpdateListenerRegistration
virtual ~ConfigUpdateListenerRegistration()