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