C Client-Side SDK
LaunchDarkly SDK
|
|
Go to the documentation of this file.
24 struct LDConfig *
const config,
const LDBoolean allPrivate);
30 struct LDConfig *
const config,
const int millis);
42 struct LDConfig *
const config,
const int millis);
47 struct LDConfig *
const config,
const int millis);
52 struct LDConfig *
const config,
const LDBoolean disable);
63 struct LDConfig *
const config,
const int millis);
92 struct LDConfig *
const config,
const int millis);
127 struct LDConfig *
const config,
const LDBoolean reasons);
132 struct LDConfig *
const config,
struct LDJSON *attributes);
142 struct LDConfig *
const config,
143 const char *
const name,
144 const char *
const key);
154 struct LDConfig *
const config,
const char *
const certFile);
160 struct LDConfig *
const config,
const LDBoolean inlineUsers);
void LDConfigSetUseEvaluationReasons(struct LDConfig *const config, const LDBoolean reasons)
Decide whether the client should fetch feature flag evaluation explanations from LaunchDarkly.
void LDConfigSetInlineUsersInEvents(struct LDConfig *const config, const LDBoolean inlineUsers)
Determines if an entire user object, or only the user key should be included in events....
void LDConfigSetPollingIntervalMillis(struct LDConfig *const config, const int millis)
Only relevant when streaming is disabled (set to false). Sets the interval between feature flag updat...
void LDConfigSetConnectionTimeoutMillis(struct LDConfig *const config, const int millis)
Sets the timeout in milliseconds when connecting to LaunchDarkly.
A custom c89 boolean type.
LDBoolean LDConfigSetSSLCertificateAuthority(struct LDConfig *const config, const char *const certFile)
Set the path to the SSL certificate bundle used for peer authentication.
void LDConfigSetStreaming(struct LDConfig *const config, const LDBoolean streaming)
Enables or disables real-time streaming flag updates.
void LDConfigSetConnectionTimeoutMillies(struct LDConfig *const config, const int millis)
Sets the timeout in milliseconds when connecting to LaunchDarkly.
void LDConfigFree(struct LDConfig *const config)
Free an existing LDConfig instance.
LDBoolean LDConfigSetAppURI(struct LDConfig *const config, const char *const uri)
Sets the interval in milliseconds between polls for flag updates when your app is in the background.
LDBoolean LDConfigSetStreamURI(struct LDConfig *const config, const char *const uri)
Set the stream uri for connecting to the flag update stream. You probably don't need to set this unle...
struct LDConfig * LDConfigNew(const char *const mobileKey)
Creates a new default configuration. mobileKey is required.
void LDConfigSetOffline(struct LDConfig *const config, const LDBoolean offline)
Configures the client for offline mode. In offline mode, no external network connections are made.
void LDConfigSetVerifyPeer(struct LDConfig *const config, const LDBoolean enabled)
Set whether to verify the authenticity of the peer's certificate on network requests.
#define LD_EXPORT(x)
Used to ensure only intended symbols are exported in the binaries.
Definition: export.h:10
void LDConfigSetPrivateAttributes(struct LDConfig *const config, struct LDJSON *attributes)
Private attribute list which will not be recorded for all users.
LDBoolean LDConfigSetMobileKey(struct LDConfig *const config, const char *const key)
Sets the key for authenticating with LaunchDarkly. This is required unless you're using the client in...
void LDConfigSetUseReport(struct LDConfig *const config, const LDBoolean report)
Determines whether the REPORT or GET verb is used for calls to LaunchDarkly. Do not use unless advise...
void LDConfigSetEventsFlushIntervalMillis(struct LDConfig *const config, const int millis)
Sets the maximum amount of time in milliseconds to wait in between sending analytics events to Launch...
void LDConfigAutoAliasOptOut(struct LDConfig *const config, const LDBoolean optOut)
Determines if Identify should automatically generate alias events. When true LDClientIdentify will no...
LDBoolean LDConfigSetProxyURI(struct LDConfig *const config, const char *const uri)
Set the proxy server used for connecting to LaunchDarkly.
LDBoolean LDConfigSetEventsURI(struct LDConfig *const config, const char *const uri)
Set the events uri for sending analytics to LaunchDarkly. You probably don't need to set this unless ...
void LDConfigSetAllAttributesPrivate(struct LDConfig *const config, const LDBoolean allPrivate)
Marks all user attributes private.
LDBoolean LDConfigAddSecondaryMobileKey(struct LDConfig *const config, const char *const name, const char *const key)
Add another mobile key to the list of secondary environments.
Public API Interface for JSON usage.
void LDConfigSetDisableBackgroundUpdating(struct LDConfig *const config, const LDBoolean disable)
Enable or disable background updating.
void LDConfigSetEventsCapacity(struct LDConfig *const config, const int capacity)
Sets the max number of events to queue before sending them to LaunchDarkly.
void LDConfigSetRequestTimeoutMillis(struct LDConfig *const config, const int millis)
Sets the timeout, in milliseconds, for requests to LaunchDarkly. Applies to polling requests and send...
void LDConfigSetBackgroundPollingIntervalMillis(struct LDConfig *const config, const int millis)
Sets the interval in milliseconds between polls for flag updates when your app is in the background.
Public. Configuration of exported symbols.