LDStreamingMode
public enum LDStreamingMode
Defines the connection modes the SDK may be configured to use to retrieve feature flag data from LaunchDarkly.
-
In streaming mode, the SDK uses a streaming connection to receive feature flag data from LaunchDarkly. When a flag is updated in the dashboard, the stream notifies the SDK of changes to the evaluation result for the current context.
Streaming mode is not available on watchOS. On iOS and tvOS, the client app must be running in the foreground to use a streaming connection. If streaming mode is not available, the SDK reverts to polling mode.
Declaration
Swift
case streaming
-
In polling mode, the SDK requests feature flag data from the LaunchDarkly service at regular intervals defined in the
LDConfig
. When a flag is updated in the dashboard, the SDK will not show the change until the next time the it requests the feature flag data.Declaration
Swift
case polling