Kind
public enum Kind : Codable, Equatable, Hashable
extension Kind: Comparable
extension Kind: LosslessStringConvertible
extension Kind: CustomStringConvertible
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.
-
user is both the default Kind and also the kind used for legacy users in earlier versions of this SDK.
Declaration
Swift
case user
-
multi is only usable by constructing a multi-context using
LDMultiContextBuilder
. Attempting to set a context kind to multi directly will result in an invalid context.Declaration
Swift
case multi
-
The custom case handles arbitrarily defined contexts (e.g. org, account, server).
Declaration
Swift
case custom(String)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public static func < (lhs: Kind, rhs: Kind) -> Bool
-
Declaration
Swift
public static func == (lhs: Kind, rhs: Kind) -> Bool
-
Declaration
Swift
public init?(_ description: String)
-
Declaration
Swift
public var description: String { get }