Package com.launchdarkly.sdk.android
Class AutoEnvContextModifier
java.lang.Object
com.launchdarkly.sdk.android.AutoEnvContextModifier
- All Implemented Interfaces:
IContextModifier
An
IContextModifier
that will add a few context kinds with environmental
information that is useful out of the box.-
Constructor Summary
ConstructorDescriptionAutoEnvContextModifier
(com.launchdarkly.sdk.android.PersistentDataStoreWrapper persistentData, IEnvironmentReporter environmentReporter, LDLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionmodifyContext
(LDContext context) Modifies the provided context and returns a resulting context.
-
Constructor Details
-
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 Details
-
modifyContext
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
-