LDEvaluationDetail

public final class LDEvaluationDetail<T>

An object returned by the SDK’s variationDetail methods, combining the result of a flag evaluation with an explanation of how it is calculated.

  • The value of the flag for the current user.

    Declaration

    Swift

    public internal(set) var value: T { get }
  • The index of the returned value within the flag’s list of variations, or nil if the default was returned.

    Declaration

    Swift

    public internal(set) var variationIndex: Int? { get }
  • A structure representing the main factor that influenced the resultant flag evaluation value.

    Declaration

    Swift

    public internal(set) var reason: [String : Any]? { get }