Other Classes
The following classes are available globally.
-
Contextual information that will be provided to handlers during evaluation series.
See moreDeclaration
Swift
public class EvaluationSeriesContext
-
Metadata data class used for annotating hook implementations.
See moreDeclaration
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 moreDeclaration
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 theLDContext
are that its kind is “user”, its key is set to whatever value you passed toLDContextBuilder.init(key:)
, its anonymous attribute is false, and it has no values for any other attributes.To define a multi-context, see
See moreLDMultiContextBuilder
.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
See moreLDMultiContextBuilder.init()
; then, callLDMultiContextBuilder.addContext(_:)
to specify the nested LDContext for each kind. LDMultiContextBuilder setters return a reference the same builder, so they can be chained together.Declaration
Swift
@objc(LDMultiContextBuilder) public final class ObjcLDMultiContextBuilder : NSObject
-
Undocumented
See moreDeclaration
Swift
@objc(ReferenceError) public final class ObjcLDReferenceError : NSObject