Other Enumerations
The following enumerations are available globally.
-
Kind is an enumeration set by the application to describe what kind of entity an
LDContext
represents. The meaning of this is completely up to the application. When no Kind is specified, the default isKind.user
.For a multi-context (see
See moreLDMultiContextBuilder
), the Kind is alwaysKind.multi
; there is a specific Kind for each of the individual Contexts within it.Declaration
Swift
public enum Kind : Codable, Equatable, Hashable
extension Kind: Comparable
extension Kind: LosslessStringConvertible
extension Kind: CustomStringConvertible
-
Denotes the result of an identify request made through the
See moreLDClient.identify(context: completion:)
method.Declaration
Swift
public enum IdentifyResult
-
Enable / disable options for Auto Environment Attributes functionality. When enabled, the SDK will automatically provide data about the mobile environment where the application is running. This data makes it simpler to target your mobile customers based on application name or version, or on device characteristics including manufacturer, model, operating system, locale, and so on. We recommend enabling this when you configure the SDK. To learn more, read Automatic environment attributes.
For example, consider a “dark mode” feature being added to an app. Versions 10 through 14 contain early, incomplete versions of the feature. These versions are available to all customers, but the “dark mode” feature is only enabled for testers. With version 15, the feature is considered complete. With Auto Environment Attributes enabled, you can use targeting rules to enable “dark mode” for all customers who are using version 15 or greater, and ensure that customers on previous versions don’t use the earlier, unfinished version of the feature.
See moreDeclaration
Swift
@objc public enum AutoEnvAttributes : Int