C++ Server-Side SDK
LaunchDarkly SDK
Public Attributes | List of all members
LDFlagListener Struct Reference

#include <flag_listener.h>

Public Attributes

FlagChangedCallbackFn FlagChanged
 
void * UserData
 

Detailed Description

Defines a feature flag listener which may be used to listen for flag changes. The struct should be initialized using LDFlagListener_Init before use.

Member Data Documentation

◆ FlagChanged

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).

Parameters
flag_keyThe name of the flag that changed.
new_valueThe 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_valueThe 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.
deletedTrue if the flag has been deleted.

◆ UserData

void* LDFlagListener::UserData

UserData is forwarded into callback functions.


The documentation for this struct was generated from the following file: