LDChangedFlag

public struct LDChangedFlag

Collects the elements of a feature flag that changed as a result of a clientstream update or feature flag request. The SDK will pass a LDChangedFlag or a collection of LDChangedFlags into feature flag observer closures. The client app will have to convert the old/newValue into the expected type. See LDClient.observe(key:owner:handler:), LDClient.observe(keys:owner:handler:), and LDClient.observeAll(owner:handler:) for more details.

  • key

    The key of the changed feature flag

    Declaration

    Swift

    public let key: LDFlagKey
  • The feature flag’s value before the change. The client app will have to convert the oldValue into the expected type.

    Declaration

    Swift

    public let oldValue: Any?
  • The feature flag’s value after the change. The client app will have to convert the newValue into the expected type.

    Declaration

    Swift

    public let newValue: Any?
  • An NSObject wrapper for the Swift LDChangeFlag enum. Intended for use in mixed apps when Swift code needs to pass a LDChangeFlag into an Objective-C method.

    Declaration

    Swift

    var objcChangedFlag: ObjcLDChangedFlag { get }