Class EvaluationSeriesContext

java.lang.Object
com.launchdarkly.sdk.android.integrations.EvaluationSeriesContext

public class EvaluationSeriesContext extends Object
Represents parameters associated with a feature flag evaluation. An instance of this class is provided to some stages of series of a Hook implementation. For example, see Hook.beforeEvaluation(EvaluationSeriesContext, Map)
  • Field Details

    • method

      public final String method
      The variation method that was used to invoke the evaluation. The stability of this string is not guaranteed and should not be used in conditional logic.
    • flagKey

      public final String flagKey
      The key of the feature flag being evaluated.
    • context

      public final LDContext context
      The context the evaluation was for.
    • defaultValue

      public final LDValue defaultValue
      The user-provided default value for the evaluation.
  • Constructor Details

    • EvaluationSeriesContext

      public EvaluationSeriesContext(String method, String key, LDContext context, LDValue defaultValue)
      Parameters:
      method - the variation method that was used to invoke the evaluation.
      key - the key of the feature flag being evaluated.
      context - the context the evaluation was for.
      defaultValue - the user-provided default value for the evaluation.
  • Method Details