C Server-Side SDK
LaunchDarkly SDK
|
|
Go to the documentation of this file.
66 const char *
const key,
67 const struct LDUser *
const user,
68 struct LDJSON *
const data);
85 const char *
const key,
86 const struct LDUser *
const user,
87 struct LDJSON *
const data,
102 const struct LDUser *
const currentUser,
103 const struct LDUser *
const previousUser);
LDBoolean LDClientIsInitialized(struct LDClient *const client)
Check if a client has been fully initialized. This may be useful if the initialization timeout was re...
A custom c89 boolean type.
LDBoolean LDClientFlush(struct LDClient *const client)
Immediately flushes queued events.
LDBoolean LDClientTrack(struct LDClient *const client, const char *const key, const struct LDUser *const user, struct LDJSON *const data)
Reports that a user has performed an event. Custom data can be attached to the event as JSON.
LDBoolean LDClientIdentify(struct LDClient *const client, const struct LDUser *const user)
Generates an identify event for a user, if the user's key is non-empty.
LDBoolean LDClientTrackMetric(struct LDClient *const client, const char *const key, const struct LDUser *const user, struct LDJSON *const data, const double metric)
Reports that a user has performed an event. Custom data, and a metric can be attached to the event as...
#define LD_EXPORT(x)
Used to ensure only intended symbols are exported in the binaries.
Definition: export.h:10
LDBoolean LDClientAlias(struct LDClient *const client, const struct LDUser *const currentUser, const struct LDUser *const previousUser)
Record a alias event.
LDBoolean LDClientClose(struct LDClient *const client)
Shuts down the LaunchDarkly client. This will block until all resources have been freed....
Public API Interface for User construction.
Public API Interface for JSON usage.
Public API for Configuration.
struct LDClient * LDClientInit(struct LDConfig *const config, const unsigned int maxwaitmilli)
Initialize a new client, and connect to LaunchDarkly. It's important to make LDClient a singleton....
LDBoolean LDClientIsOffline(struct LDClient *const client)
Whether the LaunchDarkly client is in offline mode.
Public. Configuration of exported symbols.