|
C++ Server-Side SDK
LaunchDarkly SDK
|
#include <flag_listener.h>
Public Attributes | |
| FlagChangedCallbackFn | FlagChanged |
| void * | UserData |
Defines a feature flag listener which may be used to listen for flag changes. The struct should be initialized using LDFlagListener_Init before use.
| FlagChangedCallbackFn LDFlagListener::FlagChanged |
Callback function which is invoked for flag changes.
The provided pointers are only valid for the duration of the function call (excluding UserData, whose lifetime is controlled by the caller).
| flag_key | The name of the flag that changed. |
| new_value | The new value of the flag. If there was not an new value, because the flag was deleted, then the LDValue will be of a null type. Check the deleted parameter to see if a flag was deleted. |
| old_value | The old value of the flag. If there was not an old value, for instance a newly created flag, then the Value will be of a null type. |
| deleted | True if the flag has been deleted. |
| void* LDFlagListener::UserData |
UserData is forwarded into callback functions.