C++ Client-Side SDK
LaunchDarkly SDK
|
#include <flag_notifier.hpp>
Public Types | |
using | ChangeHandler = std::function< void(std::shared_ptr< FlagValueChangeEvent >)> |
Public Member Functions | |
virtual std::unique_ptr< IConnection > | OnFlagChange (std::string const &key, ChangeHandler handler)=0 |
IFlagNotifier (IFlagNotifier const &item)=delete | |
IFlagNotifier (IFlagNotifier &&item)=delete | |
IFlagNotifier & | operator= (IFlagNotifier const &)=delete |
IFlagNotifier & | operator= (IFlagNotifier &&)=delete |
Interface to allow listening for flag changes. Notification events should be distributed after the store has been updated. Meaning that the "new" value will correspond to the current value in the store, and the "old" value will be what the value was before the update.
|
pure virtual |
Listen for changes for the specific flag.
key | The flag to listen to changes for. |
signal | The handler for the changes. |