Class HooksConfigurationBuilder
java.lang.Object
com.launchdarkly.sdk.android.integrations.HooksConfigurationBuilder
Contains methods for configuring the SDK's 'hooks'.
If you want to add hooks, use Components.hooks()
, configure accordingly, and pass it
to LDConfig.Builder.hooks(HooksConfigurationBuilder)
.
List hooks = createSomeHooks();
LDConfig config = new LDConfig.Builder()
.hooks(
Components.hooks()
.setHooks(hooks)
)
.build();
Note that this class is abstract; the actual implementation is created by calling Components.hooks()
.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HookConfiguration
build()
Adds the provided list of hooks to the configuration.
-
Field Details
-
hooks
The current set of hooks the builder has.
-
-
Constructor Details
-
HooksConfigurationBuilder
public HooksConfigurationBuilder()
-
-
Method Details
-
setHooks
Adds the provided list of hooks to the configuration. Note that the order of hooks is important and controls the order in which they will be executed. SeeHook
for more details.- Parameters:
hooks
- to be added to the configuration- Returns:
- the builder
-
build
- Returns:
- the hooks configuration
-