Other Types

  • Defines the connection modes the SDK may be configured to use to retrieve feature flag data from LaunchDarkly.

    See more

    Declaration

    Swift

    public enum LDStreamingMode
  • The feature flag key is a String. This typealias helps define where the SDK expects the string to be a feature flag key.

    Declaration

    Swift

    public typealias LDFlagKey = String
  • An error thrown from APIs when an invalid argument is provided.

    See more

    Declaration

    Swift

    @objc
    public class LDInvalidArgumentError : NSObject, Error
  • A callback for dynamically setting http headers when connection & reconnecting to a stream or on every poll request. This function should return a copy of the headers received with any modifications or additions needed. Removing headers is discouraged as it may cause requests to fail.

    Declaration

    Swift

    public typealias RequestHeaderTransform = (_ url: URL, _ headers: [String : String]) -> [String : String]

    Parameters

    url

    The endpoint that is being connected to

    headers

    The default headers that would be used

    Return Value

    The headers that will be used in the request