Other Classes
The following classes are available globally.
-
Represents a built-in or custom attribute name supported by
LDUser
.This abstraction helps to distinguish attribute names from other
String
values.For a more complete description of user attributes and how they can be referenced in feature flag rules, see the reference guides Setting user attributes and Targeting users.
See moreDeclaration
Swift
public class UserAttribute : Equatable, Hashable
-
Use LDApplicationInfo to define application metadata.
These properties are optional and informational. They may be used in LaunchDarkly analytics or other product features, but they do not affect feature flag evaluations.
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