ContextBuilderResult

@objc
public class ContextBuilderResult : NSObject

An NSObject which mimics Swift’s Result type, specifically for the LDContext type.

  • Undocumented

    Declaration

    Swift

    @objc
    public private(set) var success: ObjcLDContext? { get }
  • Undocumented

    Declaration

    Swift

    @objc
    public private(set) var failure: NSError? { get }
  • Create a “success” result with the provided LDContext.

    Declaration

    Swift

    public static func fromSuccess(_ success: LDContext) -> ContextBuilderResult
  • Create an “error” result with the provided LDContext.

    Declaration

    Swift

    public static func fromError(_ error: ContextBuilderError) -> ContextBuilderResult