Other Classes

The following classes are available globally.

  • Contextual information that will be provided to handlers during evaluation series.

    See more

    Declaration

    Swift

    public class EvaluationSeriesContext
  • Metadata data class used for annotating hook implementations.

    See more

    Declaration

    Swift

    public class Metadata
  • Use LDApplicationInfo to define application metadata.

    These properties are optional and informational. They may be used in LaunchDarkly analytics or other product features.

    See more

    Declaration

    Swift

    @objc(LDApplicationInfo)
    public final class ObjcLDApplicationInfo : NSObject
  • Contains methods for building a single kind LDContext with a specified key, defaulting to kind “user”.

    You may use these methods to set additional attributes and/or change the kind before calling LDContextBuilder.build(). If you do not change any values, the defaults for the LDContext are that its kind is “user”, its key is set to whatever value you passed to LDContextBuilder.init(key:), its anonymous attribute is false, and it has no values for any other attributes.

    To define a multi-context, see LDMultiContextBuilder.

    See more

    Declaration

    Swift

    @objc(LDContextBuilder)
    public final class ObjcLDContextBuilder : NSObject
  • Contains method for building a multi-context.

    Use this type if you need to construct a LDContext that has multiple kind values, each with its own nested LDContext. To define a single-kind context, use LDContextBuilder instead.

    Obtain an instance of LDMultiContextBuilder by calling LDMultiContextBuilder.init(); then, call LDMultiContextBuilder.addContext(_:) to specify the nested LDContext for each kind. LDMultiContextBuilder setters return a reference the same builder, so they can be chained together.

    See more

    Declaration

    Swift

    @objc(LDMultiContextBuilder)
    public final class ObjcLDMultiContextBuilder : NSObject
  • An NSObject which mimics Swift’s Result type, specifically for the LDContext type.

    See more

    Declaration

    Swift

    @objc
    public class ContextBuilderResult : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    @objc(ReferenceError)
    public final class ObjcLDReferenceError : NSObject