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 is Kind.user.

    For a multi-context (see LDMultiContextBuilder), the Kind is always Kind.multi; there is a specific Kind for each of the individual Contexts within it.

    See more

    Declaration

    Swift

    public enum Kind : Codable, Equatable, Hashable
    extension Kind: Comparable
    extension Kind: LosslessStringConvertible
    extension Kind: CustomStringConvertible
  • Enumeration representing various modes of failures when constructing an LDContext.

    See more

    Declaration

    Swift

    public enum ContextBuilderError : Error
  • An enumeration describing the individual failure conditions which may occur when constructing a Reference.

    See more

    Declaration

    Swift

    public enum ReferenceError : Codable, Equatable, Error
    extension ReferenceError: CustomStringConvertible
  • Denotes the result of an identify request made through the LDClient.identify(context: completion:) method.

    See more

    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 more

    Declaration

    Swift

    @objc
    public enum AutoEnvAttributes : Int