Package com.launchdarkly.sdk.android
Class AutoEnvContextModifier
- java.lang.Object
-
- com.launchdarkly.sdk.android.AutoEnvContextModifier
-
- All Implemented Interfaces:
IContextModifier
public class AutoEnvContextModifier extends java.lang.Object implements IContextModifier
AnIContextModifier
that will add a few context kinds with environmental information that is useful out of the box.
-
-
Constructor Summary
Constructors Constructor Description AutoEnvContextModifier(com.launchdarkly.sdk.android.PersistentDataStoreWrapper persistentData, IEnvironmentReporter environmentReporter, LDLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LDContext
modifyContext(LDContext context)
Modifies the provided context and returns a resulting context.
-
-
-
Constructor Detail
-
AutoEnvContextModifier
public AutoEnvContextModifier(com.launchdarkly.sdk.android.PersistentDataStoreWrapper persistentData, IEnvironmentReporter environmentReporter, LDLogger logger)
- Parameters:
persistentData
- for retrieving/storing generated context keysenvironmentReporter
- for retrieving attributeslogger
- for logging messages
-
-
Method Detail
-
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 interfaceIContextModifier
- Parameters:
context
- to be modified- Returns:
- another context that is the result of modification
-
-