Class AutomaticModeSwitchingConfig.Builder
java.lang.Object
com.launchdarkly.sdk.android.integrations.AutomaticModeSwitchingConfig.Builder
- Enclosing class:
- AutomaticModeSwitchingConfig
Builder for
AutomaticModeSwitchingConfig.
Obtain an instance from
DataSystemComponents.automaticModeSwitching().
Both lifecycle and network default to true.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Creates a builder with lifecycle and network switching both enabled by default. -
Method Summary
-
Constructor Details
-
Builder
public Builder()Creates a builder with lifecycle and network switching both enabled by default.Prefer
DataSystemComponents.automaticModeSwitching()as the entry point for constructing builders.
-
-
Method Details
-
lifecycle
Sets whether lifecycle-based mode switching is enabled.- Parameters:
lifecycle- true to enable (default), false to disable- Returns:
- this builder
-
network
Sets whether network-based mode switching is enabled.- Parameters:
network- true to enable (default), false to disable- Returns:
- this builder
-
build
Builds the config.- Returns:
- the constructed config
-