C++ Server-Side SDK
LaunchDarkly SDK
Classes | Typedefs | Functions
flag_listener.h File Reference
#include <launchdarkly/bindings/c/export.h>
#include <launchdarkly/bindings/c/value.h>
Include dependency graph for flag_listener.h:

Go to the source code of this file.

Classes

struct  LDFlagListener
 

Typedefs

typedef void(* FlagChangedCallbackFn) (char const *flag_key, LDValue new_value, LDValue old_value, bool deleted, void *user_data)
 

Functions

 LDFlagListener_Init (struct LDFlagListener *listener)
 

Function Documentation

◆ LDFlagListener_Init()

LDFlagListener_Init ( struct LDFlagListener listener)

Initializes a flag listener. Must be called before passing the listener to LDClientSDK_FlagNotifier_OnFlagChange.

Create the struct, initialize the struct, set the FlagChanged handler and optionally UserData, and then pass the struct to LDClientSDK_FlagNotifier_OnFlagChange.

Parameters
listenerListener to initialize.