Interface FeatureFlagChangeListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FeatureFlagChangeListener
Callback interface used for listening to changes to a feature flag.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The SDK calls this method when a feature flag value has changed for the current evaluation context.
  • Method Details

    • onFeatureFlagChange

      void onFeatureFlagChange(String flagKey)
      The SDK calls this method when a feature flag value has changed for the current evaluation context.

      To obtain the new value, call one of the client methods such as LDClientInterface.boolVariation(String, boolean).

      Parameters:
      flagKey - the feature flag key