LDChangedFlag

public struct LDChangedFlag

Collects the elements of a feature flag that changed as a result of the SDK receiving an update.

The SDK will pass a LDChangedFlag or a collection of LDChangedFlags into feature flag observer closures. 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.

    Declaration

    Swift

    public let oldValue: LDValue
  • The feature flag’s value after the change.

    Declaration

    Swift

    public let newValue: LDValue