Class AutoEnvContextModifier

java.lang.Object
com.launchdarkly.sdk.android.AutoEnvContextModifier
All Implemented Interfaces:
IContextModifier

public class AutoEnvContextModifier extends Object implements IContextModifier
An IContextModifier that will add a few context kinds with environmental information that is useful out of the box.
  • Constructor Details

    • AutoEnvContextModifier

      public AutoEnvContextModifier(com.launchdarkly.sdk.android.PersistentDataStoreWrapper persistentData, IEnvironmentReporter environmentReporter, LDLogger logger)
      Parameters:
      persistentData - for retrieving/storing generated context keys
      environmentReporter - for retrieving attributes
      logger - for logging messages
  • Method Details

    • modifyContext

      public LDContext modifyContext(LDContext context)
      Description copied from interface: IContextModifier
      Modifies the provided context and returns a resulting context. May result in no changes at the discretion of the implementation.
      Specified by:
      modifyContext in interface IContextModifier
      Parameters:
      context - to be modified
      Returns:
      another context that is the result of modification